POST
Get card balance
Use this endpoint to query the current balance of a card.
Request
ApiKeyIssuing API key request header assigned by Onerway.
Example:
replace_with_issuing_api_keycardIdCard ID.
Example:
100001curl -X POST 'https://sandbox-api.onerway.com/api/v1/merchant/card/getBalanceInfo' \
-H 'ApiKey: replace_with_issuing_api_key' \
-H 'Content-Type: application/json' \
--data-raw '{
"cardId": 100001
}'Response
respCodeBusiness response code.
20000 means success.respMsgResponse message.
data{ cardId, amount, ... }Card balance information.
{
"respCode": "20000",
"respMsg": "success",
"data": {
"cardId": 100001,
"amount": 980,
"currency": "USD"
}
}No error responses are documented for this endpoint.