Retrieving Shipping Costs via API

LukeG
Excursionist
20 1 10

Hi there, thank you for your response.

 

I'am using node.js on the backend and had trouble querying for this verb(s). Turns out it's only availbale when you use the order endpoint:

GET /admin/api/2020-10/orders/450789469/events.json 

 However the offical node.js library does not support this endpoint yet so I had to implement that on my own. 

 

The query itself is quite straight forward:

let params = {
verb: "shipping_label_created_success"
};

const shopify = new ShopifyAPI({
apiVersion: '2020-10',
shopName: url,
accessToken: auth_token,
autoLimit: true
});

let events = await shopify.event.list(orderID, params)

console.log(events);

 

I hope this helps,

0 Likes
nathanaa
Tourist
4 0 6

Is the events API and parsing text from a log entry, still the only way to get shipping costs? 

0 Likes
Shivpal
Shopify Partner
6 0 3

Is there any other api which can provide us the shipping cost in any specific node?. Currently we need to parse this from events.  

Webgility1
Excursionist
25 1 5

Any new api to get the Shipping Costs? 

0 Likes