Skip to main content
PATCH
Return order

Headers

x-api-key
string
Example:

"0LybWR49k95cCwYh3cu0waCYoh4H2Eux2J52wn4k"

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Example:

"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"

Body

application/json
returnCode
string
required
Example:

"2001"

orderId
string
required
Required string length: 15
Example:

"2947-5955-82579"

returnMessage
string
Example:

"Customer not interested"

sugarRefund
boolean
Example:

true

Response

Returned Order

orderId
string
Example:

"1626-4972-66351"

status
string
Example:

"Successfully Returned order"

order
object