import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
postnl: {
type: "app",
app: "postnl",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.postnl.$auth.api_url}/shipment/v2/status/barcode/3S${this.postnl.$auth.customer_code}123456789`,
headers: {
"apikey": `${this.postnl.$auth.api_key}`,
},
params: {
detail: `false`,
language: `NL`,
},
})
},
})
Retrieve the status of a shipment using its barcode. See the documentation
Retrieve the status of a shipment using a reference number. See the documentation
PostNL uses API keys for authentication. When you connect your PostNL account, Pipedream securely stores the keys so you can easily authenticate to PostNL APIs in both code and no-code steps.