POST
/
api
/
v1
/
cards
/
recharge
curl 'https://api.sandbox.uqpay.org/api/v1/cards/recharge' \
-H 'content-type: application/json' \
-H 'x-auth-token: Bearer 0e043e2ec6898b3220a0921466d7c203' \
-H 'x-client-id: Up1HIsjiETPXLy7gON9PMG' \
--data-raw '{"card_number":"9333019900054387","card_id":"570f6e4b-8ec6-41ce-9481-915c03cffdc9","balance_id":"deaf719f-fc53-439e-bc39-dcc082c9ac28","recharge_amount":"10","unique_request_id":"QAF1448412asdf4892391"}'
{
    "code": 200,
    "message": "Success"
}
x-client-id
string
required

x-client-id.

x-auth-token
string
required

Bearer YOUR_TOKEN_HERE.

Parameters

card_number
string
required

Card number.

card_id
string
required

Unique Identifier for card.

balance_id
string
required

The ID of the account balance this card is associated with.

recharge_amount
string
required

Recharge amount.

unique_request_id
string
required

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.
Maximum Length 36

Response

code
number

Indicates whether the call was successful. 200 if successful, 400 if not.

message
string

Response Message. “Success” if successful, others not.

curl 'https://api.sandbox.uqpay.org/api/v1/cards/recharge' \
-H 'content-type: application/json' \
-H 'x-auth-token: Bearer 0e043e2ec6898b3220a0921466d7c203' \
-H 'x-client-id: Up1HIsjiETPXLy7gON9PMG' \
--data-raw '{"card_number":"9333019900054387","card_id":"570f6e4b-8ec6-41ce-9481-915c03cffdc9","balance_id":"deaf719f-fc53-439e-bc39-dcc082c9ac28","recharge_amount":"10","unique_request_id":"QAF1448412asdf4892391"}'
{
    "code": 200,
    "message": "Success"
}