Credit History
View your credit history
Get all credit history
Authorizations
Query parameters
pageintegerOptionalExample:
Page number
1
filter[type]string · enumOptionalExample:
Filter by credit type
credit
Possible values: filter[sms.smsid]integerOptionalExample:
Filter by sms id
1009771270
Responses
200
List all the credit history
application/json
400
Invalid request
application/json
401
Unauthenticated
application/json
404
No data found
application/json
500
Server error
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