Get Binding Status
Check whether a customer is bound to LINE. Recommended before sending.
GET /api/v1/merchant/customer/{customerExternalId}/line-binding
Path params
| Param | Description |
|---|---|
customerExternalId | Customer ID in your system |
Success 200
{
"code": "OK",
"message": "Success",
"requestId": "req_...",
"data": {
"customerExternalId": "C10086",
"bound": true,
"status": "ACTIVE",
"lineUserIdMasked": "U1a2****cd"
}
}
| Field | Description |
|---|---|
bound | Whether bound |
status | ACTIVE (bound) / UNBOUND |
lineUserIdMasked | Masked LINE userId (plaintext is never returned) |
When not bound: bound=false, status="UNBOUND", lineUserIdMasked=null. This is a query endpoint and does not error.
Example
curl https://loma-dev.acorners.com/api/v1/merchant/customer/C10086/line-binding \
-H "X-Api-Key: lk_xxxx" -H "X-Api-Secret: xxxx"