Developers
qashio.com

Suspend a card

PUT/public/v1/core/cards/{cardId}/change_status
Bearer token

Suspend a card.

Suspends an active card so it stops authorising transactions. This endpoint is suspend-only. status must be suspended; any other value: including active or terminated: is rejected with 403. Reactivating or terminating a card is done in the Qashio dashboard.

The suspension is processed asynchronously. A success response means the request was accepted and sent to the card issuer, not that the card is already suspended. Poll GET /public/v1/erp/cards/{cardId} to confirm the committed state.

Path parameters

cardIdstringrequired

Card identifier (CA…)

Request body

application/jsonrequired

FieldInTypeDescription
cardIdpathstringCard identifier (CA…)
statusbodystringMust be suspended
reasonbodystringOptional free text, e.g. Card is stolen. Accepted but not retained
JSON
{ "status": "suspended", "reason": "Card is stolen" }

Response

200 with message: "Resource updated successfully." and data.message confirming the change is being processed.

Response schema from the OpenAPI document
FieldTypeDescription
status_codeinteger
successboolean
messagestring
dataobject
messagestring
metaobject
request_idstring
timestampstring

Errors

403 (any status other than suspended), 400 (the card cannot be suspended in its current state), 401.


Users

  • 401Unauthorized - missing or invalid Bearer token
  • 403Forbidden

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