Manage Card Security Settings
curl --request GET \
--url https://api.usezentra.com/api/v1/cards/{card_id}/security \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usezentra.com/api/v1/cards/{card_id}/security"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usezentra.com/api/v1/cards/{card_id}/security', 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.usezentra.com/api/v1/cards/{card_id}/security",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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.usezentra.com/api/v1/cards/{card_id}/security"
req, _ := http.NewRequest("GET", 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.get("https://api.usezentra.com/api/v1/cards/{card_id}/security")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usezentra.com/api/v1/cards/{card_id}/security")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyManage Card Security Settings
GET and PUT /api/v1/cards//security - Read or update card security controls
GET
/
api
/
v1
/
cards
/
{card_id}
/
security
Manage Card Security Settings
curl --request GET \
--url https://api.usezentra.com/api/v1/cards/{card_id}/security \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usezentra.com/api/v1/cards/{card_id}/security"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usezentra.com/api/v1/cards/{card_id}/security', 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.usezentra.com/api/v1/cards/{card_id}/security",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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.usezentra.com/api/v1/cards/{card_id}/security"
req, _ := http.NewRequest("GET", 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.get("https://api.usezentra.com/api/v1/cards/{card_id}/security")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usezentra.com/api/v1/cards/{card_id}/security")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyRead or update card security controls through the reviewed public gateway.
Endpoints
GET /api/v1/cards/{card_id}/security
PUT /api/v1/cards/{card_id}/security
Path Parameters
string
required
The card identifier returned during card creation or listing.
Update Request Body
The reviewed public contract accepts a flexible JSON object for card security settings. Depending on your card program, that may include:- spending limits
- channel or merchant controls
- geofencing or travel controls
- other card-level safety settings
Example Update Request
curl -X PUT https://api.usezentra.com/api/v1/cards/card_123/security \
-H "Authorization: Bearer YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"spending_limits": {
"daily_minor": 2500000,
"monthly_minor": 10000000
},
"merchant_controls": {
"blocked_categories": ["gambling"]
}
}'
Response Notes
GETreturns the currently applied security configuration for the card.PUTupdates those controls and returns the updated configuration.- Lock and unlock are exposed as separate operational endpoints.
Next Steps
Lock Card
Temporarily lock card usage
Unlock Card
Restore card usage after review
Was this page helpful?