API reference
Payments
Every successful charge — from a payment link, invoice, subscription, or widget — lands as a Payment row. The list endpoint is the canonical way to reconcile your books against the dashboard. Creating new payments goes through the hosted-checkout flow rather than a direct POST (PCI compliance).
List payments
GET
/v1/paymentsscope: payments:readCursor-paginated, newest first. Filter by status / method / customer; search by partial provider reference, payment id, or description.
Query parameters
statusstring | Filter by status. One of: |
methodstring | Filter by payment method. One of: |
customerIdstring | Filter to payments attached to a single customer. |
qstring | Search across id, providerRef, description. |
cursorstring | Pagination cursor. |
pageSizenumber | 1–100, default 25. |
curl "https://baynoy.com/api/v1/payments?status=succeeded&pageSize=25" \ -H "Authorization: Bearer sk_live_…"
Response
{
"ok": true,
"data": {
"items": [
{
"id": "pay_8f7e6d5c-...",
"amount": "2000",
"currency": "CHF",
"feeAmount": "120",
"netAmount": "1880",
"status": "succeeded",
"method": "card",
"cardBrand": "visa",
"cardLast4": "4242",
"description": "Consulting fee",
"customer": {
"id": "cus_...",
"name": "Acme Industries",
"email": "[email protected]"
},
"availableOn": "2026-05-29T00:00:00.000Z",
"createdAt": "2026-05-27T12:34:56.789Z"
}
],
"nextCursor": null,
"hasMore": false
}
}