creditTransactions

Retrieve a credit transaction

Retrieve details of a specific credit transaction.

get/api/credit-transactions/{id}/

Path parameters

idstring required

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

Headers

Authorizationstring required

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.

Response

Transaction details.

idstring

Transaction ID.

organization_subscriptioninteger

Organization subscription ID.

unique_organization_idstring

Organization UUID.

amountnumber double

Transaction amount in USD. Negative for deductions.

transaction_type'purchase' | 'grant' | 'adjustment' | 'refund' | 'bonus'

Transaction type.

created_atstring date-time

Transaction timestamp.

expires_atstring date-time nullable

Expiration date for time-limited credits.

descriptionstring

Transaction description.

stripe_payment_intent_idstring

Stripe payment intent ID (for purchases).

metadataApiCreditTransactionsIdGetResponsesContentApplicationJsonSchemaMetadata

Custom metadata.

Changes