Onerway
POST

Get card balance

Use this endpoint to query the current balance of a card.

Request

ApiKey
Issuing API key request header assigned by Onerway.
Example:
cardId
Card ID.
Example:

Request example

curl -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

respCode
Business response code. 20000 means success.
respMsg
Response message.
Card balance information.

Response example

{
  "respCode": "20000",
  "respMsg": "success",
  "data": {
    "cardId": 100001,
    "amount": 980,
    "currency": "USD"
  }
}
No error responses are documented for this endpoint.