What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Fulfillments Api Problems

Fulfillments Api Problems

363518457
Shopify Partner
18 0 2

 

We want to upload waybill information through the "REST Admin API", but the interface has been unable to access it. Could you please help me see where the problem lies?

Thank you!

 

Request Url:https://***.myshopify.com/admin/api/2023-01/fulfillments.json

Response:

POST: data={"fulfillment":{"line_items_by_fulfillment_order":[{"fulfillment_order_id":4757641560279}],"tracking_info":{"number":"4PX3000715519924CN","url":"https://track.4px.com/#/result/0/4PX3000715519924CN"}}}
错误信息:HTTP/1.1 400 Bad Request
Date: Mon, 04 Sep 2023 10:45:35 GMT
Content-Type: text/plain
Transfer-Encoding: chunked
Connection: keep-alive
X-Sorting-Hat-PodId: 214
X-Sorting-Hat-ShopId: 63027642583
Server-Timing: processing;dur=9
X-Shopify-Stage: production
Content-Security-Policy: frame-ancestors 'none'
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block
X-Dc: gcp-us-west2,gcp-us-east1,gcp-us-east1
X-Request-ID: 5c4b40aa-45b6-414f-88b9-47c5bfe9e53e
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=oBFAgVf5XOtKE33pDCwSO5jQT%2Fjzh5ZuraGd9AOEMAH4rYHhscPf0lQzaG6ZJkjL5ujg1VLSMb14n7wK%2FA25SEGfvbpTvWAT2J5P8mkEnNfgtuvuEAiW6DeHMh91gN6gF5h%2Fuk85n2za95s%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}
Server-Timing: cfRequestDuration;dur=107.000113
Server: cloudflare
CF-RAY: 8015a4ce18159e56-SJC
alt-svc: h3=":443"; ma=86400

Bad Request

Reply 1 (1)

colleenc
Shopify Partner
91 9 21

I had a similar issue, have a look here: https://community.shopify.com/c/fulfillment-and-inventory/rest-fulfillment-creation-help-please/m-p/...

 

I detailed how I solved it. The thread has a discussion around the issue you can read too.