Errors with fulfillment section when creating order through Admin API

Highlighted
New Member
1 0 0

I have a private app for a store and one of our orders creation failed yesterday with this error message:

 

 

{"errors":{"fulfillments":"array contains unpermitted members"}}

 

 
Since we have not changed the way we create order, I wonder if that is something to worry about.
 
Payload:

 

{"order":{"email":"XXX","send_receipt":false,"send_fulfillment_receipt":false,"inventory_behaviour":"decrement_obeying_policy","line_items":[{"quantity":1,"variant_id":35981120798882},{"quantity":1,"variant_id":35985092018338},{"quantity":2,"variant_id":35985418027170},{"quantity":1,"variant_id":36311351623842}],"shipping_address":{"first_name":"XXX ","last_name":"XXX","address1":"XXX","address2":null,"city":"XXX","province":"XXX","country":"United States","zip":"XXX","phone":"XXX"},"note":"","fulfillments":[{"location_id":56613503138}],"transactions":[{"kind":"sale","status":"success","amount":XXX}],"discount_codes":[{"amount":"XXX","code":"XXX","type":"fixed_amount"}],"total_tax":"XXX","total_price":"XXX"}}​

 

HTTP POST (133.10ms) https://XXX.myshopify.com:443/admin/api/2020-07/orders.json
Response status Net::HTTPBadRequest (400)
 
0 Likes