Retrieve a credit transaction

Retrieve details of a specific credit transaction.

Authentication

AuthorizationBearer

Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.

Path parameters

idstringRequired

The unique identifier of the transaction to retrieve (e.g., ct_1a2b3c4d5e6f7g8h)

Response

Transaction details.
idstring
Transaction ID.
organization_subscriptioninteger
Organization subscription ID.
unique_organization_idstring
Organization UUID.
amountdouble
Transaction amount in USD. Negative for deductions.
transaction_typeenum
Transaction type.
created_atdatetime
Transaction timestamp.
expires_atdatetime or null

Expiration date for time-limited credits.

descriptionstring
Transaction description.
stripe_payment_intent_idstring

Stripe payment intent ID (for purchases).

metadataobject
Custom metadata.

Errors

401
Unauthorized Error
404
Not Found Error