POST
/
v1
/
return
curl --location --request POST 'https://api.stateset.com/v1/return' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
      'id': '0901f083-aa1c-43c5-af5c-0a9d2fc64e30',
      'order_id': 'O-12332312',
      'serial_number': 'st123976879tm',
      'description:' 'Return for different type',
      'status': 'NEW'
      'reported_condition': 'A',
      'tracking_number': '132908231098120921',
      'zendesk_number': '123313',
      'action_needed': 'Replacement'
      'rma': 'R-123312',
      'country': 'US'
}'
{
    "returns": [
        {
            "id": "0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
            "created_date": "2023-06-28T19:34:59.189838+00:00",
            "amount": null,
            "action_needed": null,
            "condition": null,
            "customerEmail": "customer@gmail.com",
            "customer_id": null,
            "description": null,
            "enteredBy": null,
            "flat_rate_shipping": null,
            "order_date": null,
            "order_id": "524213310335630636",
            "reason_category": null,
            "reported_condition": null,
            "requested_date": null,
            "rma": "#1014-R5",
            "serial_number": null,
            "shipped_date": null,
            "status": "RCV",
            "tax_refunded": null,
            "total_refunded": null,
            "tracking_number": null,
            "return_line_items": []
        },
    ]
}  

Body

id
string

This is the unique identifier for the return.

order_id
string

This is the unique identifier for the order.

serial_number
string

This is the unique identifier for the serial number.

description
string

This is the description of the return.

status
string

This is the status of the return.

reported_condition
string

This is the reported condition of the return.

tracking_number
string

This is the tracking number of the return.

zendesk_number
string

This is the zendesk number of the return.

action_needed
string

This is the action needed of the return.

rma
string

This is the rma of the return.

country
string

This is the country of the return.

created_date
string

This is the created date of the return.

Response

id
string

The ID provided in the data tab may be used to identify the return

order_id
string

The order ID provided in the data tab may be used to identify the order

serial_number
string

The serial number provided in the data tab may be used to identify the serial number

description
string

The description provided in the data tab may be used to identify the description

status
string

The status provided in the data tab may be used to identify the status

reported_condition
string

The reported condition provided in the data tab may be used to identify the reported condition

tracking_number
string

The tracking number provided in the data tab may be used to identify the tracking number

zendesk_number
string

The zendesk number provided in the data tab may be used to identify the zendesk number

action_needed
string

The action needed provided in the data tab may be used to identify the action needed

rma
string

The rma provided in the data tab may be used to identify the rma

country
string

The country provided in the data tab may be used to identify the country