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(orrecharge_unfreeze_disabled, see below) — contact your account manager. - No money moves — unfreezing has no fee.
- A successful unfreeze also emits a
card.status_changedwebhook (frozen → active).
Endpoint
| Item | Value |
|---|---|
| Method | POST |
| Path | /api/v1/openapi/card/unfreeze |
| Auth | HMAC |
| Idempotency | Not 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
| Field | Type | Required | Description |
|---|---|---|---|
card_id | string | ✅ | card_<id> — must belong to your account and be a virtual card |
Example Request
json
{ "card_id": "card_12345" }Response Fields
| Field | Type | Description |
|---|---|---|
card_id | string | Echo of the card ID |
status | int | Card status after the operation — always 2 (active) on success |
status_desc | string | English status description — active |
success | bool | true on success |
Example Response
json
{
"code": 0,
"message": "Success",
"data": {
"card_id": "card_12345",
"status": 2,
"status_desc": "active",
"success": true
}
}Preconditions & Rules
- Ownership —
card_idmust belong to the authenticated account, else404 card_not_found. - Card type — virtual cards only.
- State — only
status=6 (frozen)cards may be unfrozen; any other status returnscard_not_frozen. - 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
403key. A risk-control freeze on a card type that does not allow unfreezing by recharge returnsrecharge_unfreeze_disabledinstead.
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.
| HTTP | code | error_key | Description |
|---|---|---|---|
| 200 | 40001 | validation_failed | Request body cannot be parsed |
| 200 | 40000 | openapi_invalid_card_id | card_id missing or malformed (expected card_<number>) |
| 200 | 40000 | openapi_card_type_not_supported | Card is not a virtual card type |
| 200 | 40000 | card_not_frozen | Card is not currently frozen — treat as "already in the desired state" when the card is active |
| 200 | 40000 | recharge_unfreeze_disabled | Frozen by risk control, and this card type does not allow lifting that freeze by recharging — contact support |
| 200 | 40000 | operation_not_supported | This provider / card type does not support unfreeze |
| 200 | 40000 | card_type_mismatch | Card-type data inconsistency (platform side) |
| 401 | 40100 | openapi_invalid_credentials | Auth failure |
| 403 | 40300 | unauthorized_unfreeze_admin | Frozen by an administrator — cannot self-unfreeze |
| 403 | 40300 | unauthorized_unfreeze_risk | Frozen by risk control — cannot self-unfreeze |
| 403 | 40300 | unauthorized_unfreeze_system | Frozen by the system — cannot self-unfreeze |
| 404 | 40400 | card_not_found | Card not found / not owned |
| 429 | 42900 | too_many_requests | Rate limited — honor Retry-After |
| 200 | 50000 | openapi_unfreeze_card_failed | Server error or provider call failed — check /card/info before retrying |
Notes
- After a successful unfreeze,
/card/inforeportsstatus=2, and acard.status_changedwebhook (from_status: "frozen",to_status: "active") is delivered. - A
403here 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 receivecard.status_changed(frozen → active).
Integration pitfalls & best practices
- 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.
- A client-side timeout does NOT mean the unfreeze failed. On any timeout / network error, reconcile via
/card/info(or wait forcard.status_changed):status=2→ unfreeze succeeded (proceed);status=6→ not applied (safe to retry). - The response is the primary signal;
card.status_changedconfirms it. Since v1.5 every successful unfreeze also emits acard.status_changedwebhook 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. - No
Idempotency-Key, but safe to retry. Retries are not deduplicated, but the state machine protects you: re-unfreezing an already-active card returns40000 card_not_frozen. Treatcard_not_frozenas "already in the desired state", not a hard error (check/card/infoif the card might be in another state). 403is 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 returns403 unauthorized_unfreeze_*and retrying will keep returning403. The card can only be lifted by that party / support. Surface it to the user instead of looping.