Topup
The following is the method for topping up points to the customer.
Request URL
url
POST https://api.zrmz.app/api/v1/point/topupRequest Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | String | ✅ | The access token received from Issue Access Token. |
Request Body Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| customer_id | String | ✅ | The customer ID. |
| point | Point | ✅ | Points to be topped up |
Example
json
{
"customer_id": "0d6ceb53-b9cd-4b19-b4b7-935d1b20367e",
"point": {
"point_type": "Point",
"amount": 100
}
}Request Example
sh
curl -X POST 'https://api.zrmz.app/api/v1/point/topup' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access_token}' \
-d '{
"customer_id": "0d6ceb53-b9cd-4b19-b4b7-935d1b20367e",
"point": {
"point_type": "Point",
"amount": 100
}
}'Response
| Name | Type | Description |
|---|---|---|
| transaction_id | String | Point top-up transaction ID |
Example
json
{
"transaction_id": "da6da4ad5f4f4c14975419a5bd533ac5"
}