curl --request GET \
--url https://api.next.orenda.finance/v2/customers/{customerId}/cards/{cardId}/policy \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.next.orenda.finance/v2/customers/{customerId}/cards/{cardId}/policy"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.next.orenda.finance/v2/customers/{customerId}/cards/{cardId}/policy', 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.next.orenda.finance/v2/customers/{customerId}/cards/{cardId}/policy",
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.next.orenda.finance/v2/customers/{customerId}/cards/{cardId}/policy"
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.next.orenda.finance/v2/customers/{customerId}/cards/{cardId}/policy")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.next.orenda.finance/v2/customers/{customerId}/cards/{cardId}/policy")
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_body{
"success": true,
"message": "<string>",
"data": {
"cardId": "<string>",
"version": 123,
"updatedAt": "<string>",
"inertPaths": [
"<string>"
],
"areas": {
"mcc": {
"enabled": true,
"mode": "<string>",
"editable": true,
"card": {
"allow": [
"<string>"
],
"block": [
"<string>"
]
},
"effective": {
"mode": "<string>",
"blocked": [
"<string>"
],
"allowed": [
"<string>"
],
"unrestricted": true
}
},
"country": {
"enabled": true,
"mode": "<string>",
"editable": true,
"card": {
"countries": {
"allow": [
"<string>"
],
"block": [
"<string>"
]
},
"regions": {
"allow": [
"<string>"
],
"block": [
"<string>"
]
}
},
"effective": {
"mode": "<string>",
"countries": [
"<string>"
],
"regions": [
"<string>"
]
}
},
"inputOptions": {
"enabled": true,
"mode": "<string>",
"editable": true,
"card": {
"allow": [
"<string>"
],
"block": [
"<string>"
]
},
"effective": {
"mode": "<string>",
"blocked": [
"<string>"
],
"allowed": [
"<string>"
],
"unrestricted": true
}
},
"limits": {
"currency": "<string>",
"enabled": true,
"mode": "<string>",
"editable": true,
"card": {
"atm": {
"single": "<string>",
"daily": "<string>",
"weekly": "<string>",
"monthly": "<string>",
"annual": "<string>",
"count": {
"daily": 123,
"weekly": 123,
"monthly": 123,
"annual": 123
}
},
"pos": {
"single": "<string>",
"daily": "<string>",
"weekly": "<string>",
"monthly": "<string>",
"annual": "<string>",
"count": {
"daily": 123,
"weekly": 123,
"monthly": 123,
"annual": 123
}
}
},
"effective": {
"atm": {
"single": "<string>",
"daily": "<string>",
"weekly": "<string>",
"monthly": "<string>",
"annual": "<string>",
"count": {
"daily": 123,
"weekly": 123,
"monthly": 123,
"annual": 123
}
},
"pos": {
"single": "<string>",
"daily": "<string>",
"weekly": "<string>",
"monthly": "<string>",
"annual": "<string>",
"count": {
"daily": 123,
"weekly": 123,
"monthly": 123,
"annual": 123
}
}
},
"ceiling": {
"atm": {
"single": "<string>",
"daily": "<string>",
"weekly": "<string>",
"monthly": "<string>",
"annual": "<string>",
"count": {
"daily": 123,
"weekly": 123,
"monthly": 123,
"annual": 123
}
},
"pos": {
"single": "<string>",
"daily": "<string>",
"weekly": "<string>",
"monthly": "<string>",
"annual": "<string>",
"count": {
"daily": 123,
"weekly": 123,
"monthly": 123,
"annual": 123
}
}
}
},
"customerLimits": {
"currency": "<string>",
"enabled": true,
"mode": "<string>",
"editable": true,
"card": null,
"effective": {
"atm": {
"single": "<string>",
"daily": "<string>",
"weekly": "<string>",
"monthly": "<string>",
"annual": "<string>",
"count": {
"daily": 123,
"weekly": 123,
"monthly": 123,
"annual": 123
}
},
"pos": {
"single": "<string>",
"daily": "<string>",
"weekly": "<string>",
"monthly": "<string>",
"annual": "<string>",
"count": {
"daily": 123,
"weekly": 123,
"monthly": 123,
"annual": 123
}
}
},
"ceiling": null
}
}
}
}Get this card's policy (v2)
What this card is allowed to do, and what the cardholder may change.
Amounts. areas.limits and areas.customerLimits carry a currency, the card’s, and every amount in them (single, daily, weekly, monthly, annual) is a decimal string in major units of that currency: "1500.00" for GBP or EUR, "1500" for JPY. null means no limit at that window. The count values are transaction counts and stay integers.
Each area (mcc, country, inputOptions, limits) reports three things: card (the cardholder’s own setting, null if they haven’t set one), effective (what is actually enforced, including restrictions set by the program or by Orenda), and mode, which tells you which control to draw. Read mode before rendering anything. Keep version; you send it back on update.
Only on accounts whose cards.limits.mode is custom in capabilities; on a preset account use Update card limit group.
If the card’s currency cannot be determined, the request fails with 400 CARD_POLICY_CURRENCY_UNAVAILABLE.
curl --request GET \
--url https://api.next.orenda.finance/v2/customers/{customerId}/cards/{cardId}/policy \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.next.orenda.finance/v2/customers/{customerId}/cards/{cardId}/policy"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.next.orenda.finance/v2/customers/{customerId}/cards/{cardId}/policy', 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.next.orenda.finance/v2/customers/{customerId}/cards/{cardId}/policy",
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.next.orenda.finance/v2/customers/{customerId}/cards/{cardId}/policy"
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.next.orenda.finance/v2/customers/{customerId}/cards/{cardId}/policy")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.next.orenda.finance/v2/customers/{customerId}/cards/{cardId}/policy")
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_body{
"success": true,
"message": "<string>",
"data": {
"cardId": "<string>",
"version": 123,
"updatedAt": "<string>",
"inertPaths": [
"<string>"
],
"areas": {
"mcc": {
"enabled": true,
"mode": "<string>",
"editable": true,
"card": {
"allow": [
"<string>"
],
"block": [
"<string>"
]
},
"effective": {
"mode": "<string>",
"blocked": [
"<string>"
],
"allowed": [
"<string>"
],
"unrestricted": true
}
},
"country": {
"enabled": true,
"mode": "<string>",
"editable": true,
"card": {
"countries": {
"allow": [
"<string>"
],
"block": [
"<string>"
]
},
"regions": {
"allow": [
"<string>"
],
"block": [
"<string>"
]
}
},
"effective": {
"mode": "<string>",
"countries": [
"<string>"
],
"regions": [
"<string>"
]
}
},
"inputOptions": {
"enabled": true,
"mode": "<string>",
"editable": true,
"card": {
"allow": [
"<string>"
],
"block": [
"<string>"
]
},
"effective": {
"mode": "<string>",
"blocked": [
"<string>"
],
"allowed": [
"<string>"
],
"unrestricted": true
}
},
"limits": {
"currency": "<string>",
"enabled": true,
"mode": "<string>",
"editable": true,
"card": {
"atm": {
"single": "<string>",
"daily": "<string>",
"weekly": "<string>",
"monthly": "<string>",
"annual": "<string>",
"count": {
"daily": 123,
"weekly": 123,
"monthly": 123,
"annual": 123
}
},
"pos": {
"single": "<string>",
"daily": "<string>",
"weekly": "<string>",
"monthly": "<string>",
"annual": "<string>",
"count": {
"daily": 123,
"weekly": 123,
"monthly": 123,
"annual": 123
}
}
},
"effective": {
"atm": {
"single": "<string>",
"daily": "<string>",
"weekly": "<string>",
"monthly": "<string>",
"annual": "<string>",
"count": {
"daily": 123,
"weekly": 123,
"monthly": 123,
"annual": 123
}
},
"pos": {
"single": "<string>",
"daily": "<string>",
"weekly": "<string>",
"monthly": "<string>",
"annual": "<string>",
"count": {
"daily": 123,
"weekly": 123,
"monthly": 123,
"annual": 123
}
}
},
"ceiling": {
"atm": {
"single": "<string>",
"daily": "<string>",
"weekly": "<string>",
"monthly": "<string>",
"annual": "<string>",
"count": {
"daily": 123,
"weekly": 123,
"monthly": 123,
"annual": 123
}
},
"pos": {
"single": "<string>",
"daily": "<string>",
"weekly": "<string>",
"monthly": "<string>",
"annual": "<string>",
"count": {
"daily": 123,
"weekly": 123,
"monthly": 123,
"annual": 123
}
}
}
},
"customerLimits": {
"currency": "<string>",
"enabled": true,
"mode": "<string>",
"editable": true,
"card": null,
"effective": {
"atm": {
"single": "<string>",
"daily": "<string>",
"weekly": "<string>",
"monthly": "<string>",
"annual": "<string>",
"count": {
"daily": 123,
"weekly": 123,
"monthly": 123,
"annual": 123
}
},
"pos": {
"single": "<string>",
"daily": "<string>",
"weekly": "<string>",
"monthly": "<string>",
"annual": "<string>",
"count": {
"daily": 123,
"weekly": 123,
"monthly": 123,
"annual": 123
}
}
},
"ceiling": null
}
}
}
}