How can I add tracking details to Axios for NodeJS fulfillments?

How can I add tracking details to Axios for NodeJS fulfillments?

Yannick_neowake
Shopify Partner
14 1 5

Hello,

I have issues to add the tracking details to our orders. For context, I use Axios for NodeJS and our store is located in Germany. In the documentation it says, that stores located in Germany can use "DHL" as an Tracking Company.

 

This is the body, I send to the fulfillment api:

 

  fulfillment: {
    location_id: 66274590909,
    tracking_numbers: [ '00340434738447217087' ],
    tracking_urls: [
      'https://nolp.dhl.de/nextt-online-public/de/search?piececode=00340434738447217087'
    ],
    tracking_company: 'DHL',
    notify_customer: false,
    line_items_by_fulfillment_order: [ [Object] ]
  }

 

I use arrays, because in some cases, there are more tracking details for the same order.

 

And this is the response:

 

  fulfillment: {
    ....
    status: 'success',
    created_at: '2024-03-06T14:16:11+01:00',
    service: 'manual',
    updated_at: '2024-03-06T14:16:11+01:00',
    tracking_company: null,
    shipment_status: null,
    location_id: 66274590909,
    origin_address: null,
    line_items: [ [Object] ],
    tracking_number: null,
    tracking_numbers: [],
    tracking_url: null,
    tracking_urls: [],
    receipt: {},
    ...
  }

 

I also tried not adding the shipping company, as i provide the URL, but this also doesn't work. I also checked, that I have the necessary permissions. Can anyone help with that?

Replies 0 (0)