Get Ledger
/storefront-public/api/v1/ledgerEach entry's amount is in its own currency, the store's when it was written: entries from before the store changed its currency keep the one they were written in, so never add amounts of different currencies.
Authorization
bearer In: header
Query Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/storefront-public/api/v1/ledger"{ "items": [ { "id": "string", "kind": "topup", "amountMinor": -9007199254740991, "currency": "AED", "ref": "string", "memo": "string", "actor": "string", "actorName": "string", "createdAt": "string", "purchase": { "id": "string", "status": "pending_approval", "keys": -9007199254740991, "products": [ "string" ], "buyer": { "membershipId": "string", "displayName": "string" } } } ], "nextCursor": "string", "total": 0}Get Key GET
The key with its status refreshed from the provider. `liveStatus` says how fresh it is: `live` when the provider answered just now, `unavailable` when it could not be reached and the last snapshot is returned, `unknown_to_provider` when the provider does not know the key (no action that calls it is offered). `quotaRefusals` names the offered actions a used-up quota refuses now, of the caller or of a reseller they buy through, with when each is allowed again; past a quota with an overage price the action is charged instead.
Get Purchase GET
Next Page
