Quality Control: Unexpected Return

  • Updated

Name

/quality-control-unexpected-return

 


 

Method

POST

 


 

URL parameters

Name Mandatory Type Description
api_token yes string API key provided by SWAP.

 


 

Request

Name Mandatory Type Description
store_id yes string The store id that the item belong to (provided by SWAP).
provider yes string The id of the provider sending the condition update (provided by SWAP)
sku yes string The item’s SKU
condition yes string The item’s condition
return_qty yes number Number of items returned
receipt_date yes date Date the item was received
order_date no date Date the order was made
carton_id no string The id of the carton
description no string A description

Sample request

{
    "provider": "1709779766938x413449287930836934",
    "store_id": "1635427666272x61112523445346556",
    "sku": "ABBA-STRAIGHT-LEG-TROUSER-XS",
    "description": "this product was not expected",
    "condition": "damage",
    "return_qty": 1,
    "receipt_date": "29-feb-2024"
}

 


 

Response

Name Type Description
status string "success" if request was successful.
response json Empty
statusCode number If error, returns an error code. If request is successful, it's not returned.
body json If error, returns the following parameters:
- status: Error key
- message: Error description

Sample response

{
    "status": "success",
    "response": {}
}

Related to

Was this article helpful?

/