Apologies for what may seem a "silly" question but I'm having trouble digesting the "shipping_lines" collection within my json response.
I have an order object that also contains customer, billing address, shipping adress and line items, which makes perfect sense but how/why do we use shipping lines?
Within my dev envirionment (C#) I can succesfully expose data pulled from a "Development store" using the Shopify API but before I proceed, I'd like to understand all.
Any help greatly appreciated!
Regards,
Hey Tez,
No such thing as a silly questions here!
So we define shipping_lines as an array of shipping line objects, each of which details the shipping methods used. You can read more about it here, but basically this means that a shipping_lines object will represent what shipping options were used in that order. For example, if I place an order from checkout and selected a $10 overnight shipping rate from Canada Post, the shipping_lines object may look something like:
"shipping_lines": [{
"id": 123456789,
"title": "Overnight Shipping",
"price": "10.00",
"code": "overnight",
"source": "Canada Post"
}]
If you have any questions or need further clarification, don't hesitate to let me know.
- Jordan
Hi Jordan,
I was wondering with shipping_lines, is there a way to update the individual properties via API - i.e changing "code" to "usp tester". I notice in your below example, the "title" value and the "code" value are different, how did you do this? Also, can I update the "source" value via API?
Thanks,
Josh
User | Count |
---|---|
13 | |
12 | |
7 | |
4 | |
4 |