Customer Reference
Bind Customer
Before you can proceed to perform operations with a registered customer in the platform, you need to bind the customer first. This is a one-time process where you will need to provide the customer's information to obtain an unique identifier for the customer.
Bind a customer.
POST /v1/customer/bind HTTP/1.1
Content-Type: application/json
Key: {API Key}
Sign: {Signature}
{
"customer": {
"identityNumber": "string"
}
}
Request
Body
application/json
Property | Type | Description |
---|---|---|
customer | object | The customer's object to be binded. |
customer.identityNumber | string | The customer's Identity Number, i.e. NRIC. |
Response
Body
application/json{
"code": 0,
"message": "string",
"data": {
"id": "string"
}
}
Property | Type | Description |
---|---|---|
code | number | The response code. 0 - it means the customer is successfully binded.801 - it means that the customer of this customer.identityNumber does not exist.Proceed to Register Customer. 802 - it means that the customer has yet to complete the final registration process.Proceed to Request One-Time Link. 803 - it means this customer cannot be binded.For other generic code , refer to ENUM Definition. |
message | string | The response message. |
data | object | The response data. |
data.id | string | The unique identifier to the binded customer will be returned if response's code is 0 . This id is required for further operation. |