Skip to main content
GET
/
billing
/
transactions
List transactions
curl --request GET \
  --url https://app.sendmux.ai/api/v1/billing/transactions \
  --header 'Authorization: Bearer <token>'
{
  "ok": true,
  "data": [
    {
      "id": "ctxn_clxxxxxxxxxxxxxxxxxxxxxxxxx",
      "amount": "-0.001500",
      "type": "PURCHASE",
      "description": "<string>",
      "quantity": 123,
      "balance_before": "<string>",
      "balance_after": "<string>",
      "created_at": "<string>"
    }
  ],
  "pagination": {
    "total": 123,
    "pages": 123,
    "current": 123,
    "has_more": true
  },
  "meta": {
    "request_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Sendmux API key. Obtain from the dashboard under API Keys. Format: smx_root_...

Query Parameters

page
integer

Page number (default: 1)

Required range: x >= 1
limit
integer

Max results (default 25, max 100)

Required range: 1 <= x <= 100
type
enum<string>
Available options:
PURCHASE,
USAGE,
AUTO_TOPUP,
REFUND,
ADJUSTMENT

Response

Transaction list

ok
enum<boolean>
required
Available options:
true
data
object[]
required
pagination
object
required
meta
object
required