List refunds
List an order's refunds, oldest first.
storeKeyAuthorizationBearer <vtk_...>A store API and MCP key
storeId*stringThe store id
orderId*stringThe order id, or its number (1042)
OK
application/json- response
data*array<>curl -X GET 'https://starsell.app/api/v1/stores/string/orders/string/refunds'{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe", "amount_minor": 0, "shipping_minor": 0, "currency": "string", "lines": [ { "order_item_id": "c3e40b5c-b9ae-413a-b96e-5aa0514f5ae6", "quantity": 0, "amount_minor": 0, "restocked": 0 } ], "reason": "string", "restocked": true, "to_store_credit": true, "created_at": "2019-08-24T14:15:22Z" } ]}Create a refund POST
Refund units of lines, shipping and/or an amount. Each unit goes back in stock at most once, and money back never passes what the customer still has paid in. The order becomes partially_refunded, or refunded once nothing is left. Needs a key that can edit. Send an Idempotency-Key to make a retry safe: a repeat within 24 hours gets the first answer back instead of running again.
Create a return POST
Open a return: the units coming back and why, a note, and what the customer gets in exchange. Units can not pass what was bought and not refunded or on another return. Needs a key that can edit. Send an Idempotency-Key to make a retry safe: a repeat within 24 hours gets the first answer back instead of running again.