Charges
Read a charge
One charge with its lines, tax and status.
Authorization
bearer charges:readAuthorizationBearer <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}$Length
1 <= length <= 64Response Body
application/json
application/problem+json
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}Charge a subscription POST
Charges the subscription’s payment method off-session for offer lines of your catalogue, never a free amount. A failure is a state of the charge, not an error.
Create a checkout session POST
Creates a hosted checkout link over the offers named, each once. It is created active.