API’s Response Code

A. Overview

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

B. Response Code Format

Response CodeResponse Message
200xx2000Sukses
201xx2001Berhasil dibuat
400xx6505Waktu tidak sesuai
400xx6508Signature tidak sesuai
400xx6510Validasi Error
400xx6512Field tidak boleh kosong
400xx6525Produk tidak sesuai
400xx6568UUID tidak sesuai
400xx6569Grant type tidak sesuai
401xx6500Token tidak sesuai
401xx6535Token kadaluarsa
401xx6570Kredensial tidak sesuai
403xx6524Butuh verifikasi terlebih dahulu
403xx6567User type bukan b2b
403xx6571IP tidak ada di dalam whitelist
403xx6572User type bukan irs
404xx6525Produk tidak sesuai
404xx7001Gagal ambil data user
404xx7002No Customer tidak ditemukan
404xx7003Produk tidak ditemukan
404xx7005Transaksi tidak ditemukan
404xx7009Akun telah dinonaktifkan atau diblokir, silahkan hubungi customer support terkait.
404xx7011No pelanggan salah, pastikan nomor yang diinput sesuai
404xx7012Angsuran terakhir, silahkan kunjungi kantor cabang
409xx6563ReferenceNo sudah digunakan, silahkan gunakan reference_no yang lain
500xx8504Gagal merubah data ke database
500xx8505Gagal mengambil data dari database
500xx8601Gagal masukan data ke redis
500xx9975Data user belum di set
500xx9992Provider tidak diketahui
500xx9999Harap hubungi admin
501xx9976Belum di implementasi
503xx9991Supplier sedang gangguan
503xx9998Jumlah pembayaran harus lebih besar dari jumlah minimum plus biaya admin (jika ada biaya admin)

C. Service Code List

Service CodeName
00Unknown
01Auth
02Transaction
03Account
04Product

D. Response Layout

FieldTypeMandatoryDescription
response_codestringYThe value of response code
response_messagestringYThe short explanation of response code
paginationobjectNThe pagination data if exists
total_pageintYThe value of total existing page
total_dataintYThe value of total data
current_pageintYThe value of current page
prev_pageintNThe value of previous page if exists
next_pageintNThe value of next page if exists
dataobjectYThe data returned by the API