Onerway
POST

Operate card

Use this endpoint to perform status operations on a card, such as freeze, unfreeze, or termination.

Request

ApiKey
Issuing API key request header assigned by Onerway.
Example:
clientRequestId
Idempotent request ID for this card operation.
Example:
cardId
Card ID to operate on.
Example:
type
Card operation type.
Allowed values
FREEZE
Freeze the card.
UNFREEZE
Unfreeze the card.
TERMINATE
Terminate the card.

Request example

curl -X POST 'https://sandbox-api.onerway.com/api/v1/merchant/card/operate' \
  -H 'ApiKey: replace_with_issuing_api_key' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "cardId": 100001,
  "clientRequestId": "REQ_20260101_002",
  "type": "FREEZE"
}'

Response

respCode
Business response code. 20000 means success.
respMsg
Response message.
Card operation result.

Response example

{
  "respCode": "20000",
  "respMsg": "success",
  "data": {
    "operateRecordId": 200001
  }
}
No error responses are documented for this endpoint.