Credit History

View your credit history

Credit History

get

Get all credit history

Authorizations
Query parameters
pageintegerOptional

Page number

Example: 1
filter[type]string · enumOptional

Filter by credit type

Example: creditPossible values:
filter[sms.smsid]integerOptional

Filter by sms id

Example: 1009771270
Responses
200
List all the credit history
application/json
get
GET /api/v1/credits/history HTTP/1.1
Host: ducksms.com
Authorization: Bearer JWT
Accept: */*
{
  "status": 200,
  "message": "Credit history data return successfully",
  "data": [
    {
      "txid": "342660487",
      "type": "charge",
      "amount": 1,
      "description": "SMS credit charge",
      "smsid": "1201910908"
    },
    {
      "txid": "1220368389",
      "type": "charge",
      "amount": 2,
      "description": "SMS credit charge",
      "smsid": "634967613"
    }
  ]
}

Last updated