Debit mandate

Register mandate

POST/api/v1/end-user/autodebit-register
Authorization + AESFirm banking

Starts 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

FieldsDescription
Content-TypeRequiredapplication/json
AuthorizationRequiredAuthorization key Fintwin issues for the company code.

Body

FieldsDescription
com_cdRequiredEnterprise code.
bank_cdRequiredNAPAS code of the funding bank.
contract_idRequiredEnterprise contract id.
cusTypeRequiredCA_NHAN or DOANH_NGHIEP.
nationalIdRequiredTest national id.
registrationNumberRequiredEnterprise registration number when cusType is a business.
sourceNumberRequiredFunding account number.
sourceNameRequiredAccount holder name.
phoneNumberRequiredPhone number that receives the OTP.
emailOptionalEmail 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>"}'