Developers
qashio.com

Validate access token

GET/oauth2/validate
Bearer token

Check whether an access token is still valid.

Validates the Bearer token presented in the Authorization header and confirms that the owning company's API access is enabled. Useful as a cheap liveness check before starting a long sync, or to distinguish an expired token from a permissions problem after a 401.

This endpoint does not use the standard response envelope.

Input

Authorization: Bearer <access_token>.

Response

200 with { "active": true }.

Response schema from the OpenAPI document
FieldTypeDescription
activeboolean

Errors

StatusCause
401Token missing, malformed, expired or revoked
403Token is valid but API access is disabled for the company

Suggested integration flow

  1. Authenticate. Complete the Qashio OAuth login, exchange the code at POST /oauth2/token, and store both tokens. Refresh before expiry with Refresh access token.
  2. Load reference data once, then incrementally. Pull suppliers, chart of accounts, tax rates and bank accounts, then re-pull with updated_at_from / updated_at_to on a schedule.
  3. Sync spend. Poll GET /public/v1/erp/transactions with client_sync_status set to not_synced, then outdated, post what comes back, and acknowledge the ids with POST /public/v1/erp/transactions/acknowledge so the next poll skips them.
  4. Match refunds. For any refund or reversal, follow parent_qashio_id back to the original purchase by filtering GET /public/v1/erp/transactions on qashio_id, or list every child of a purchase by filtering on parent_qashio_id.
  5. Reconcile at period close. Compare opening_balance / closing_balance from GET /public/v1/erp/statements against your ledger, and GET /public/v1/erp/company/summary for the headline position.
  6. Manage cards. Invite users, issue cards, set limits, and suspend a card when it is lost or stolen.
  • 401Missing/invalid 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