For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
  • API Reference
      • GETList credit transactions
      • GETRetrieve a credit transaction
  • Reference
    • Filters API Reference
LogoLogo
DiscordPlatform
API ReferenceCredit Transactions

List credit transactions

GET
https://api.respan.ai/api/credit-transactions/list/
GET
/api/credit-transactions/list/
$curl -G https://api.respan.ai/api/credit-transactions/list/ \
> -H "Authorization: Bearer sk_live_51H8xY2Lz9aBcDeFgHiJkLmNoPqRsTuVwXyZ1234567890abcdef" \
> -H "Content-Type: application/json" \
> -d page=1 \
> -d page_size=50
1{
2 "count": 1,
3 "next": null,
4 "previous": null,
5 "results": [
6 {
7 "id": "ct_1a2b3c4d5e6f7g8h",
8 "organization_subscription": 2345,
9 "unique_organization_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
10 "amount": 150,
11 "transaction_type": "grant",
12 "created_at": "2024-01-15T09:30:00Z",
13 "expires_at": "2024-07-15T09:30:00Z",
14 "description": "Welcome bonus for new customer",
15 "stripe_payment_intent_id": "pi_3JH8xY2Lz9aBcDeFgHiJkLmNo",
16 "metadata": {
17 "source": "marketing_campaign",
18 "campaign_id": "spring2024"
19 }
20 }
21 ]
22}
List credit transactions with pagination.
Was this page helpful?
Previous

Retrieve a credit transaction

Next
Built with

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Query parameters

pageintegerOptionalDefaults to 1
Page number for pagination.
page_sizeintegerOptionalDefaults to 100
Number of items per page. Maximum is 1000.

Response

Paginated list of transactions.
countinteger
Total transactions.
nextstring or null
previousstring or null
resultslist of objects

Errors

401
Unauthorized Error