Skip to Content
API ReferenceRefunds

Refunds

Inspect refunds across orders and standalone charges.

Read refunds across purchases and standalone charges. Filter the collection, then retrieve a refund to check its latest status and match its provider identifiers with the payment provider. These endpoints do not issue a new refund; use the relevant order or invoice refund operation for that action.

GET
/v2/refunds

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Query Parameters

page?integer

Page number, starting at 1.

Range1 <= value
Default1
limit?integer

Refunds per page, from 1 to 100.

Range1 <= value <= 100
Default15
status?string

Keep refunds in this state: pending, effective, failed, or cancelled.

Value in"pending""effective""failed""cancelled"
provider?string

Keep refunds made through this payment provider: manual, mercado_pago, nmi, mollie, paypal, razorpay, square, or stripe.

Value in"manual""mercado_pago""nmi""mollie""paypal""razorpay""square""stripe"
source?string

Keep refunds by how they were recorded: manual, provider_webhook, provider_api, or system. For example, provider_api is a refund SellApp requested from the provider and provider_webhook one the provider reported.

Value in"manual""provider_webhook""provider_api""system"
refundable_type?string

Keep refunds of orders (order) or of standalone charges (charge).

Value in"order""charge"
refundable_id?integer

Keep refunds of the order or charge with this ID. Send refundable_type with it, because an order and a charge can share an ID.

Range1 <= value

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<>
links*
meta*
Example Request
curl -X GET 'https://sell.app/api/v2/refunds' \  -H 'X-STORE: launch-lab'
{  "data": [    {      "id": 781,      "source": "seller",      "refundable": {        "type": "order",        "id": 4242      },      "provider": "stripe",      "provider_payment_id": "pi_example",      "provider_refund_id": "re_example",      "amount_cents": 2900,      "currency": "USD",      "status": "effective",      "reason": "requested_by_customer"    }  ],  "links": {    "first": "https://sell.app/api/v2/refunds?page=1",    "last": "https://sell.app/api/v2/refunds?page=1",    "prev": null,    "next": null  },  "meta": {    "current_page": 1,    "from": 1,    "last_page": 1,    "path": "https://sell.app/api/v2/refunds",    "per_page": 15,    "to": 1,    "total": 1,    "links": [      {        "url": null,        "label": "&laquo; Previous",        "active": false      },      {        "url": "https://sell.app/api/v2/refunds?page=1",        "label": "1",        "active": true      },      {        "url": null,        "label": "Next &raquo;",        "active": false      }    ]  }}
GET
/v2/refunds/{refund}

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

refund*integer

The refund identifier.

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*
Example Request
curl -X GET 'https://sell.app/api/v2/refunds/781' \  -H 'X-STORE: launch-lab'
{  "data": {    "id": 781,    "source": "seller",    "refundable": {      "type": "order",      "id": 4242    },    "provider": "stripe",    "provider_payment_id": "pi_example",    "provider_refund_id": "re_example",    "amount_cents": 2900,    "currency": "USD",    "status": "effective",    "reason": "requested_by_customer"  }}