Account linking

Start account link

POST/api/v1/end_user_topup/link-topup
Authorization + signatureFirm banking

Starts a payment-account link by SMS OTP or app-to-app.

This API needs a Signature header. The portal signs when that company code has a signing key configured. Without it, the sandbox receives the request unsigned.

Headers

FieldsDescription
Content-TypeRequiredapplication/json
AuthorizationRequiredAuthorization key Fintwin issues for the company code.
SignatureRequiredBody integrity signature. The signing key is issued with the API key.
TimestampRequiredRequest time.

Body

FieldsDescription
clientMessageIdRequiredUnique message id.
companyRefRequiredEnterprise reference.
comCodeRequiredEnterprise code.
bankCodeRequiredBank code.
linkTypeRequiredLink method.
sourceNumberRequiredFunding account.
customerCodeRequiredCustomer code.
customerInfoRequiredname, personalId, phoneNumber, releaseDate.

Samples

curl -X POST 'https://sandbox.example.invalid/api/v1/end_user_topup/link-topup' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: <authorization-key>' \
  -d '{"clientMessageId":"MSG-TEST-001","companyRef":"REF-TEST-001","comCode":"TEST0001","bankCode":"970422","linkType":"SMS_OTP","sourceNumber":"000000000000TEST","customerCode":"CUS-TEST-001","customerInfo":{"name":"NGUYEN VAN TEST","personalId":"000000000000","phoneNumber":"0900000000","releaseDate":"20200101","email":"test.user@example.invalid"}}'