Account Binding Inquiry
Berfungsi menampilkan status akun dari user, bisa digunakan sebelum dan sesudah melakukan registrasi account
atau binding account
Service Info
HTTP Method | POST |
---|---|
Service Code | 80 |
Http Method | POST |
Path | .../{version}/registration-account-inquiry |
Header
Header Name | Tipe Data | Wajib | Deskripsi |
---|---|---|---|
Content-Type | String | Y | application/json |
Authorization | String | Y | Token B2B |
X-SIGNATURE | String | Y | Dibuat dengan algoritma asymmetric with token B2B : Signature Generation |
X-PARTNER-ID | String | Y | Client’s client_id (diberikan pada saat onboarding ) |
X-EXTERNAL-ID | String | Y | Nomor referensi yang harus unik pada hari yg sama |
CHANNEL-ID | String | Y | 00001 untuk PJP and 00002 untuk non PJP |
Body
Parameter | Tipe Data | Deskripsi |
---|---|---|
additionalInfo | Object | Informasi tambahan |
phoneNo | String | Nomor telepon pengguna Length: <= 14 characters |
deviceId | String | ID perangkat pengguna Length: <= 128 characters |
Request samples
- JSON
- CURL
{
"additionalInfo": {
"phoneNo": "0812xxxxxxxx",
"deviceId": "android-20013adf6xxxxxxxx"
}
}
curl --location --request POST '.../v1.0/registration-account-inquiry' \
--header 'X-TIMESTAMP: 2023-01-17T16:39:00+07:00' \
--header 'X-SIGNATURE: RwABEherf+3MTBhIf6vtju6ko+YOFFKWLGgHCD5RwX1I17JCKVn8ffc/TenEIly85InhuIcKCDqDrxbIBhaKEg==' \
--header 'X-PARTNER-ID: 085224a9-4b42-4f7d-959f-4452f8a9a1ff' \
--header 'X-EXTERNAL-ID: cdce95b7-0523-456a-9356-f4f3c9fc7776' \
--header 'CHANNEL-ID: 12345' \
--header 'Authorization: Bearer 59400db8-36f3-4c20-9e7b-1c3f4aa8f7c5' \
--header 'Content-Type: application/json' \
--data '{
"additionalInfo": {
"phoneNo": "0812xxxxxxxx",
"deviceId": "android-20013adf6xxxxxxxx"
}
}'
Response Structure
Parameter | Tipe Data | Deskripsi |
---|---|---|
responseCode | String | Kode response Length: <= 7 characters |
responseMessage | String | Deskripsi response Length: <= 150 characters |
referenceNo | String | kode Referensi Length: <= 64 characters |
additionalInfo | Object | Informasi tambahan |
merchantId | String | Kode unik yang dimiliki setiap user |
status | Integer | Status merchant -2 = di blokir -1 = di blacklist 0 = tidak terdaftar 1 = berhasil binding 2 = akun terdaftar tapi belum binding |
Response samples
{
"responseCode": "2000800",
"responseMessage": "Successful Activated",
"referenceNo": "0000000000",
"additionalInfo": {
"merchantId": "121xxxxx",
"status": 1
}
}
List Response Code Account Binding Inquiry
Response Code | Response Message | Description |
---|---|---|
2008000 | Success | Sukses |
4008001 | Invalid field format { field name } | Format invalid |
4008002 | Invalid mandatory field {field name} | Format pada bidang wajib tidak ada atau tidak valid |
4018000 | Unauthorized. Invalid Signature | X-Signature salah |
4098000 | Cannot use same X-EXTERNAL-ID in same day | X-External-ID sudah pernah digunakan di hari yang sama |
4048001 | Bad Request | Request header ada yang salah / kurang |
4048001 | Unauthorized. Client Forbidden Access API | Partner tidak dapat mengakses api terkait |