Skip to Content
StarsellDocs
API referenceReturns

List returns

GET
/stores/{storeId}/returns

List returns, newest first.

Authorization

storeKey
headerAuthorizationBearer <vtk_...>

A store API and MCP key

Path Parameters

storeId*string

The store id

Query Parameters

limit?integer
Range1 <= value <= 100
Default25
page?integer
Range1 <= value
Default1
status?string
Value in"requested""open""in_transit""received""closed""declined"

Response Body

OK

application/json
  1. response
data*array<>
pagination*
Example Request
curl -X GET 'https://starsell.app/api/v1/stores/string/returns'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe",      "number": 0,      "label": "string",      "status": "requested",      "lines": [        {          "order_item_id": "c3e40b5c-b9ae-413a-b96e-5aa0514f5ae6",          "quantity": 0,          "reason": "size",          "note": "string",          "restocked": 0        }      ],      "exchange_lines": [        {          "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",          "variant_id": "8a2d415d-59aa-4132-bef3-011f97c4a0f6",          "title": "string",          "variant_name": "string",          "quantity": 0,          "price_minor": 0        }      ],      "customer_note": "string",      "tracking": "string",      "refund_id": "63c72644-8ac7-4527-8b49-bb7e9f190cb0",      "exchange_order_id": "fada7d0f-ca50-498f-8ea8-24ba1cc005e1",      "closed_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "pagination": {    "page": 0,    "limit": 0,    "total": 0,    "has_more": true  }}