Account Creation
Berfungsi untuk pembuatan akun speedcash baru, pada proses ini akun akan otomatis binding
note
Setelah user berhasil melakukan binding account speedcash akan mengirimkan callback
Service Info
HTTP Method | POST |
---|---|
Service Code | 06 |
Http Method | POST |
Path | .../{version}/registration-account-creation |
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 | Wajib | Deskripsi |
---|---|---|---|
name | String | Y | Nama pengguna Length: <= 128 characters |
phoneNo | String | Y | Nomor telepon pengguna Length: <= 14 characters |
String | N | Email pengguna Length: <= 254 characters | |
additionalInfo | Object | Y | Informasi tambahan |
callbackUrl | String | Y | URL callback merchant Length: <= 2048 characters |
deviceId | String | N | ID perangkat Length: <= 255 characters |
Request samples
- JSON
- CURL
{
"name": "Madara Uchiha",
"phoneNo": "0812xxxxxxxxx",
"email": "madarauchiha@gmail.com",
"additionalInfo": {
"callbackUrl": "https://yourapi.com/callback",
"deviceId": "android-20013adf6xxxxxxxx"
}
}
curl --location --request POST '.../v1.0/registration-account-creation' \
--header 'X-TIMESTAMP: 2023-01-17T13:32:00+07:00' \
--header 'X-SIGNATURE: vcQjs/kz5K3Br4gnP9161K8U4EwN0z3E9CRcZkwkZC217O/meyrjxHJSNfJTlhcw+7p/nVxlmKDZHnKiXCDHKg==' \
--header 'X-PARTNER-ID: 085224a9-4b42-4f7d-959f-4452f8a9a1ff' \
--header 'X-EXTERNAL-ID: 42fa4fde-e714-4eef-a9f0-f22a0ac9f3d7' \
--header 'X-DEVICE-ID: 1ea583687a8ac0c776786370baae24bd' \
--header 'CHANNEL-ID: 12345' \
--header 'Authorization: Bearer 59400db8-36f3-4c20-9e7b-1c3f4aa8f7c5' \
--header 'Content-Type: application/json' \
--data '{
"name": "Madara Uchiha"
"phoneNo": "0812xxxxxxxxx"
"email": "madarauchiha@gmail.com"
"additionalInfo": {
"callbackUrl": "https://yourapi.com/callback",
"deviceId": "android-20013adf6xxxxxxxx"
}
}'
Response Structure
Parameter | Tipe Data | Deskripsi |
---|---|---|
responseCode | String | Kode response Length: <= 7 characters |
responseMessage | String | Deskripsi response Length: <= 150 characters |
redirectUrl | String | URL untuk pembuatan PIN pengguna Length: <= 255 characters |
Response samples
{
"responseCode": "2000600,",
"responseMessage": "Successful,",
"redirectUrl": ".../registration/xxxxxxxxxxxx"
}
List Response Code Account Creation
Response Code | Response Message | Description |
---|---|---|
2000600 | Success | Sukses |
4000601 | Invalid field format { field name } | Format invalid |
4000602 | Invalid mandatory field {field name} | Format pada bidang wajib tidak ada atau tidak valid |
4010600 | Unauthorized. Invalid Signature | X-Signature salah |
4090600 | Cannot use same X-EXTERNAL-ID in same day | X-External-ID sudah pernah digunakan di hari yang sama |
4040601 | Bad Request | Request header ada yang salah / kurang |
4040601 | Unauthorized. Client Forbidden Access API | Partner tidak dapat mengakses api terkait |