Freeze a card
curl --request PUT \
--url https://api.cartevo.co/api/v1/cards/{id}/freeze \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cartevo.co/api/v1/cards/{id}/freeze"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cartevo.co/api/v1/cards/{id}/freeze', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cartevo.co/api/v1/cards/{id}/freeze",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cartevo.co/api/v1/cards/{id}/freeze"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.cartevo.co/api/v1/cards/{id}/freeze")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cartevo.co/api/v1/cards/{id}/freeze")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyCards
Freeze Card
Temporarily disable a card. The card balance is preserved and the card can be unfrozen later.
PUT
/
cards
/
{id}
/
freeze
Freeze a card
curl --request PUT \
--url https://api.cartevo.co/api/v1/cards/{id}/freeze \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cartevo.co/api/v1/cards/{id}/freeze"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cartevo.co/api/v1/cards/{id}/freeze', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cartevo.co/api/v1/cards/{id}/freeze",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cartevo.co/api/v1/cards/{id}/freeze"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.cartevo.co/api/v1/cards/{id}/freeze")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cartevo.co/api/v1/cards/{id}/freeze")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyOverview
PUT /cards/{id}/freeze temporarily disables a card. While frozen, the card cannot authorize new transactions, but the balance is preserved and pending settlements continue to clear. Use PUT /cards/{id}/unfreeze to reactivate.
For permanent disable with automatic balance refund, use POST /cards/{id}/terminate instead.
When to use it
- A customer reports a suspicious transaction and you want to halt further charges while you investigate.
- The cardholder is going on leave and you want to prevent unintended charges (e.g. recurring subscriptions).
- You want a “kill switch” that you can reverse if needed.
Prerequisites
- The card must belong to your company.
- Card status must be
ACTIVE(not alreadyFROZEN,TERMINATED, etc.).
Request
Headers
| Name | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <access_token> |
Path parameters
| Name | Type | Description |
|---|---|---|
id | string | Card ID (UUID). |
Query parameters
| Name | Type | Default | Description |
|---|---|---|---|
lock | boolean | false | If true, request a deeper “lock” at the upstream issuer (more aggressive — blocks at the network level, not just the issuer’s authorization layer). Use only when needed; standard freeze is sufficient for most cases. |
Body
None.Response
200 — Success
{
"success": true,
"statusCode": 200,
"message": "Card frozen successfully",
"data": {
"card_id": "550e8400-e29b-41d4-a716-446655440000",
"card_status": "FROZEN"
}
}
Error responses
| Status | message example | Trigger |
|---|---|---|
400 | "Card already frozen" | Card is already in FROZEN state. |
400 | "Card terminated" | Card is TERMINATED and cannot be frozen. |
404 | "Card not found" | id is invalid or belongs to another company. |
Webhooks fired
None today. Card status changes toFROZEN immediately and is reflected in subsequent GET /cards and GET /cards/{id} responses.
Code examples
cURL
curl -X PUT https://api.cartevo.co/api/v1/cards/550e8400-e29b-41d4-a716-446655440000/freeze \
-H "Authorization: Bearer $TOKEN"
Node.js (axios)
await axios.put(
`https://api.cartevo.co/api/v1/cards/${cardId}/freeze`,
null,
{ headers: { Authorization: `Bearer ${token}` } }
);
Related
PUT /cards/{id}/unfreeze— reverse this action.POST /cards/{id}/terminate— permanent disable with balance refund.