how can i merge two orders into one order, and how can i manage one order into multiple shipments?

505 views
Skip to first unread message

Anupam Sharma

unread,
Feb 1, 2012, 12:58:55 AM2/1/12
to shopi...@googlegroups.com
I am using shopify api services to build an application, i am facing problem in merging two orders into one because i couldn't find any service that will fulfill my requirement and second thing i want to send one order in multiple shipment i.e. partial shipment can anyone please guide me that how can i do this?

John Duff

unread,
Feb 1, 2012, 8:20:37 AM2/1/12
to shopi...@googlegroups.com
You can partially fulfill an order through the API by specifying the individual line item ids you want fulfilled. See http://api.shopify.com/fulfillment.html#create for more info.

There is currently no way to merge, create or delete orders through the API. This is something we will be looking in to.

Sent from my iPhone

Anupam Sharma

unread,
Feb 4, 2012, 4:59:10 AM2/4/12
to shopify-api
Thanks for your response but i still facing issue in fulfillment
service api methods call.. here is response that i am getting for an
order that i have created...

{"buyer_accepts_marketing":true,"cancel_reason":null,"cancelled_at":null,"closed_at":null,"created_at":"2012-02-03T13:21:24+05:30","currency":"INR",
"email":"xyz","financial_status":"authorized","fulfillment_status":null,"gateway":"bogus","id":
118969442,
"landing_site":"\/account\/activate\/
73fa35cca099dab70c146adc61c0258b","name":"#1020","note":"","number":
20,"referring_site":"","subtotal_price":"23974.00",
"taxes_included":false,"token":"1a6fa1beb04a2eed3d09a3cbf36f3aac","total_discounts":"0.00","total_line_items_price":"23974.00","total_price":"23994.00",
"total_tax":"0.00","total_weight":
1986,"updated_at":"2012-02-03T13:21:42+05:30","browser_ip":"117.201.75.145","landing_site_ref":null,"order_number":
1020,
"discount_codes":[],"note_attributes":[],"line_items":
[{"fulfillment_service":"manual","fulfillment_status":null,"grams":
980,"id":194386182,"price":"324.00",
"product_id":80682172,"quantity":
1,"requires_shipping":true,"sku":"Smart","title":"Smart
Phones","variant_id":190308762,"variant_title":null,
"vendor":"Shopify","name":"Smart Phones"},
{"fulfillment_service":"manual","fulfillment_status":null,"grams":
0,"id":194386192,"price":"8000.00",
"product_id":80960352,"quantity":
1,"requires_shipping":true,"sku":"nc16mp","title":"Nikon
camera","variant_id":191163232,"variant_title":null,"vendor":"nikon",
"name":"Nikon camera"},
{"fulfillment_service":"manual","fulfillment_status":null,"grams":
200,"id":194386202,"price":"400.00","product_id":81669142,
"quantity":
1,"requires_shipping":true,"sku":"HPPEN-8GB","title":"PenDriveShop","variant_id":
192697582,"variant_title":null,"vendor":"HP","name":"PenDriveShop"},
{"fulfillment_service":"manual","fulfillment_status":null,"grams":
450,"id":194386212,"price":"250.00","product_id":81669552,"quantity":
1,
"requires_shipping":true,"sku":"HeadPhone-
Intex","title":"HeadPhoneShop","variant_id":
192698172,"variant_title":null,"vendor":"Intex","name":"HeadPhoneShop"},
{"fulfillment_service":"manual","fulfillment_status":null,"grams":
356,"id":194386222,"price":"15000.00","product_id":80850252,"quantity":
1,
"requires_shipping":true,"sku":"IPHONE","title":"IPhoneShop","variant_id":
190848472,"variant_title":null,"vendor":"Shopify","name":"IPhoneShop"}],
"shipping_lines":[{"code":"International
Shipping","price":"20.00","source":"shopify","title":"International
Shipping"}],"tax_lines":[],
"payment_details":{"credit_card_number":"XXXX-XXXX-
XXXX-1","credit_card_company":"Bogus"},"billing_address":
{"address1":"Civil Lines","address2":"",
"city":"Moradabad","company":"Great
Developers","country":"India","first_name":"Vasu","last_name":"Gupta","latitude":"28.874399","longitude":"78.750149",
"phone":"9917580015","province":"Uttar
Pradesh","zip":"244001","name":"Vasu
Gupta","country_code":"IN","province_code":"UP"},
"shipping_address":
{"address1":"shipAddress1","address2":"shipAddress2","city":"shipCity","company":"xyzz","country":"abc",
"first_name":"abc","last_name":"abc","latitude":"abc","longitude":"abc","phone":"abc","province":"abc","zip":"shipCode",
"name":"abc","country_code":"abc","province_code":"abc"},"customer":
{"accepts_marketing":false,"created_at":"2012-01-20T11:10:37+05:30",
"email":"abc","first_name":"abc","id":
79766662,"last_name":"abc","note":"cute","orders_count":
0,"state":"enabled",
"total_spent":"0.00","updated_at":"2012-02-03T13:32:46+05:30","tags":""},
"fulfillments":[]}


Now the problem is that my all items are under same line item so when
i trying to create a fulfillment for my order then eventually it
fulfilled all my items i.e. my whole order is fulfilled. Why i am
getting response like this, is there any specific things that i needs
to do to get response as shown on api, i.e. items in different
line_items. Please revert me for the same.

On Feb 1, 6:20 pm, John Duff <john.d...@jadedpixel.com> wrote:
> You can partially fulfill an order through the API by specifying the individual line item ids you want fulfilled. Seehttp://api.shopify.com/fulfillment.html#createfor more info.
>
> There is currently no way to merge, create or delete orders through the API. This is something we will be looking in to.
>
> Sent from my iPhone
>
Reply all
Reply to author
Forward
0 new messages