A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hello,
We have an order we want to fulfill but when sending the REST request (according to the API documentation) it returns HTTP/1.1 404 Not Found
The order:
{
"order": {
"id": 3147570577586,
"email": "[email protected]",
"closed_at": null,
"created_at": "2021-01-04T10:56:05-05:00",
"updated_at": "2021-01-04T10:58:42-05:00",
"number": 18,
"note": "",
"token": "c1dd4bc07edd5f26e6e4afd132e7fd2d",
"gateway": "manual",
"test": false,
"total_price": "150.00",
"subtotal_price": "150.00",
"total_weight": 45,
"total_tax": "0.00",
"taxes_included": true,
"currency": "GBP",
"financial_status": "paid",
"confirmed": true,
"total_discounts": "0.00",
"total_line_items_price": "150.00",
"cart_token": null,
"buyer_accepts_marketing": false,
"name": "#1018",
"referring_site": null,
"landing_site": null,
"cancelled_at": null,
"cancel_reason": null,
"total_price_usd": "205.24",
"checkout_token": null,
"reference": null,
"user_id": 68208361650,
"location_id": null,
"source_identifier": null,
"source_url": null,
"processed_at": "2021-01-04T10:56:05-05:00",
"device_id": null,
"phone": null,
"customer_locale": "en",
"app_id": 1354745,
"browser_ip": null,
"landing_site_ref": null,
"order_number": 1018,
"discount_applications": [],
"discount_codes": [],
"note_attributes": [],
"payment_gateway_names": ["manual"],
"processing_method": "manual",
"checkout_id": null,
"source_name": "shopify_draft_order",
"fulfillment_status": null,
"tax_lines": [],
"tags": "Y2|E01_222",
"contact_email": "[email protected]",
"order_status_url": "https:\/\/amanda-wakeley.myshopify.com\/50360910002\/orders\/c1dd4bc07edd5f26e6e4afd132e7fd2d\/authenticate?key=325b4260262854d6ca8a69f8e87d75bf",
"presentment_currency": "GBP",
"total_line_items_price_set": {
"shop_money": {
"amount": "150.00",
"currency_code": "GBP"
},
"presentment_money": {
"amount": "150.00",
"currency_code": "GBP"
}
},
"total_discounts_set": {
"shop_money": {
"amount": "0.00",
"currency_code": "GBP"
},
"presentment_money": {
"amount": "0.00",
"currency_code": "GBP"
}
},
"total_shipping_price_set": {
"shop_money": {
"amount": "0.00",
"currency_code": "GBP"
},
"presentment_money": {
"amount": "0.00",
"currency_code": "GBP"
}
},
"subtotal_price_set": {
"shop_money": {
"amount": "150.00",
"currency_code": "GBP"
},
"presentment_money": {
"amount": "150.00",
"currency_code": "GBP"
}
},
"total_price_set": {
"shop_money": {
"amount": "150.00",
"currency_code": "GBP"
},
"presentment_money": {
"amount": "150.00",
"currency_code": "GBP"
}
},
"total_tax_set": {
"shop_money": {
"amount": "0.00",
"currency_code": "GBP"
},
"presentment_money": {
"amount": "0.00",
"currency_code": "GBP"
}
},
"line_items": [{
"id": 9037800079538,
"variant_id": 37661833265330,
"title": "Horizon Fluoro Cape",
"quantity": 1,
"sku": "1570109021716",
"variant_title": "UK16",
"vendor": "Amanda-Wakeley",
"fulfillment_service": "manual",
"product_id": 6112912539826,
"requires_shipping": true,
"taxable": true,
"gift_card": false,
"name": "Horizon Fluoro Cape - UK16",
"variant_inventory_management": null,
"properties": [],
"product_exists": true,
"fulfillable_quantity": 1,
"grams": 45,
"price": "150.00",
"total_discount": "0.00",
"fulfillment_status": null,
"price_set": {
"shop_money": {
"amount": "150.00",
"currency_code": "GBP"
},
"presentment_money": {
"amount": "150.00",
"currency_code": "GBP"
}
},
"total_discount_set": {
"shop_money": {
"amount": "0.00",
"currency_code": "GBP"
},
"presentment_money": {
"amount": "0.00",
"currency_code": "GBP"
}
},
"discount_allocations": [],
"tax_lines": []
}
],
"fulfillments": [],
"refunds": [],
"total_tip_received": "0.0",
"shipping_lines": [],
"billing_address": {
"first_name": "Judith",
"address1": "383 Atlantic Ave",
"phone": "+17188588840",
"city": "Brooklyn",
"zip": "11217",
"province": "New York",
"country": "United States",
"last_name": "Jamesrodger",
"address2": null,
"company": null,
"latitude": 40.68738,
"longitude": -73.98539099999999,
"name": "Judith Jamesrodger",
"country_code": "US",
"province_code": "NY"
},
"shipping_address": {
"first_name": "Judith",
"address1": "383 Atlantic Ave",
"phone": "+17188588840",
"city": "Brooklyn",
"zip": "11217",
"province": "New York",
"country": "United States",
"last_name": "Jamesrodger",
"address2": null,
"company": null,
"latitude": 40.68738,
"longitude": -73.98539099999999,
"name": "Judith Jamesrodger",
"country_code": "US",
"province_code": "NY"
},
"customer": {
"id": 4540816392370,
"email": "[email protected]",
"accepts_marketing": false,
"created_at": "2021-01-04T10:55:02-05:00",
"updated_at": "2021-01-05T05:34:33-05:00",
"first_name": "Judith",
"last_name": "Jamesrodger",
"orders_count": 1,
"state": "enabled",
"total_spent": "150.00",
"last_order_id": 3147570577586,
"note": "",
"verified_email": true,
"multipass_identifier": null,
"tax_exempt": false,
"phone": "+17188588840",
"tags": "",
"last_order_name": "#1018",
"currency": "GBP",
"accepts_marketing_updated_at": "2021-01-04T10:55:03-05:00",
"marketing_opt_in_level": null,
"default_address": {
"id": 5552004858034,
"customer_id": 4540816392370,
"first_name": "Judith",
"last_name": "Jamesrodger",
"company": "",
"address1": "383 Atlantic Ave",
"address2": "",
"city": "Brooklyn",
"province": "New York",
"country": "United States",
"zip": "11217",
"phone": "+17188588840",
"name": "Judith Jamesrodger",
"province_code": "NY",
"country_code": "US",
"country_name": "United States",
"default": true
}
}
}
}
Shopify request: POST https://amanda-wakeley.myshopify.com/admin/api/2021-01/orders/3147570577586/fulfillments.json
{
"fulfillment": {
"location_id": 905684977,
"tracking_number": null,
"line_items": [
{
"id": 9037800079538,
"quantity": 1
}
]
}
}
The location ID is correct, order with the requested ID exists, line item ID belongs to the order. So can you help me to understand what's wrong? Thank you in advance!
Solved! Go to the solution
This is an accepted solution.
If you've double-checked and verified all of the ID's are correct, and verified you have the proper API URL for your request then I'd suggest posting the request ID that is passed back in the response header. That way Shopify staff and look into the failing API requests in logs on their side. Here's a similar thread --> https://community.shopify.com/c/Shopify-APIs-SDKs/fulfillment-orders-returns-404-not-found/td-p/9154.... Hope this helps (a little).
This is an accepted solution.
If you've double-checked and verified all of the ID's are correct, and verified you have the proper API URL for your request then I'd suggest posting the request ID that is passed back in the response header. That way Shopify staff and look into the failing API requests in logs on their side. Here's a similar thread --> https://community.shopify.com/c/Shopify-APIs-SDKs/fulfillment-orders-returns-404-not-found/td-p/9154.... Hope this helps (a little).
Thank you for the suggestion Greg!
I double-checked the location ID and found it was a bit incorrect. Now it works