v1Resources/Clients/getGet client credits

Get client credits

Read the credits shown in Clients: given, used, remaining, last addition and the latest 50 history entries. Requires an identified agency user with Clients access and access to the requested client. The client-credits:read scope is available only through Custom API-key permissions. Reads do not initialize or reset the wallet. No internal usage quantities, provider costs, payment credentials or credit configuration are returned.

get/api/v1/clients/{id}/credits
client-credits:read
Response
dataobjectrequired
clientIdstringrequired
givenintegerrequired
usedintegerrequired
remainingintegerrequired
lastAddedobjectrequired
creditsintegerrequired
atstringrequired
usedSinceintegerrequired
bystringrequired
historyarray of objectrequired
creditsintegerrequired
remainingAfterintegerrequired
notestringrequired
atstringrequired
bystringrequired
Errors
400The request is missing a required parameter or is otherwise malformed.
401Missing, invalid, expired, or revoked API key.
403The key lacks the required scope, or isn't authorized for this client/location.
404The resource wasn't found, or doesn't belong to your agency.
429Too many requests. Retry after the number of seconds in the Retry-After header.
503The service is temporarily unavailable. Retry a credit grant with the same idempotency key.
get/api/v1/clients/{id}/credits
Your API key
{}

Guides that use this resource