Onerway
POST

Operate card

Use this endpoint to perform status operations on a card, such as freeze, unfreeze, or termination. The operation status is notified asynchronously.

Request

ApiKey
Issuing API key request header assigned by Onerway.
Example:
clientRequestId
Idempotent request ID for this card operation.
Example:
Constraints
Range
64characters
cardId
Card ID returned by the Create card API.
Example:
type
Card operation type.
Allowed values
CREATE_RETRY
Retry card creation. If card creation reports insufficient cardholder information, update and complete the cardholder information first, then retry this operation.
FREEZE
Freeze the card.
UNFREEZE
Unfreeze the card.
Constraints
Range
20characters

Request example

curl -X POST 'https://sandbox-issuer.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.