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

FieldsDescription
com_cdRequiredEnterprise code.
bank_cdRequiredBank code.
contractIdRequiredContract id.
sourceIdRequiredMandate token.
sourceNumberOptionalAccount number.
expiryDateOptionalExpiry date.
sourceNameOptionalAccount name.
requestTypeOptionalNotice type.
orderIdOptionalEnterprise order id when present.

Body the enterprise returns

FieldsDescription
errorCodeRequired0000 when stored.
errorDescRequiredDescription.
orderIdOptionalOrder 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"
}