Skip to Content
API ReferenceTickets

List ticket wallet refund options

See which items of a ticket's order you can refund to the customer's wallet, and how much is left.

Each entry is one item of the ticket's order. refundable_cents is what you can still credit to the customer's store wallet for it, in USD cents. It is the amount paid for the item, less wallet refunds already issued for it from any ticket that were not reversed. It is null when the item or its order was refunded.

Read this list right before you refund a ticket to the customer's wallet, and send the refundable_cents you read as expected_refundable_cents. If someone refunds in between, your request is refused instead of crediting the customer twice.

GET
/v2/tickets/{ticket}/wallet-refund-options

List the items of the ticket's order that you can refund to the customer's store wallet, oldest first, with what is left to refund for each. Read this before refunding: send an item's invoice_id, an amount up to its refundable_cents, and that refundable_cents as expected_refundable_cents. A ticket without an order returns an empty data array. The list is not paginated. Amounts are integer USD cents: 1999 means $19.99. Requires the ticket API-key ability and the ticket permission in your team role. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

ticket*integer

The ticket ID in the selected store.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Response Body

Successful response.

application/json
  1. response
data*array<>
Example Request
curl -X GET 'https://sell.app/api/v2/tickets/312/wallet-refund-options' \  -H 'X-STORE: launch-lab'
{  "data": [    {      "invoice_id": 5120,      "order_id": 1042,      "product_id": 120,      "product_title": "Design kit",      "currency": "USD",      "paid_cents": 1999,      "active_support_refunds_cents": 0,      "refundable_cents": 1999    }  ]}