Skip to content

Unfreeze Card ​

Restores a frozen virtual card to active, making it usable again.

  • Only cards frozen as a user-initiated freeze (i.e. via Freeze Card) can be unfrozen through this endpoint.
  • Cards frozen by risk control, admin, or the system cannot be unfrozen here and return 403 (or recharge_unfreeze_disabled, see below) — contact your account manager.
  • No money moves — unfreezing has no fee.
  • A successful unfreeze also emits a card.status_changed webhook (frozen → active).

Endpoint ​

ItemValue
MethodPOST
Path/api/v1/openapi/card/unfreeze
AuthHMAC
IdempotencyNot required

No Idempotency-Key needed

Retrying on a card that is not frozen returns 40000 card_not_frozen rather than double-applying. No monetary effect, so no Idempotency-Key header is required.

Request Fields ​

FieldTypeRequiredDescription
card_idstring✅card_<id> — must belong to your account and be a virtual card

Example Request ​

json
{ "card_id": "card_12345" }

Response Fields ​

FieldTypeDescription
card_idstringEcho of the card ID
statusintCard status after the operation — always 2 (active) on success
status_descstringEnglish status description — active
successbooltrue on success

Example Response ​

json
{
  "code": 0,
  "message": "Success",
  "data": {
    "card_id": "card_12345",
    "status": 2,
    "status_desc": "active",
    "success": true
  }
}

Preconditions & Rules ​

  1. Ownership — card_id must belong to the authenticated account, else 404 card_not_found.
  2. Card type — virtual cards only.
  3. State — only status=6 (frozen) cards may be unfrozen; any other status returns card_not_frozen.
  4. Freeze origin — only user-initiated freezes are reversible here. If the card was frozen by risk control / admin / the system, the request is rejected with the corresponding 403 key. A risk-control freeze on a card type that does not allow unfreezing by recharge returns recharge_unfreeze_disabled instead.

Common Errors ​

Business errors come back with HTTP 200 and a non-zero code — always check code (0 = success) and branch on error_key, never on the localized message.

HTTPcodeerror_keyDescription
20040001validation_failedRequest body cannot be parsed
20040000openapi_invalid_card_idcard_id missing or malformed (expected card_<number>)
20040000openapi_card_type_not_supportedCard is not a virtual card type
20040000card_not_frozenCard is not currently frozen — treat as "already in the desired state" when the card is active
20040000recharge_unfreeze_disabledFrozen by risk control, and this card type does not allow lifting that freeze by recharging — contact support
20040000operation_not_supportedThis provider / card type does not support unfreeze
20040000card_type_mismatchCard-type data inconsistency (platform side)
40140100openapi_invalid_credentialsAuth failure
40340300unauthorized_unfreeze_adminFrozen by an administrator — cannot self-unfreeze
40340300unauthorized_unfreeze_riskFrozen by risk control — cannot self-unfreeze
40340300unauthorized_unfreeze_systemFrozen by the system — cannot self-unfreeze
40440400card_not_foundCard not found / not owned
42942900too_many_requestsRate limited — honor Retry-After
20050000openapi_unfreeze_card_failedServer error or provider call failed — check /card/info before retrying

Notes ​

  • After a successful unfreeze, /card/info reports status=2, and a card.status_changed webhook (from_status: "frozen", to_status: "active") is delivered.
  • A 403 here means the freeze was applied by a party other than you; the card stays frozen and you must contact support to lift it. When that party lifts it, you receive card.status_changed (frozen → active).

Integration pitfalls & best practices ​

  1. Synchronous, provider-bound call — allow up to ~60 s. Unfreeze calls the upstream provider inline (same latency profile as freeze — commonly a few seconds, up to ~60 s server-side). Set your HTTP client timeout to ≥ 60 s for this endpoint.
  2. A client-side timeout does NOT mean the unfreeze failed. On any timeout / network error, reconcile via /card/info (or wait for card.status_changed): status=2 → unfreeze succeeded (proceed); status=6 → not applied (safe to retry).
  3. The response is the primary signal; card.status_changed confirms it. Since v1.5 every successful unfreeze also emits a card.status_changed webhook after the change is committed (before v1.5 freeze/unfreeze produced no webhook). Use the response for the immediate result and the webhook for reconciliation.
  4. No Idempotency-Key, but safe to retry. Retries are not deduplicated, but the state machine protects you: re-unfreezing an already-active card returns 40000 card_not_frozen. Treat card_not_frozen as "already in the desired state", not a hard error (check /card/info if the card might be in another state).
  5. 403 is terminal — do not retry-loop. Only user-initiated freezes (freezes made via Freeze Card) are reversible here. If risk control / admin / the system froze — or later re-froze — the card, unfreeze returns 403 unauthorized_unfreeze_* and retrying will keep returning 403. The card can only be lifted by that party / support. Surface it to the user instead of looping.

Released under MIT-equivalent terms.