Skip to main content

Direct Debit

tip

Please get link_account_id before you request Direct debit payment. You can link an account via LianLian page (Redirect).

Request URL

POST https://sandbox-th.lianlianpay-inc.com/gateway

Request Parameters

ParameterTypeLengthRequiredDescription
serviceString64trueservice code, fixed value:llpth.account.apply
versionString4truefixed value: v1
request_idString32truerequest ID generated by merchant
merchant_idString18trueunique identifier for merchant assigned by LianLian, 18 digits prefix with '14'
store_idString18truestore id. unique identifier of the store, 18 digits prefix with '14'
payment_methodString32falseDIRECT_DEBIT_KTBDIRECT_DEBIT_SCBDIRECT_DEBIT_KBANKDIRECT_DEBIT_BBLDIRECT_DEBIT_KRUNGSRI
customerObject-trueSee Customer
redirect_urlString256falseredirect to the assigned url after account has been linked
notify_urlString256falsepayment result webhook
cancel_urlString256falsecancel url

Response parameters

ParameterTypeLengthRequiredDescription
request_idString32trueRequest ID
merchant_idString18trueunique identifier for merchant assigned by LianLian, 18 digits prefix with '14'
store_idString18truestore id. unique identifier of the store, 18 digits prefix with '14'
payment_methodString32falseDIRECT_DEBIT_KTBDIRECT_DEBIT_SCBDIRECT_DEBIT_KBANKDIRECT_DEBIT_BBLDIRECT_DEBIT_KRUNGSRI
link_urlString18trueaccount link url

Request URL

POST https://sandbox-th.lianlianpay-inc.com/gateway

Request Parameters

ParameterTypeLengthRequiredDescription
serviceString64trueservice code, fixed value:llpth.account.query
versionString4truefixed value: v1
merchant_idString18trueunique identifier for merchant assigned by LianLian, 18 digits prefix with '14'
store_idString18truestore id. unique identifier of the store, 18 digits prefix with '14'
request_idString32truelink account request ID

Response parameters

ParameterTypeLengthRequiredDescription
request_idString32trueRequest ID
link_account_idString18truelianlian account link ID
link_statusString4truelink account status
merchant_idString18trueunique identifier for merchant assigned by LianLian, 18 digits prefix with '14'
store_idString18truestore id. unique identifier of the store, 18 digits prefix with '14'
payment_methodString32falseDIRECT_DEBIT_KTBDIRECT_DEBIT_SCBDIRECT_DEBIT_KBANKDIRECT_DEBIT_BBLDIRECT_DEBIT_KRUNGSRI
account_noString32falsedirect debit account number
failure_codeString64falsefailure code
failure_reasonString256falseFailure reason

Webhook

Request URL

POST https://sandbox-th.lianlianpay-inc.com/gateway

Requested Parameters

ParameterTypeLengthRequiredDescription
request_idString32trueRequest ID
link_account_idString18truelianlian account bind ID
link_statusString4truebind link accout status
merchant_idString18trueunique identifier for merchant assigned by LianLian, 18 digits prefix with '14'
store_idString18truestore id. unique identifier of the store, 18 digits prefix with '14'
payment_methodString32trueDIRECT_DEBIT_KTBDIRECT_DEBIT_SCBDIRECT_DEBIT_KBANKDIRECT_DEBIT_BBLDIRECT_DEBIT_KRUNGSRI
account_noString32trueDirect debit account
failure_codeString64falsefailure code
failure_reasonString256falseFailure reason