Top-up

Endpoint:

Method: POST
Type: RAW
URL: {{API_BASE_URL}}/cards/top-up

Request Parameter

Parameter Required Type Description
total_amount Y number total amount
records_count Y number records count
request_id N string Optional, A unique request ID specified by the client. Requests with the same request_id will be ignored. This allows requests to be replayed if client is unsure of the outcome, e.g. due to network issues, system failures, etc. Note: Can be non-UUID as long as it is unique between requests.
items Y array items array
items[].card_number Y string card number
items[].amount Y number amount
{
    "total_amount": 30,
    "records_count": 2,
    "request_id": "unique_request_123",
    "items": [
        {
            "card_number": "5329000000000000",
            "amount": 10
        },
        {
            "card_number": "5329000000000001",
            "amount": 20
        }
    ]
}

Response

201 http code