Orders

Read a payment

One payment by its id. A payment this workspace does not hold is refused with `PAYMENT_NOT_FOUND`.

Authorization

bearer orders:read
AuthorizationBearer <token>

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

In: header

Scope: orders:read

Path Parameters

paymentId*string
Match^[A-Za-z0-9_-]{1,64}$
Length1 <= length <= 64

Response Body

application/json

application/problem+json

GET
/v1/payments/{paymentId}
curl -X GET "https://example.com/v1/payments/string"
{  "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"    }  }}