GET
/
v1
/
returns
curl --location --request GET 'https://api.stateset.com/v1/returns' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
}'
{
    "returns": [
        {
            "id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
            "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

limit
string
required

This is the limit of the returns.

offset
string
required

This is the offset of the returns.

order_direction
string
required

This is the order direction of the returns.

status
string
required

This is the status of the returns.

Response

id
string

This is the id of the return.

created_date
string

This is the date the return was created.

amount
string

This is the amount of the return.

action_needed
string

This is the action needed for the return.

condition
string

This is the condition of the return.

customerEmail
string

This is the email of the customer.

customer_id
string

This is the id of the customer.

description
string

This is the description of the return.

enteredBy
string

This is the id of the user who entered the return.

flat_rate_shipping
string

This is the flat rate shipping of the return.

order_date
string

This is the date of the order.

order_id
string

This is the id of the order.

reason_category
string

This is the reason category of the return.

reported_condition
string

This is the reported condition of the return.

requested_date
string

This is the requested date of the return.

rma
string

This is the rma of the return.

serial_number
string

This is the serial number of the return.

shipped_date
string

This is the shipped date of the return.

status
string

This is the status of the return.

tax_refunded
string

This is the tax refunded of the return.

total_refunded
string

This is the total refunded of the return.

tracking_number
string

This is the tracking number of the return.

return_line_items
object

This is the line items of the return.

curl --location --request GET 'https://api.stateset.com/v1/returns' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
}'
{
    "returns": [
        {
            "id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
            "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": []
        },
    ]
}