import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
vatfix_plus: {
type: "app",
app: "vatfix_plus",
}
},
async run({steps, $}) {
const data = {
"countryCode": `{your_country_code}`,
"vatNumber": `{your_vat_number}`,
}
return await axios($, {
method: "post",
url: `https://plus.vatfix.eu/vat/lookup`,
headers: {
"x-api-key": `${this.vatfix_plus.$auth.api_key}`,
"x-customer-email": `${this.vatfix_plus.$auth.customer_email}`,
},
data,
})
},
})
VATFix Plus uses API keys for authentication. When you connect your VATFix Plus account, Pipedream securely stores the keys so you can easily authenticate to VATFix Plus APIs in both code and no-code steps.