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
creditTransaction
A Paid ID, external ID or resource key, as supported by the referenced resource.
Headers
Paid-Beta
This endpoint is in the credits=v1 beta. Send this header to use it.
Allowed values:
Response
200
id
The CreditTransaction ID.
object
The type of object. Always creditTransaction.
Allowed values:
createdAt
When the object was created.
amount
An exact signed credit amount, up to 15 fractional places.
balanceAfter
An exact non-negative credit amount, up to 15 fractional places.
creditCurrency
A Paid ID, external ID or resource key, as supported by the referenced resource.
customer
A Paid ID, external ID or resource key, as supported by the referenced resource.
customerUnit
A Paid ID, external ID or resource key, as supported by the referenced resource.
event
A Paid ID, external ID or resource key, as supported by the referenced resource.
grant
A Paid ID, external ID or resource key, as supported by the referenced resource.
livemode
true for an object on a live account, false on a test account.
meter
A Paid ID, external ID or resource key, as supported by the referenced resource.
occurredAt
When usage or the grant happened.
order
A Paid ID, external ID or resource key, as supported by the referenced resource.
pendingEntry
A Paid ID, external ID or resource key, as supported by the referenced resource.
product
A Paid ID, external ID or resource key, as supported by the referenced resource.
reason
Why the entry was written.
seat
A Paid ID, external ID or resource key, as supported by the referenced resource.
type
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