Register
Request
Request header:
POST https://api.ipaymy.com/v2/register HTTP/1.1
Host: api.ipaymy.com
Accept: application/json
Request body:
{
"first_name": "Alice",
"last_name": "Joe",
"account_type": "business",
"country_code": "SG",
"email": "example@ipaymy.com",
"mobile": "1234567",
"mobile_country_code": "65",
"password": "ipaymy@123",
"password_confirm": "ipaymy@123"
}
account_type:
- Type: string
- Validate: required
- Value: personal | business
country_code:
- Type: string
- Validate: required
- Value: SG | MY | HK | AU
email:
- Type: string
- Validate: required
mobile:
- Type: string
- Validate: required
mobile_country_code:
- Type: string
- Validate: required
- Value: SG | MY | HK | AU
password:
- Type: string
- Validate: required
confirm_password:
- Type: string
- Validate: required
Response
Response body:
{
"access_token": "eyJhbGciOiJIbKnDp2ELInR5cCI6IkpXVCJ9.eyJpZCI6OTAzMywidWlkIjo0MDl9.BeWM2a4SI6OTAzMywidWSBFBbKnDp2ELMsrIMYd9FXnqI"
}
access_token:
- Description: Attach this bearer token to every request header
- Type: string
Response codes:
- 200: Good stuff, and the response body should be easy to parse.
- 422: Typically malformed JSON, such as an integer in place of the required alphanumeric string, or a missing key. Check the response body for further details.
There you go. Now you can access any of our APIs with this access token.
IMPORTANT NOTE: Client ID and client secret will identify you at ipaymy, so it's best to store these data items in an .env file on your server. DO NOT STORE THESE DATA ITEMS IN YOUR CLIENT APP.