Direct Debit
tip
Please get link_account_id before you request Direct debit payment. You can link an account via LianLian page (Redirect).
Link account (Redirect)
Request URL
- Sandbox
- Production
POST https://sandbox-th.lianlianpay-inc.com/gateway
POST https://api.lianlianpay.co.th/gateway
Request Parameters
| Parameter | Type | Length | Required | Description |
|---|---|---|---|---|
| service | String | 64 | true | service code, fixed value:llpth.account.apply |
| version | String | 4 | true | fixed value: v1 |
| request_id | String | 32 | true | request ID generated by merchant |
| merchant_id | String | 18 | true | unique identifier for merchant assigned by LianLian, 18 digits prefix with '14' |
| store_id | String | 18 | true | store id. unique identifier of the store, 18 digits prefix with '14' |
| payment_method | String | 32 | false | DIRECT_DEBIT_KTB,DIRECT_DEBIT_SCB,DIRECT_DEBIT_KBANK,DIRECT_DEBIT_BBL,DIRECT_DEBIT_KRUNGSRI |
| customer | Object | - | true | See Customer |
| redirect_url | String | 256 | false | redirect to the assigned url after account has been linked |
| notify_url | String | 256 | false | payment result webhook |
| cancel_url | String | 256 | false | cancel url |
Response parameters
| Parameter | Type | Length | Required | Description |
|---|---|---|---|---|
| request_id | String | 32 | true | Request ID |
| merchant_id | String | 18 | true | unique identifier for merchant assigned by LianLian, 18 digits prefix with '14' |
| store_id | String | 18 | true | store id. unique identifier of the store, 18 digits prefix with '14' |
| payment_method | String | 32 | false | DIRECT_DEBIT_KTB,DIRECT_DEBIT_SCB,DIRECT_DEBIT_KBANK,DIRECT_DEBIT_BBL,DIRECT_DEBIT_KRUNGSRI |
| link_url | String | 18 | true | account link url |
Link account query
Request URL
- Sandbox
- Production
POST https://sandbox-th.lianlianpay-inc.com/gateway
POST https://api.lianlianpay.co.th/gateway
Request Parameters
| Parameter | Type | Length | Required | Description |
|---|---|---|---|---|
| service | String | 64 | true | service code, fixed value:llpth.account.query |
| version | String | 4 | true | fixed value: v1 |
| merchant_id | String | 18 | true | unique identifier for merchant assigned by LianLian, 18 digits prefix with '14' |
| store_id | String | 18 | true | store id. unique identifier of the store, 18 digits prefix with '14' |
| request_id | String | 32 | true | link account request ID |
Response parameters
| Parameter | Type | Length | Required | Description |
|---|---|---|---|---|
| request_id | String | 32 | true | Request ID |
| link_account_id | String | 18 | true | lianlian account link ID |
| link_status | String | 4 | true | link account status |
| merchant_id | String | 18 | true | unique identifier for merchant assigned by LianLian, 18 digits prefix with '14' |
| store_id | String | 18 | true | store id. unique identifier of the store, 18 digits prefix with '14' |
| payment_method | String | 32 | false | DIRECT_DEBIT_KTB,DIRECT_DEBIT_SCB,DIRECT_DEBIT_KBANK,DIRECT_DEBIT_BBL,DIRECT_DEBIT_KRUNGSRI |
| account_no | String | 32 | false | direct debit account number |
| failure_code | String | 64 | false | failure code |
| failure_reason | String | 256 | false | Failure reason |
Webhook
Request URL
- Sandbox
- Production
POST https://sandbox-th.lianlianpay-inc.com/gateway
POST https://api.lianlianpay.co.th/gateway
Requested Parameters
| Parameter | Type | Length | Required | Description |
|---|---|---|---|---|
| request_id | String | 32 | true | Request ID |
| link_account_id | String | 18 | true | lianlian account bind ID |
| link_status | String | 4 | true | bind link accout status |
| merchant_id | String | 18 | true | unique identifier for merchant assigned by LianLian, 18 digits prefix with '14' |
| store_id | String | 18 | true | store id. unique identifier of the store, 18 digits prefix with '14' |
| payment_method | String | 32 | true | DIRECT_DEBIT_KTB,DIRECT_DEBIT_SCB,DIRECT_DEBIT_KBANK,DIRECT_DEBIT_BBL,DIRECT_DEBIT_KRUNGSRI |
| account_no | String | 32 | true | Direct debit account |
| failure_code | String | 64 | false | failure code |
| failure_reason | String | 256 | false | Failure reason |