Charges

Read a charge

One charge with its lines, tax and status.

Authorization

bearer charges:read
AuthorizationBearer <token>

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

In: header

Scope: charges:read

Path Parameters

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

Response Body

application/json

application/problem+json

GET
/v1/charges/{chargeId}
curl -X GET "https://example.com/v1/charges/string"
{  "id": "string",  "subscriptionId": "string",  "status": "string",  "amount": {    "amount": -9007199254740991,    "currency": "string"  },  "tax": {    "amount": -9007199254740991,    "currency": "string"  },  "lines": [    {      "kind": "offer",      "offerId": "42da58f8-9040-4cf5-98ce-bce9965cca0d",      "quantity": 1,      "unitAmount": {        "amount": -9007199254740991,        "currency": "string"      },      "amount": {        "amount": -9007199254740991,        "currency": "string"      }    }  ],  "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",  "invoiceNumber": "string",  "failureCode": "string",  "createdAt": "2019-08-24T14:15:22Z",  "liveMode": true}