Debit mandate
Register mandate
POST
/api/v1/end-user/autodebit-registerStarts debit registration. On the wire the body is AES-encrypted { data }. This page documents the business payload before encryption.
The sandbox receives { data } encrypted with AES-256-CBC (PKCS7, base64). The key is 32 bytes and the vector is 16 bytes, both UTF-8. Try encrypts the form payload in the browser, then sends it. The key never leaves your machine.
Headers
| Fields | Description |
|---|---|
Content-TypeRequired | application/json |
AuthorizationRequired | Authorization key Fintwin issues for the company code. |
Body
| Fields | Description |
|---|---|
com_cdRequired | Enterprise code. |
bank_cdRequired | NAPAS code of the funding bank. |
contract_idRequired | Enterprise contract id. |
cusTypeRequired | CA_NHAN or DOANH_NGHIEP. |
nationalIdRequired | Test national id. |
registrationNumberRequired | Enterprise registration number when cusType is a business. |
sourceNumberRequired | Funding account number. |
sourceNameRequired | Account holder name. |
phoneNumberRequired | Phone number that receives the OTP. |
emailOptional | Email that receives notices. |
Samples
curl -X POST 'https://sandbox.example.invalid/api/v1/end-user/autodebit-register' \
-H 'Content-Type: application/json' \
-H 'Authorization: <authorization-key>' \
-d '{"data":"<base64 AES-256-CBC of the business JSON>"}'