Hi all,
We have a custom app, that basically has global permissions. We receive orders from the external place and punch them onto our Shopify orders via the Orders REST Admin API.
We also have a unicommerce app installed which basically transfers order details with the warehouse team to fulfill the order from the warehouse.
The problem:
When an order is punched via the shopify frontend (Online Store) the details of the order are successfully transferred to the unicommerce app and warehouse team is able to fulfill it. However, when an order is placed via our custom app, the order is not reflecting on to the unicommerce app.
Things we have tried:
- Explicitly specifying “carrier_identifier” on the order resource when hitting the create order rest admin API
{
"code": "Standard (Free Shipping above Rs 500!)",
"carrier_identifier": "identifier_id_here",
"price": "50",
"price_set": {
"shop_money": {
"amount": "50",
"currency_code": "INR"
},
"presentment_money": {
"amount": "50",
"currency_code": "INR"
}
},
"discounted_price": "50",
"discounted_price_set": {
"shop_money": {
"amount": "50",
"currency_code": "INR"
},
"presentment_money": {
"amount": "50",
"currency_code": "INR"
}
},
"source": "shopify",
"title": "Standard (Free Shipping above Rs 500!)",
"tax_lines": [],
"requested_fulfillment_service_id": null
}
The carrier_identifier never gets set as “identifier_id_here” it’s always null.
- Changing source_name:
Keeping in mind our custom app is not registered as a “Sales channel”. I still specified a source_name as our custom apps name to see if that works. Still I am unable to see the attribution on the orders dashboard and the orders aren’t going through to unicommerce
- Specifying origin_location under line_items:
I found that orders placed on the Online store has origin_location on the line_items array for each object. I tried to explicitly set the origin_location on the payload to the create order REST admin API, however this does not get set and we never have the origin_location set on items when we successfully post the order
Is there any other way to achieve this?
Any helpful tips that you could think we can try?
Thanks,
Agam