POST request to create new fulfillment - errors: Not Found

Highlighted
New Member
2 0 0

Hi, 

I got the errors when i'm creating a new fulfillment by using the API link >> https://xxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxx@myshopify.com/admin/api/2020-04/orders/2214344491123/fulfillments.json

 

Body: {

"fulfillment": {
"location_id": 35353535121,
"tracking_number": "123456",
"line_items": [
{
"id": 231531211241
}
]
}

}

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 167

"location_id": 35353535121 doesn't exist.

 

Here's how to check locations: https://shopify.dev/docs/admin-api/rest/reference/inventory/location?api[version]=2020-04#index-2020...

Notice; Out of office, replies will be delayed until my return. Thanks!
0 Likes
Highlighted
New Member
1 0 0

I got an error (400) when I tried to create a fulfillment. Using different formats from the documentation but got the  same error. 

By running the debugger (Visual Studio), I got something like this: What does it mean? Thank you.

 

The remote server returned an error: (400) Bad Request.
chunked
keep-alive
84
24915804245
origin-when-cross-origin
DENY
24915804245
84

3596017
204168593493
By accessing or using the Shopify API you agree to the Shopify API License and Terms of Use at https://www.shopify.com/legal/api-terms
1/40
1/40
2020-04
max-age=7889238
production
default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://* shopify-pos://*; block-all-mixed-content; child-src 'self' https://* shopify-pos://*; connect-src 'self' wss://* https://*; frame-ancestors 'none'; img-src 'self' data: blob: https:; script-src https://cdn.shopify.com https://cdn.shopifycdn.net https://checkout.us.shopifycs.com https://js-agent.newrelic.com https://bam.nr-data.net https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.com https://c.paypal.com https://maps.googleapis.com https://www.google-analytics.com https://v.shopify.com https://widget.intercom.io https://js.intercomcdn.com 'self' 'unsafe-inline' 'unsafe-eval'; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders%2Ffulfillments&source%5Bsection%5D=admin_api&source%5Buuid%5D=72e09fc3-aee7-48a3-82ce-4e29e72ff83c
nosniff
noopen
none
1; mode=block; report=/xss-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders%2Ffulfillments&source%5Bsection%5D=admin_api&source%5Buuid%5D=72e09fc3-aee7-48a3-82ce-4e29e72ff83c
gcp-us-east1,gcp-us-central1,gcp-us-central1
72e09fc3-aee7-48a3-82ce-4e29e72ff83c
DYNAMIC
0558ce90f0000099eafc228200000001
max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
5d6e4d2e4be399ea-EWR
h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
application/json; charset=utf-8
Tue, 22 Sep 2020 19:06:09 GMT
__cfduid=d3489ea85f1665173494cf9cdab9594ec1600801569; expires=Thu, 22-Oct-20 19:06:09 GMT; path=/; domain=.myshopify.com; HttpOnly; SameSite=Lax
cloudflare

0 Likes