Webhook
Check contract
Fintwin calls the enterprise checkCust endpoint when registration needs the contract confirmed.
The enterprise must build this endpoint. Fintwin is the caller. The portal describes the contract only and has no Try.
When it fires
Before the debit mandate is completed at the bank.
Endpoint requirements
Accept HTTPS POST with Authorization and a signature. Verify the signature and return JSON. A repeated event must not create a duplicate record.
Body Fintwin sends
| Fields | Description |
|---|---|
com_cdRequired | Enterprise code. |
bank_cdRequired | Bank code. |
contractIdRequired | Contract id. |
cusTypeOptional | CA_NHAN or DOANH_NGHIEP. |
nationalIdOptional | National id. |
phoneNumberOptional | Phone number. |
registrationNumberOptional | Enterprise registration number. |
Body the enterprise returns
| Fields | Description |
|---|---|
errorCodeRequired | 0000 when the contract is valid. |
errorDescRequired | Short description. |
contractNmOptional | Contract name. |
contractValidOptional | Validity date. |
nationalIdOptional | National id to match. |
Request example
{
"com_cd": "TEST0001",
"bank_cd": "970422",
"contractId": "HD-TEST-001",
"cusType": "CA_NHAN",
"nationalId": "000000000000",
"phoneNumber": "0900000000"
}Response example
{
"errorCode": "0000",
"errorDesc": "Success",
"contractNm": "HOP DONG TEST",
"contractValid": "20271231"
}