Orders
Update order
PUT
/
v1
/
orders
/
{sourceOrderId}
curl --request PUT \
--url https://api.production.orderprotection.com/v1/orders/{sourceOrderId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"originalSourceOrderId": "12345",
"sourceOrderNumber": "#634C",
"sourceCreatedAt": "2000-05-15T21:00:00.000Z",
"sourceUpdatedAt": "2000-05-15T21:00:00.000Z",
"sourceCancelledAt": "2000-05-15T21:00:00.000Z",
"platformId": "api",
"premiumPaid": "1.5",
"currency": "USD",
"total": "15.40",
"discountTotal": "1.20",
"shippingCost": "3.50",
"tax": "0.55",
"subtotal": "11.30",
"customerEmail": "john@doe.com",
"customerName": "John",
"customerPhone": "+1-555-796-3644",
"shippingCostTax": "234"
}'
{
"status": "ok"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Response
200
application/json
The order has been successfully updated.
The response is of type object
.
curl --request PUT \
--url https://api.production.orderprotection.com/v1/orders/{sourceOrderId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"originalSourceOrderId": "12345",
"sourceOrderNumber": "#634C",
"sourceCreatedAt": "2000-05-15T21:00:00.000Z",
"sourceUpdatedAt": "2000-05-15T21:00:00.000Z",
"sourceCancelledAt": "2000-05-15T21:00:00.000Z",
"platformId": "api",
"premiumPaid": "1.5",
"currency": "USD",
"total": "15.40",
"discountTotal": "1.20",
"shippingCost": "3.50",
"tax": "0.55",
"subtotal": "11.30",
"customerEmail": "john@doe.com",
"customerName": "John",
"customerPhone": "+1-555-796-3644",
"shippingCostTax": "234"
}'
{
"status": "ok"
}
Assistant
Responses are generated using AI and may contain mistakes.