Orders

List payments

Payments of the workspace, a page at a time, filtered by the query fields listed.

Authorization

bearer orders:read
AuthorizationBearer <token>

A v1 API key; the scope named is the one the route needs.

In: header

Scope: orders:read

Query Parameters

limit?integer
Range1 <= value <= 100
Default20
cursor?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

GET
/v1/payments
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"}