Payments
GET /v1/payments lists the card payments taken at a location, on Stripe and on PAX terminals, in one list. Each payment carries its refunds and disputes. Use it to match card payments to your own records. A card is only ever its brand and last 4 digits.
Needs the payments:read scope (Payments in Back Office). See Scopes.
Request
curl "https://developer.selflane.com/v1/payments?location=64b0c1e2f3a4b5c6d7e8f901&from=2026-11-01&to=2026-11-30" \
-H "Authorization: Bearer $SELFLANE_API_KEY"| Parameter | Required | Notes |
|---|---|---|
from | Yes | First date a payment was taken, YYYY-MM-DD in UTC |
to | Yes | Last date, inclusive. At most 31 days counting both ends. |
limit | No | Payments per page, 1 to 200. Default 50. |
cursor | No | The next_cursor from the previous page. Works only with the same location, from, and to. |
location | When the key covers several locations | One of the key’s locations |
Payments come in the order they were taken, oldest first. Keep requesting with cursor until next_cursor is null. A page can hold fewer than limit payments, or none, and still have a next_cursor.
Dates are UTC, not the location’s business day. An evening payment in North America falls on the next UTC date. To cover one local day, ask for both UTC dates it spans and filter on created.
Response
{
"data": [
{
"id": "6ae89e92a7fcd5fe36420056",
"location": "64b0c1e2f3a4b5c6d7e8f901",
"processor": "stripe",
"type": "sale",
"status": "succeeded",
"amount": 1547,
"tip": null,
"application_fee": 52,
"amount_refunded": 500,
"currency": "usd",
"created": "2026-11-02T14:30:37.000Z",
"order": "6ae89e85bfc1a2df445d6cc7",
"card": null,
"refunds": [{ "id": "6ae8b403d2e3f4a5b6c7d8e9", "amount": 500, "currency": "usd", "status": "succeeded", "created": "2026-11-02T16:02:11.000Z" }],
"disputes": []
},
{
"id": "6ae8a09e544a5e7b2ecc5bb2",
"location": "64b0c1e2f3a4b5c6d7e8f901",
"processor": "pax",
"type": "sale",
"status": "succeeded",
"amount": 1975,
"tip": 238,
"application_fee": null,
"amount_refunded": 0,
"currency": "usd",
"created": "2026-11-02T14:39:26.920Z",
"order": null,
"card": { "brand": "visa", "last4": "2188" },
"refunds": [],
"disputes": []
}
],
"next_cursor": null
}Which payments you get
| Source | Included | Left out |
|---|---|---|
| Stripe, online and app orders | Live payments on this location’s orders, including declined attempts as failed | Selflane’s own bills to the business, such as invoices and delivery fees |
| Stripe, in store (Terminal, kiosk, QR Pay) | Payments where a card was presented | Payments canceled before a card was presented |
| PAX terminal | Approved sales, authorizations, and returns | Declines, errors, and the terminal’s own gift card operations |
Each payment appears once, even when Selflane records it twice. To total what was taken, add up only succeeded payments.
A PAX terminal logs one card transaction as several records. The API joins them into one payment:
- A tip adjust sets
amountandtipto the adjusted values. - An authorization and its post-authorization are one
succeededpayment. An authorization alone stayspending. - A void makes the payment
canceled.amountis kept andamount_refundedstays 0. - A return is its own payment with
typereturn. The terminal doesn’t link it to the sale it returns.
A record more than 3 days after its sale isn’t always joined to it.
Fields
All money is integer cents in currency. Times are ISO 8601 in UTC.
| Field | Meaning |
|---|---|
id | The payment’s ID. It doesn’t change. |
processor | stripe or pax |
type | sale, or return for money a PAX terminal sent back to a card |
status | succeeded, pending (authorized, not captured), canceled, or failed. canceled is a PAX void or a Stripe authorization released before capture. |
amount | What the card was charged, tip included. For a return, what went back to the card. |
tip | The card tip within amount, after any tip adjust. null for Stripe, which doesn’t store the tip separately, and for a return. |
application_fee | The part of amount Selflane kept: its fees and any service or delivery fee the customer paid. null for PAX, and for Stripe when no fee was recorded. |
amount_refunded | The total of the succeeded refunds. An in-store payment refunded in full shows its whole amount even when no refund is listed. |
created | When the payment was taken. It doesn’t change. |
order | The Selflane order the payment paid, or null. Always null for PAX. |
card | brand and last4, or null when the processor didn’t report the card, as for online Stripe payments and older in-store payments. Either field can be null. brand is lowercase, such as visa, mastercard, amex, discover, diners, or jcb. Stripe can send other brands, such as interac. A PAX card type outside the list is other. |
refunds | Stripe refunds of this payment: id, amount, currency, status (succeeded, pending, failed, or canceled), and created. Empty for PAX. |
disputes | Chargebacks on this payment: id, amount, currency, status and reason as Stripe reports them (such as needs_response and fraudulent), and created. status, reason, and created can be null. Empty for PAX. |
Refunds on split orders
Stripe refunds are recorded against the order, not the payment. A refund is listed on a payment only when one Stripe payment paid the order. When an order was split across several payments, its refunds are on none of them, and those payments show amount_refunded 0. The exception is an in-store payment refunded in full, which still shows its whole amount.
A PAX refund shows up as a void (status canceled) or as a separate return.
Keep your copy current
A payment can change after it’s taken: a tip adjust, a void, a capture, a refund, or a dispute.
- On every sync, re-pull the last 7 days. That catches tip adjusts, voids, and captures.
- Replace a stored payment when one with the same
idcomes back. - Refunds and disputes can come weeks later. To catch them, re-pull older dates from time to time, 31 days per request.
Errors
| Status | code | When |
|---|---|---|
400 | invalid_parameter | from or to is missing or not a calendar date, or limit is out of range. param names it. |
400 | invalid_date_range | to is before from, or the range covers more than 31 days |
400 | invalid_cursor | The cursor wasn’t issued for this location and date range |
400 | location_required | The key covers several locations and none was named |
403 | insufficient_scope | The key lacks payments:read |
403 | location_not_permitted | The key doesn’t cover the named location |
403 | plan_required | The location isn’t live or is below the POS plan |
503 | replica_unavailable | Payments are briefly unavailable. Retry after Retry-After. |
503 | payment_timeout | The request took too long. Retry after Retry-After, or ask for fewer days. |
See Errors for the codes every endpoint shares.