Skip to main content

rdl-registration

To register, you will need to hit this API through your Backend:

API Request

TypeValue
HTTP MethodPOST
API endpoint (Sandbox)https://api-sandbox.doku.com/sac-rdl/v1/rdl-customers
API endpoint (Production)https://api.doku.com/sac-rdl/v1/rdl-customers

Here is the sample of request header to create the payment:

Client-Id: MCH-0001-10791114622547
Request-Id: b6a465ea-bb65-48b2-a22b-3e8fb51cf22e
Request-Timestamp: 2020-08-11T08:45:42Z
Signature: HMACSHA256=vl9DBTX5KhEiXmnpOD0TSm8PYQknuHPdyHSTSc3W6Ps=
Request Header Explanation
ParameterDescription
Client-IdClient ID retrieved from DOKU Back Office
Request-IdUnique random string (max 128 characters) generated from merchant side to protect duplicate request
Request-TimestampTimestamp request on UTC time in ISO8601 UTC+0 format. It means to proceed transaction on UTC+7 (WIB), merchant need to subtract time with 7. Ex: to proceed transaction on September 22th 2020 at 08:51:00 WIB, the timestamp should be 2020-09-22T01:51:00Z
SignatureSecurity parameter that needs to be generated on merchant Backend and placed to the header request to ensure that the request is coming from valid merchant. Please refer to this section to generate the signature

Here is the sample of request body for RDL Registration:

{
"rdl_customer": {
"customer_id": "INVESTOR-0000100001",
"customer_name": "SEMAR DUADUA",
"address_city": "Kota Bandung",
"address_kecamatan": "Buah Batu",
"address_kelurahan": "Margasari",
"address_province": "Jawa Barat",
"address_rt_rw": "10/10",
"address_street": "Jl. Jalan",
"birth_date": "1989-09-01",
"birth_place": "Jakarta",
"education": "STRATA_SATU",
"email": "duadua@doku.com",
"gender": "FEMALE",
"home_phone_number": "0810101011",
"id_expiry_date": "2099-10-10",
"id_number": "1000000000000000",
"npwp_number" : "0111111111111111",
"job_code": "ENTREPRENEUR",
"marital_status": "MARRIED",
"mobile_phone_number": "0851231231",
"monthly_income": "1",
"mother_maiden_name": "mymom",
"nationality": "ID",
"office_phone_number": "02112311",
"religion": "ISLAM",
"resident_status": "R",
"source_of_fund": "SALARY",
"zip_code": "40286",
"title": "MS",
"open_account_reason": "INVESTMENT",
"selfie_photo": "(Base64)"
}
}
Request Body Explanation
ParameterTypeMandatoryDescription
rdl_customer.customer_idstringMandatoryUnique ID of the investor provide by merchant
Max Length: 100
rdl_customer.customer_namestringMandatoryInvestor's full name
Max Length: 100
rdl_customer.address_citystringMandatoryCity, you can refer to List Of City
Max Length: 50
rdl_customer.address_kecamatanstringMandatoryDistrict (kecamatan) where Investor lives
Max Length: 50
rdl_customer.address_kelurahanstringMandatorySub-District (kelurahan) where Investor lives
Max Length: 50
rdl_customer.address_provincestringMandatoryProvince (provinsi) where Investor lives
Max Length: 50
rdl_customer.address_rt_rwstringMandatoryRT/RW where Investor lives
Max Length: 50
rdl_customer.address_streetstringMandatoryStreet address where Investor lives
Max Length: 100
rdl_customer.birth_datedateMandatoryInvestor's birth date
rdl_customer.birth_placestringMandatoryInvestor's birth place
Max Length: 100
rdl_customer.educationstringMandatoryEducation, you can refer to List Of Education
Max Length: 20
rdl_customer.emailstringMandatoryInvestor's email
Max Length: 40
rdl_customer.genderstringMandatoryInvestor's gender
Max Length: 5
rdl_customer.home_phone_numberstringOptionalInvestor's home phone number
Max Length: 15
rdl_customer.id_expiry_datedateMandatoryInvestor's ID Expired date
rdl_customer.id_numberstringMandatoryInvestor's ID number
Max Length: 50
rdl_customer.npwp_numberstringMandatoryInvestor's NPWP number
Max Length: 50
rdl_customer.job_codestringMandatoryJob Code, you can refer to List Of Job Code
Max Length: 50
rdl_customer.marital_statusstringMandatoryMarital Status, you can refer to List Of Marital Status
Max Length: 10
rdl_customer.mobile_phone_numberstringMandatoryInvestor's phone number
Max Length: 15
rdl_customer.monthly_incomenumberMandatoryMonthly Income, you can refer to List Of Monthly Income
Max Length: 2
rdl_customer.mother_maiden_namestringMandatoryInvestor's mother maiden name
Max Length: 50
rdl_customer.nationalitystringMandatoryInvestor's nationality in ISO for country code
Max Length: 2
rdl_customer.office_phone_numberstringOptionalInvestor's office phone number
Max Length: 15
rdl_customer.religionstringOptionalReligion, you can refer to List Of Religion
Max Length: 15
rdl_customer.resident_statusstringMandatoryInvestor's resident status
Max Length: 2
rdl_customer.source_of_fundstringMandatorySource of fund
Max Length: 20
rdl_customer.zip_codestringMandatoryInvestor's Zip Code
Max Length: 5
rdl_customer.titlestringMandatoryTitle, you can refer to List Of Title
Max Length: 3
rdl_customer.open_account_reasonstringMandatoryReason, you can refer to List Of Reason
Max Length: 15
rdl_customer.selfie_photovarcharMandatoryInvestor's selfie photo encoded with base64

API Response

After hitting the above API request, DOKU will give the response.

TypeValue
HTTP Status201
ResultCREATED

Here is the sample response header:

Client-Id: MCH-0001-10791114622547
Request-Id: b6a465ea-bb65-48b2-a22b-3e8fb51cf22e
Response-Timestamp: 2020-08-11T08:45:42Z
Signature: HMACSHA256=1jap2tpgvWt83tG4J7IhEwUrwmMt71OaIk0oL0e6sPM=
Response Header Explanation
ParameterDescription
Client-IdSame as the request
Request-IdSame as the request
Response-TimestampTimestamp Response on UTC with format ISO8601 UTC+0 from DOKU
SignatureSignature generated by DOKU based on the response body

Here is the sample of response body:

{
"rdl_customer": {
"customer_id": "INVESTOR-0000100001",
"birth_place": "Jakarta",
"birth_date": "1989-09-01",
"gender": "FEMALE",
"marital_status": "MARRIED",
"nationality": "ID",
"resident_status": "R",
"religion": "ISLAM",
"education": "STRATA_SATU",
"mother_maiden_name": "mymom",
"address_street": "Jl. Jalan",
"address_rt_rw": "10/10",
"address_kelurahan": "Margasari",
"address_kecamatan": "Buah Batu",
"address_city": "Kota Bandung",
"address_province": "Jawa Barat",
"zip_code": "40286",
"mobile_phone_number": "0851231231",
"office_phone_number": "02112311",
"home_phone_number": "0810101011",
"id_number": "1000000000000000",
"id_expiry_date": "2099-10-10",
"job_code": "ENTREPRENEUR",
"monthly_income": 1,
"source_of_fund": "SALARY",
"title": "MS",
"open_account_reason": "INVESTMENT",
"npwp_number": "0111111111111111",
"company_id": "DOKU",
"account_id": 2340220322154948265107180133830000142742,
"customer_name": "SEMAR DUADUA"
},
"rdl_customer_info": {
"account_balance": 0,
"RDL_status": "PENDING"
}
}

Response Body Explanation
ParameterTypeMandatoryDescription
rdl_customer.customer_idstringMandatoryUnique ID of the investor provide by merchant
rdl_customer.customer_namestringMandatoryInvestor's full name
rdl_customer.address_citystringMandatoryCity
rdl_customer.address_kecamatanstringMandatoryDistrict (kecamatan) where Investor lives
rdl_customer.address_kelurahanstringMandatorySub-District (kelurahan) where Investor lives
rdl_customer.address_provincestringMandatoryProvince (provinsi) where Investor lives
rdl_customer.address_rt_rwstringMandatoryRT/RW where Investor lives
rdl_customer.address_streetstringMandatoryStreet address where Investor lives
rdl_customer.birth_datedateMandatoryInvestor's birth date
rdl_customer.birth_placestringMandatoryInvestor's birth place
rdl_customer.educationstringMandatoryEducation
rdl_customer.emailstringMandatoryInvestor's email
rdl_customer.genderstringMandatoryInvestor's gender
rdl_customer.home_phone_numberstringOptionalInvestor's home phone number
rdl_customer.id_expiry_datedateMandatoryInvestor's ID Expired date
rdl_customer.id_numberstringMandatoryInvestor's ID number
rdl_customer.npwp_numberstringMandatoryInvestor's NPWP numberInvestor's NPWP number
rdl_customer.job_codestringMandatoryJob Code
rdl_customer.marital_statusstringMandatoryMarital Status
rdl_customer.mobile_phone_numberstringMandatoryInvestor's phone number
rdl_customer.monthly_incomenumberMandatoryMonthly Income
rdl_customer.mother_maiden_namestringMandatoryInvestor's mother maiden name
rdl_customer.nationalitystringMandatoryInvestor's nationality in ISO for country code
rdl_customer.office_phone_numberstringOptionalInvestor's office phone number
rdl_customer.religionstringOptionalReligion
rdl_customer.resident_statusstringMandatoryInvestor's resident status
rdl_customer.source_of_fundstringMandatorySource of fund
rdl_customer.zip_codestringMandatoryInvestor's Zip Code
rdl_customer.titlestringMandatoryTitle
rdl_customer.open_account_reasonstringMandatoryReason
rdl_customer.company_idstringMandatoryInvestor's company id
rdl_customer.account_idstringMandatoryInvestor's account id provide by DOKU
rdl_customer_info.account_balancenumberMandatoryInvestor's account balance
rdl_customer_info.RDL_statusstringMandatoryInvestor's RDL account status