Getting "location_id must be specified when creating fulfillments." when creating fulfillment

rokdevil
Shopify Partner
1 0 0

Here is my post:

 

{
	"fulfillment": {
		"tracking_info": {
			"number": "XXXXXXXXXXXXXXXXXXXXXXX",
			"company": "DHL eCommerce"
		},
		"line_items_by_fulfillment_order": [{
			"fulfillment_order_id": 00000000000,
			"fulfillment_order_line_items": [{
				"id": 000000000000,
				"quantity": 2
			}]
		}]
	}
}

 

This was working just a few days ago.

 

Replies 3 (3)

jmfieldapi
New Member
5 0 0

I am having the same problem creating a fulfillment;  [error] => location_id must be specified when creating fulfillments.

 

It is giving a location ID error. If you include the location ID it returns a 404 and without it a 400 error.

jmfieldapi
New Member
5 0 0

this is the example in the shopify API:

{
    "fulfillment": {
        "message": "The package was shipped this morning.",
        "notify_customer": false,
        "tracking_info": {
            "number": "1Z001985YW99744790",
            "company": "UPS"
        },
        "line_items_by_fulfillment_order": [{
            "fulfillment_order_id": 1046000798,
            "fulfillment_order_line_items": [{
                "id": 1058737530,
                "quantity": 1
            }]
        }]
    }
}

 

Here's what I'm posting:

{

    "fulfillment": {      

        "message": "The package was shipping",

        "notify_customer": false,  

        "tracking_info": {

            "number": "420276049374811015300205691782",

            "company": "DHL eCommerce"

        },

        "line_items_by_fulfillment_order": [{

            "fulfillment_order_id": 6385204920639,

            "fulfillment_order_line_items": [{

                "id": 14169238339903,

                "quantity": 2

            }]

        }]

    }

}

 

 

am i missing something?

jmfieldapi
New Member
5 0 0

this is the example in the shopify API:

{
    "fulfillment": {
        "message": "The package was shipped this morning.",
        "notify_customer": false,
        "tracking_info": {
            "number": "1Z001985YW99744790",
            "company": "UPS"
        },
        "line_items_by_fulfillment_order": [{
            "fulfillment_order_id": 1046000798,
            "fulfillment_order_line_items": [{
                "id": 1058737530,
                "quantity": 1
            }]
        }]
    }
}

 

Here's what I'm posting:

{

    "fulfillment": {      

        "message": "The package was shipping",

        "notify_customer": false,  

        "tracking_info": {

            "number": "420276049374811015300205691782",

            "company": "DHL eCommerce"

        },

        "line_items_by_fulfillment_order": [{

            "fulfillment_order_id": 6385204920639,

            "fulfillment_order_line_items": [{

                "id": 14169238339903,

                "quantity": 2

            }]

        }]

    }

}

am i missing something?