Developers
qashio.com

Retrieve company and card balance

GET/public/v1/core/cards/balance
Bearer token

Check how much is available on a specific card, and how much the company holds, in one call.

Returns the company's available balance together with the remaining balance of the cards you identify. Card balances account for pending authorisations, so this is the figure to check before triggering a top-up or approving a purchase: not the last statement closing balance.

You must identify the cards. Send nickname or last_four; this endpoint does not list every card in the company. status alone is not sufficient and returns 400.

Query parameters

nicknamestring

Exact card name. Required unless last_four is sent

Example testing

last_fourstring

Last four digits of the card. Required unless nickname is sent

statusstring

Optional. Narrow to one card status

Example active

balanceinteger

Example 3

Response

One object.

FieldTypeDescription
company_balanceobject{ amount, currency } for the company funding account
cards[]array{ card_id, nickname, last_four, status, balance, currency } per matched card
Response schema from the OpenAPI document
FieldTypeDescription
status_codeinteger
successboolean
dataobject
company_balanceobject
amountnumber
currencystring
cardsobject[]
card_idstring
nicknamestring
last_fourstring
statusstring
balanceinteger
currencystring
metaobject
request_idstring
timestampstring

Errors

400 (neither nickname nor last_four supplied, or an invalid status), 401.


Cards (write)

  • 401Unauthorized - missing or invalid Bearer token

Every error carries an errors[] array and a meta.request_id. See Errors for the full envelope.

This request takes no parameters.

Response

Send the request to see the response.

Esc

Start here

IntroductionIntegration walkthroughAuthenticationConventions

Popular endpoints

POSTExchange code for tokens/oauth2/tokenGETGet company summary/public/v1/erp/company/summaryGETList bank accounts/public/v1/erp/bank_accountsGETList cards/public/v1/erp/cardsGETList chart of accounts/public/v1/erp/chart_of_accounts