The response code of OpenAPI is a combination of standard HTTP code and Klikoo B2B’s internal code. This documentation aims to provide a dictionary of the code and how they should be interpreted.
For example, response code 401010001 means:
- 401 → HTTP Code Unauthorized
- 01 → Service / feature code.
- 0001 → Indicator of specific case under the category of the HTTP Code. e.g. Invalid token
| Response Code | Response Message |
|---|
| 200xx2000 | Sukses |
| 201xx2001 | Berhasil dibuat |
| 400xx6505 | Waktu tidak sesuai |
| 400xx6508 | Signature tidak sesuai |
| 400xx6510 | Validasi Error |
| 400xx6512 | Field tidak boleh kosong |
| 400xx6525 | Produk tidak sesuai |
| 400xx6568 | UUID tidak sesuai |
| 400xx6569 | Grant type tidak sesuai |
| 401xx6500 | Token tidak sesuai |
| 401xx6535 | Token kadaluarsa |
| 401xx6570 | Kredensial tidak sesuai |
| 403xx6524 | Butuh verifikasi terlebih dahulu |
| 403xx6567 | User type bukan b2b |
| 403xx6571 | IP tidak ada di dalam whitelist |
| 403xx6572 | User type bukan irs |
| 404xx6525 | Produk tidak sesuai |
| 404xx7001 | Gagal ambil data user |
| 404xx7002 | No Customer tidak ditemukan |
| 404xx7003 | Produk tidak ditemukan |
| 404xx7005 | Transaksi tidak ditemukan |
| 404xx7009 | Akun telah dinonaktifkan atau diblokir, silahkan hubungi customer support terkait. |
| 404xx7011 | No pelanggan salah, pastikan nomor yang diinput sesuai |
| 404xx7012 | Angsuran terakhir, silahkan kunjungi kantor cabang |
| 409xx6563 | ReferenceNo sudah digunakan, silahkan gunakan reference_no yang lain |
| 500xx8504 | Gagal merubah data ke database |
| 500xx8505 | Gagal mengambil data dari database |
| 500xx8601 | Gagal masukan data ke redis |
| 500xx9975 | Data user belum di set |
| 500xx9992 | Provider tidak diketahui |
| 500xx9999 | Harap hubungi admin |
| 501xx9976 | Belum di implementasi |
| 503xx9991 | Supplier sedang gangguan |
| 503xx9998 | Jumlah pembayaran harus lebih besar dari jumlah minimum plus biaya admin (jika ada biaya admin) |
| Service Code | Name |
|---|
| 00 | Unknown |
| 01 | Auth |
| 02 | Transaction |
| 03 | Account |
| 04 | Product |
| Field | Type | Mandatory | Description |
|---|
| response_code | string | Y | The value of response code |
| response_message | string | Y | The short explanation of response code |
| pagination | object | N | The pagination data if exists |
| total_page | int | Y | The value of total existing page |
| total_data | int | Y | The value of total data |
| current_page | int | Y | The value of current page |
| prev_page | int | N | The value of previous page if exists |
| next_page | int | N | The value of next page if exists |
| data | object | Y | The data returned by the API |