Hi!
I'm trying to create an order via the API with custom product prices and custom shipping price. So far, I'm able to create the line items with custom prices, but no where in documentation does it say how to add custom shipping price.
I tried adding "line_items" item with the "price", "code", "title" fields, but that gives me 400 bad request.
Any help on this would be appreciated!
Solved! Go to the solution
This is an accepted solution.
Hey @puda_cb,
Check shipping_lines out. This is where Shopify will store the shipping rate for orders processed via the checkout.
Regards,
Joel.
@puda_cb @Joel-Reeds
How did you managed to solve it ?
I tried by sending the following data, but the shipping cost was not added.
{ "order": { "line_items": [ { "variant_id": 31253838430251, "quantity": 1 } ] }, "shipping_lines": [ { "code": "INT.TP", "price": "4.00", "price_set": { "shop_money": { "amount": "4.00", "currency_code": "USD" } } } ] }
Can you please provide us a sample code or data. Thanks.
Please help in this. @suzan_stha @puda_cb @Joel-Reeds
Are all of the fields here mandatory? Please suggest what worked for you. I am just trying to add a Custom Shipping Method with a custom price. Their Draft order API was simple to handle this, but this has a few complications
User | Count |
---|---|
13 | |
12 | |
10 | |
8 | |
7 |