Skip to Content
DevelopersPayments

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"
ParameterRequiredNotes
fromYesFirst date a payment was taken, YYYY-MM-DD in UTC
toYesLast date, inclusive. At most 31 days counting both ends.
limitNoPayments per page, 1 to 200. Default 50.
cursorNoThe next_cursor from the previous page. Works only with the same location, from, and to.
locationWhen the key covers several locationsOne 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

SourceIncludedLeft out
Stripe, online and app ordersLive payments on this location’s orders, including declined attempts as failedSelflane’s own bills to the business, such as invoices and delivery fees
Stripe, in store (Terminal, kiosk, QR Pay)Payments where a card was presentedPayments canceled before a card was presented
PAX terminalApproved sales, authorizations, and returnsDeclines, 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 amount and tip to the adjusted values.
  • An authorization and its post-authorization are one succeeded payment. An authorization alone stays pending.
  • A void makes the payment canceled. amount is kept and amount_refunded stays 0.
  • A return is its own payment with type return. 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.

FieldMeaning
idThe payment’s ID. It doesn’t change.
processorstripe or pax
typesale, or return for money a PAX terminal sent back to a card
statussucceeded, pending (authorized, not captured), canceled, or failed. canceled is a PAX void or a Stripe authorization released before capture.
amountWhat the card was charged, tip included. For a return, what went back to the card.
tipThe card tip within amount, after any tip adjust. null for Stripe, which doesn’t store the tip separately, and for a return.
application_feeThe 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_refundedThe total of the succeeded refunds. An in-store payment refunded in full shows its whole amount even when no refund is listed.
createdWhen the payment was taken. It doesn’t change.
orderThe Selflane order the payment paid, or null. Always null for PAX.
cardbrand 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.
refundsStripe refunds of this payment: id, amount, currency, status (succeeded, pending, failed, or canceled), and created. Empty for PAX.
disputesChargebacks 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.

  1. On every sync, re-pull the last 7 days. That catches tip adjusts, voids, and captures.
  2. Replace a stored payment when one with the same id comes back.
  3. Refunds and disputes can come weeks later. To catch them, re-pull older dates from time to time, 31 days per request.

Errors

StatuscodeWhen
400invalid_parameterfrom or to is missing or not a calendar date, or limit is out of range. param names it.
400invalid_date_rangeto is before from, or the range covers more than 31 days
400invalid_cursorThe cursor wasn’t issued for this location and date range
400location_requiredThe key covers several locations and none was named
403insufficient_scopeThe key lacks payments:read
403location_not_permittedThe key doesn’t cover the named location
403plan_requiredThe location isn’t live or is below the POS plan
503replica_unavailablePayments are briefly unavailable. Retry after Retry-After.
503payment_timeoutThe request took too long. Retry after Retry-After, or ask for fewer days.

See Errors for the codes every endpoint shares.

Last updated on