Skip to main content
GET
/
api
/
billing
/
sms
/
purchases
/
history
Get Purchase History
curl --request GET \
  --url https://api.example.com/api/billing/sms/purchases/history/
{
  "count": 10,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "package_name": "Starter Package",
      "sms_count": 1000,
      "price": 50.00,
      "currency": "USD",
      "status": "completed",
      "purchased_at": "2025-11-01T10:00:00Z"
    }
  ]
}
Get history of SMS package purchases.
page
integer
Page number (default: 1)
page_size
integer
Items per page (default: 20, max: 100)
status
string
Filter by status (pending, completed, failed)
Requires authentication. Include the access token in the Authorization header.

Success Response (200)

count
integer
Total number of purchases
next
string
URL to next page (nullable)
previous
string
URL to previous page (nullable)
results
array
Array of purchase objects
results[].id
string
Purchase ID
results[].package_name
string
Package name
results[].sms_count
integer
Number of SMS credits purchased
results[].price
float
Purchase price
results[].currency
string
Currency code
results[].status
string
Purchase status
results[].purchased_at
string
Purchase timestamp (ISO 8601)
{
  "count": 10,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "package_name": "Starter Package",
      "sms_count": 1000,
      "price": 50.00,
      "currency": "USD",
      "status": "completed",
      "purchased_at": "2025-11-01T10:00:00Z"
    }
  ]
}