Update return order
POST
/merchants/{merchantCode}/returnOrders/{orderNumber}
const url = 'https://order.shopgate.io/v1/merchants/example/returnOrders/example?getOriginalImageUrls=false';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"status":"draft","notes":"Please wrap each item individually.","dropOffType":"inPerson","dropOffLocationCode":"DERetail001","lineItems":[{"code":"R386","status":"open"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://order.shopgate.io/v1/merchants/example/returnOrders/example?getOriginalImageUrls=false' \ --header 'Content-Type: application/json' \ --data '{ "status": "draft", "notes": "Please wrap each item individually.", "dropOffType": "inPerson", "dropOffLocationCode": "DERetail001", "lineItems": [ { "code": "R386", "status": "open" } ] }'Update return order
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”merchantCode
required
string
Unique merchant code which represents the unique “merchant account”.
orderNumber
required
string
Unique order number
Query Parameters
Section titled “Query Parameters”getOriginalImageUrls
boolean
Request original image URLs for LineItem product images.
Request Body
Section titled “Request Body”Media typeapplication/json
object
status
string
notes
Customer notes where the shopper can provide special instructions. The notes are shown in the In-Store App & Admin.
string | null
Example
Please wrap each item individually.dropOffType
string
dropOffLocationCode
Location where the order is returned
string
Example
DERetail001lineItems
Array<object>
object
code
string
Example
R386status
string
Example
inProgressResponses
Section titled “Responses”Return order updated
Media typeapplication/json
Update not valid
Media typeapplication/json
Return order not found
Media typeapplication/json
default
Section titled “default”Unexpected error
Media typeapplication/json
object
code
Machine readable error code
string
message
required
Human readable error code
string
Example
{ "code": "internal.database", "message": "Internal Database Error"}
