Ducksms
BlogWhatsapp Support
  • Welcome
  • Web Console
    • Bahasa
      • Gambaran Keseluruhan
      • Pendaftaran
      • Log Masuk
        • Log masuk ke Web Console
        • Lupa kata laluan
      • Papan pemuka
      • Id pengirim
        • Gambaran keseluruhan
        • Mencipta ID penghantar
      • SMS
        • Penghantaran SMS
        • SMS berjadual
        • Laporan penghantaran
        • Insight
      • Templat
      • Kredit
        • Tambah nilai
        • Sejarah
        • Kaedah Pembayaran
      • Kumpulan
        • Pelanggan
      • Tools
        • Smart Link
        • Bulk Contact Import
      • Akaun
        • Profil
        • Tukar password
        • Log keluar
      • Tapisan
      • Token API
        • Gambaran
        • Batalkan Token API
    • English
  • Developer
    • API Documentation
      • Overview
      • Quick Start
      • Authentication
      • API Reference
        • SMS
          • Send SMS
          • Schedule
            • Schedule List
            • Cancel Schedule
        • Sender ID
          • List Sender ID
          • Create Sender ID
          • Update Sender ID
          • Delete Sender ID
        • Credit
          • Balance
          • Credit History
        • Delivery Report (Webhook)
    • SDK (Github)
Powered by GitBook
On this page
  1. Developer
  2. API Documentation
  3. API Reference
  4. Credit

Credit History

PreviousBalanceNextDelivery Report (Webhook)

Last updated 2 years ago

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
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"
    }
  ]
}