Skip to content

Topup

The following is the method for topping up points to the customer.

Request URL

url
POST https://api.zrmz.app/api/v1/point/topup

Request Headers

NameTypeRequiredDescription
AuthorizationStringThe access token received from Issue Access Token.

Request Body Parameters

NameTypeRequiredDescription
customer_idStringThe customer ID.
pointPointPoints 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

NameTypeDescription
transaction_idStringPoint top-up transaction ID

Example

json
{
    "transaction_id": "da6da4ad5f4f4c14975419a5bd533ac5"
}