Environment Variables
- SANDBOX `base_url`: https://www.iyap360.com/m/point/sandbox
- Production `base_url`: https://www.iyap360.com/m/point/production
API Keys
Register
curl -X POST -d '{
"firstname": "John",
"lastname": "Doe",
"username": "johndoe",
"email": "[email protected]",
"phone": "+15123456789",
"password": "",
"repeatPassword": ""
}' "{{base_url}}/register"
POST {{base_url}}/register HTTP/1.1
Host:
{
"firstname": "John",
"lastname": "Doe",
"username": "johndoe",
"email": "[email protected]",
"phone": "+15123456789",
"password": "",
"repeatPassword": ""
}
| Status | 200 OK |
|---|---|
| Content-Type | application/json |
|
|
| Status | 200 OK |
|---|---|
| Content-Type | application/json |
|
|
Create
curl -X POST "{{base_url}}/key/create"
POST {{base_url}}/key/create HTTP/1.1
Host:
| Status | 200 OK |
|---|---|
| Content-Type | application/json |
|
|
List
curl -X POST "{{base_url}}/key/list"
POST {{base_url}}/key/list HTTP/1.1
Host:
| Status | 200 OK |
|---|---|
| Content-Type | application/json |
|
|
Account
Balance
curl -X POST -d '{
"api_key": "api-key-from-create-api"
}' "{{base_url}}/balance"
POST {{base_url}}/balance HTTP/1.1
Host:
{
"api_key": "api-key-from-create-api"
}
| Status | 200 OK |
|---|---|
| Content-Type | application/json |
|
|
Trans List
curl -X POST -d '{
"api_key": "api-key-from-create-api"
}' "{{base_url}}/transaction/list?page=2&limit=20"
POST {{base_url}}/transaction/list?page=2&limit=20 HTTP/1.1
Host:
{
"api_key": "api-key-from-create-api"
}
| Status | 200 OK |
|---|---|
| Content-Type | application/json |
|
|
Payments
Pay
curl -X POST -d '{
"receiver_email": "[email protected]",
"receiver_phone": "+15123456789",
"amount": 1,
"item_description": "Payment of Bike Ride",
"notes": "Payment notes",
"api_key": "api-key-from-create-api"
}' "{{base_url}}/pay"
POST {{base_url}}/pay HTTP/1.1
Host:
{
"receiver_email": "[email protected]",
"receiver_phone": "+15123456789",
"amount": 1,
"item_description": "Payment of Bike Ride",
"notes": "Payment notes",
"api_key": "api-key-from-create-api"
}
| Status | 200 OK |
|---|---|
| Content-Type | application/json |
|
|
Public
Payees(Drivers)
curl -X GET "{{base_url}}/payee/list?page=1&limit=20"
GET {{base_url}}/payee/list?page=1&limit=20 HTTP/1.1
Host:
| Status | 200 OK |
|---|---|
| Content-Type | application/json |
|
|
Card
Reward card request
Resource Information
| Response formats | JSON |
| Requires authentication? | Yes (user context only) |
Post Parameters
| Name | Required | Description |
|---|---|---|
| reward_card_type | required | Two types of reward_card_type . “Reward”,“Black” |
| first_name | required | First name of user |
| last_name | required | Last name of user |
| birth_date | required | yyyy-mm-dd |
| gender | required | |
| residence_country | required | |
| residence_state_province | required | |
| city | required | |
| address | required | |
| place_id | required | |
| post_code | required | |
| required | ||
| mobile_phone | required | |
| api_key | required |
curl -X POST -d '{
"reward_card_type":"Reward",
"first_name":"John",
"last_name":"Doe",
"birth_date":"1986-01-20",
"gender":"Male",
"residence_country":"US",
"residence_state_province":"state-us",
"city":"lorem-city",
"address":"lorem-address",
"post_code":"11231",
"email":"[email protected]",
"mobile_phone":"+15123456789",
"api_key": "api-key-from-create-api"
}' "{{base_url}}/reward-card-add"
POST {{base_url}}/reward-card-add HTTP/1.1
Host:
{
"reward_card_type":"Reward",
"first_name":"John",
"last_name":"Doe",
"birth_date":"1986-01-20",
"gender":"Male",
"residence_country":"US",
"residence_state_province":"state-us",
"city":"lorem-city",
"address":"lorem-address",
"post_code":"11231",
"email":"[email protected]",
"mobile_phone":"+15123456789",
"api_key": "api-key-from-create-api"
}
| Status | 200 OK |
|---|---|
| Content-Type | application/json |
|
|