0

I am trying to update an order, using the REST API. What is wrong with my request?

POST https://na82.salesforce.com/services/data/v30.0/commerce/sale/order/8011R00000AHdHkQAL?_HttpMethod=PATCH HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer X
Host: na82.salesforce.com
Content-Length: 511
Expect: 100-continue
Connection: Keep-Alive

{"order":[{"shipToContact":{},"attributes":{"type":"Order"},"account":{"id":"0011R0000267MXkQAM","name":"Test User"},"billToContact":{},"effectiveDate":"2019-01-01","status":"Draft","billingCity":"Watertown","billingPostalCode":"02472","billingCountry":"US","billingState":"MA","billingStreet":"123 Main St.","description":"UPDATED","shippingCity":"Watertown","shippingPostalCode":"02472","shippingCountry":"US","shippingState":"MA","shippingStreet":"123 Main St.","id":"8011R00000AHdHkQAL","totalAmount":"0"}]}

[{"message":"An unexpected error occurred. Please include this ErrorId if you contact support: 211461444-26571 (1154568351)","errorCode":"UNKNOWN_EXCEPTION"}]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.