Skip to navigation

Retrieve a credit transaction

Draft scaffold — not implemented or available in the API.

Returns one credit ledger entry. Entries are read-only; credits are changed through credit grants. {creditTransaction} takes the entry’s ctxn_ ID.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

creditTransactionstringRequired1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.

Headers

Paid-BetaenumRequired

This endpoint is in the credits=v1 beta. Send this header to use it.

Allowed values:

Response

200
idstring
The CreditTransaction ID.
objectenum

The type of object. Always creditTransaction.

Allowed values:
createdAtdatetime
When the object was created.
amountstringformat: "^-?\d+(\.\d{1,15})?$"
An exact signed credit amount, up to 15 fractional places.
balanceAfterstringformat: "^\d+(\.\d{1,15})?$"

An exact non-negative credit amount, up to 15 fractional places.

creditCurrencystring1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
customerstring1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
customerUnitstring or null1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
eventstring or null1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
grantstring or null1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
livemodeboolean

true for an object on a live account, false on a test account.

meterstring or null1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
occurredAtdatetime
When usage or the grant happened.
orderstring or null1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
pendingEntrystring or null1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
productstring or null1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
reasonstring or null
Why the entry was written.
seatstring or null1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
typeenum
Ledger entry type.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
501
Not Implemented Error