Webhook
Registration notice
Fintwin calls noticeRegist after the bank has registered the mandate.
The enterprise must build this endpoint. Fintwin is the caller. The portal describes the contract only and has no Try.
When it fires
After a successful registration.
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. |
sourceIdRequired | Mandate token. |
sourceNumberOptional | Account number. |
expiryDateOptional | Expiry date. |
sourceNameOptional | Account name. |
requestTypeOptional | Notice type. |
orderIdOptional | Enterprise order id when present. |
Body the enterprise returns
| Fields | Description |
|---|---|
errorCodeRequired | 0000 when stored. |
errorDescRequired | Description. |
orderIdOptional | Order id in the reply. |
Request example
{
"com_cd": "TEST0001",
"bank_cd": "970422",
"contractId": "HD-TEST-001",
"sourceId": "SRC-TEST-001",
"sourceName": "NGUYEN VAN TEST"
}Response example
{
"errorCode": "0000",
"errorDesc": "Success"
}