QM Developer Docs
Customer Reference

Register Customer

Register a new customer if the customer has not been registered yet on the platform.

Register a customer.

POST /v1/customer/register HTTP/1.1
Content-Type: application/json
Key: {API Key}
Sign: {Signature}

{
    "customer": {
        "legalFullName": "string",
        "identityNumber": "string",
        "email": "string",
        "phoneNumber": "string",
        "primaryLoginMethod": "string"
    }
}

Request

Body

application/json
PropertyTypeDescription
customerobjectThe customer's object to be registered.
customer.legalFullNamestringThe customer's legal full name.
customer.identityNumberstringThe customer's national identity number, i.e. NRIC.
customer.emailstringThe customer's email address. This is optional if customer.phoneNumber is provided.
customer.phoneNumberstringThe customer's phone number with full prefix, format example +60123456789. This is optional if customer.email is provided.
customer.primaryLoginMethodenum(string)The customer's primary login method. Valid options are email or phoneNumber. The customer will receive a one-time verification code to the specified primary login method to complete the initial registration process. Refer to Verify Registration.

Note: The allowed primary login method you can send may be limited. Please refer to your Account Manager for more information.

Response

Upon successful response, a one-time verification code will be sent to the specified customer.primaryLoginMethod. Refer to Verify Registration to complete the initial customer registration process.

Body

application/json
{
    "code": 0,
    "message": "string",
    "data": {
        "sessionId": "string",
        "expiredOn": 1706600000000
    }
}
PropertyTypeDescription
codenumberThe response code. Refer to ENUM Definition.
messagestringThe response message.
dataobjectThe response data.
data.sessionIdstringThe unique session identifier to the customer's registration. This sessionId is required for Verify Registration.
data.expiredOnnumberThe expiry date and time in unix millisecond time of the one-time verification code sent to the specified customer.primaryLoginMethod.

© 2023-2024 Quantum Metal Sdn Bhd