Orders
List payments
Payments of the workspace, a page at a time, filtered by the query fields listed.
Authorization
bearer orders:readAuthorizationBearer <token>
A v1 API key; the scope named is the one the route needs.
In: header
Scope: orders:read
Query Parameters
limit?integer
Range
1 <= value <= 100Default
20cursor?string
Match
^[A-Za-z0-9_-]{1,512}$status?string
kind?string
type?string
number?string
email?string
disputed?string
createdFrom?string
createdTo?string
Response Body
application/json
application/problem+json
curl -X GET "https://example.com/v1/payments"{ "data": [ { "id": "string", "kind": "string", "status": "string", "amount": { "amount": -9007199254740991, "currency": "string" }, "occurredAt": "2019-08-24T14:15:22Z", "method": { "kind": "string", "type": "string", "brand": "string", "last4": "string", "wallet": "string", "issuerCountry": "string", "network": "string" }, "failure": { "code": "string", "message": "string" }, "disputed": true, "order": { "id": "string", "number": "string", "type": "string", "subtotal": { "amount": -9007199254740991, "currency": "string" }, "tax": { "amount": -9007199254740991, "currency": "string" }, "fee": { "amount": -9007199254740991, "currency": "string" }, "total": { "amount": -9007199254740991, "currency": "string" }, "createdAt": "2019-08-24T14:15:22Z" }, "customer": { "email": "string" }, "invoiceNumber": "string", "refund": { "state": "string", "refunded": { "amount": -9007199254740991, "currency": "string" } } } ], "nextCursor": "string"}Preview a refund GET
What a refund of the order would move, before you ask for one, and why it would be refused now. Leave out `amount` for the rest of the order; every figure is in the order’s currency.
Read a payment GET
One payment by its id. A payment this workspace does not hold is refused with `PAYMENT_NOT_FOUND`.