List fee policies
curl --request GET \
--url https://sandbox-api.marqeta.com/v3/credit/policies/fees \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://sandbox-api.marqeta.com/v3/credit/policies/fees"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://sandbox-api.marqeta.com/v3/credit/policies/fees', 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://sandbox-api.marqeta.com/v3/credit/policies/fees",
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: Basic <encoded-value>"
],
]);
$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://sandbox-api.marqeta.com/v3/credit/policies/fees"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox-api.marqeta.com/v3/credit/policies/fees")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.marqeta.com/v3/credit/policies/fees")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"data": [
{
"name": "Gold Fee Policy",
"token": "my_fee_policy_token_1234",
"account": {
"late_payment": {
"default_value": 10,
"default_method": "FLAT"
},
"returned_payment": {
"default_value": 10,
"default_method": "FLAT"
},
"foreign_transaction_fee": {
"default_value": 12.5,
"default_method": "PERCENTAGE"
}
},
"description": "A gold fee policy",
"created_time": "2025-04-01T23:41:58.802Z",
"updated_time": "2025-04-05T16:04:48.643Z"
},
{
"name": "Silver Fee Policy",
"token": "my_fee_policy_token_4321",
"account": {
"late_payment": {
"default_value": 10,
"default_method": "FLAT"
},
"returned_payment": {
"default_value": 10,
"default_method": "FLAT"
},
"foreign_transaction_fee": {
"default_value": 12.5,
"default_method": "PERCENTAGE"
}
},
"description": "A silver fee policy",
"created_time": "2025-04-01T23:41:58.802Z",
"updated_time": "2025-04-05T16:04:48.643Z"
}
],
"count": 2,
"is_more": true,
"end_index": 2,
"start_index": 0
}{
"code": 123,
"message": "<string>"
}Fee Policies
List fee policies
Retrieve an array of existing fee policies.
GET
/
credit
/
policies
/
fees
List fee policies
curl --request GET \
--url https://sandbox-api.marqeta.com/v3/credit/policies/fees \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://sandbox-api.marqeta.com/v3/credit/policies/fees"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://sandbox-api.marqeta.com/v3/credit/policies/fees', 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://sandbox-api.marqeta.com/v3/credit/policies/fees",
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: Basic <encoded-value>"
],
]);
$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://sandbox-api.marqeta.com/v3/credit/policies/fees"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox-api.marqeta.com/v3/credit/policies/fees")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.marqeta.com/v3/credit/policies/fees")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"data": [
{
"name": "Gold Fee Policy",
"token": "my_fee_policy_token_1234",
"account": {
"late_payment": {
"default_value": 10,
"default_method": "FLAT"
},
"returned_payment": {
"default_value": 10,
"default_method": "FLAT"
},
"foreign_transaction_fee": {
"default_value": 12.5,
"default_method": "PERCENTAGE"
}
},
"description": "A gold fee policy",
"created_time": "2025-04-01T23:41:58.802Z",
"updated_time": "2025-04-05T16:04:48.643Z"
},
{
"name": "Silver Fee Policy",
"token": "my_fee_policy_token_4321",
"account": {
"late_payment": {
"default_value": 10,
"default_method": "FLAT"
},
"returned_payment": {
"default_value": 10,
"default_method": "FLAT"
},
"foreign_transaction_fee": {
"default_value": 12.5,
"default_method": "PERCENTAGE"
}
},
"description": "A silver fee policy",
"created_time": "2025-04-01T23:41:58.802Z",
"updated_time": "2025-04-05T16:04:48.643Z"
}
],
"count": 2,
"is_more": true,
"end_index": 2,
"start_index": 0
}{
"code": 123,
"message": "<string>"
}GET///
Retrieve an array of existing fee policies.
This endpoint supports sorting and pagination.
URL query parameters
| Fields | Description |
|---|---|
| count integer Optional | Number of fee policy resources to retrieve. Allowable Values: 1–100 |
| start_index integer Optional | Sort order index of the first resource in the returned array. Allowable Values: 0 min |
| sort_by string Optional | Field on which to sort. Prefix the field name with a hyphen (-) to sort in descending order. Omit the hyphen to sort in ascending order.NOTE: You must sort using system field names such as lastModifiedTime, and not by the field names appearing in response bodies such as last_modified_time.Allowable Values: lastModifiedTime, -lastModifiedTime |
Response body
| Fields | Description |
|---|---|
| count integer Returned | Number of resources returned. Allowable Values: 1-10 |
| start_index integer Returned | Sort order index of the first resource in the returned array. Allowable Values: Any integer |
| end_index integer Returned | Sort order index of the last resource in the returned array. Allowable Values: Any integer |
| is_more boolean Returned | A value of true indicates that more unreturned resources exist.Allowable Values: true, false |
| data array of objects Returned | One or more fee policies. Allowable Values: One or more fee policy objects |
| data[].token string Conditionally returned | Unique identifier of the fee policy. Allowable Values: 36 char max |
| data[].name string Conditionally returned | Name of the fee policy. Allowable Values: 255 char max |
| data[].description string Conditionally returned | Description of the fee policy. Allowable Values: 255 char max |
| data[].account object Conditionally returned | Contains information on the fees in an account’s fee policy. Allowable Values: Existing account object |
| data[].account.late_payment object Conditionally returned | Contains information on the late payment fee. Allowable Values: Existing late_payment object |
| data[].account.returned_payment object Conditionally returned | Contains information on the returned payment fee. Allowable Values: Existing returned_payment object |
| data[].account.foreign_transaction_fee object Conditionally returned | Contains information on the foreign transaction fee. Allowable Values: Existing foreign_transaction_fee object |
| data[].account.monthly_fee object Conditionally returned | Contains information on the monthly periodic fees. Allowable Values: Existing periodic_fees object |
| data[].account.annual_fee object Conditionally returned | Contains information on the annual periodic fees. Allowable Values: Existing periodic_fees object |
| data[].created_time datetime Conditionally returned | Date and time when the fee policy was created on Marqeta’s credit platform, in UTC. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
| data[].updated_time datetime Conditionally returned | Date and time when the fee policy was last updated on Marqeta’s credit platform, in UTC. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
Sample response body
JSON
{
"count": 2,
"start_index": 0,
"end_index": 2,
"is_more": true,
"data": [
{
"token": "my_fee_policy_token_1234",
"name": "Gold Fee Policy",
"description": "A gold fee policy",
"account": {
"late_payment": {
"default_method": "FLAT",
"default_value": 10
},
"returned_payment": {
"default_method": "FLAT",
"default_value": 10
},
"foreign_transaction_fee": {
"default_method": "PERCENTAGE",
"default_value": 12.5
}
},
"created_time": "2025-04-01T23:41:58.802Z",
"updated_time": "2025-04-05T16:04:48.643Z"
},
{
"token": "my_fee_policy_token_4321",
"name": "Silver Fee Policy",
"description": "A silver fee policy",
"account": {
"late_payment": {
"default_method": "FLAT",
"default_value": 10
},
"returned_payment": {
"default_method": "FLAT",
"default_value": 10
},
"foreign_transaction_fee": {
"default_method": "PERCENTAGE",
"default_value": 12.5
}
},
"created_time": "2025-04-01T23:41:58.802Z",
"updated_time": "2025-04-05T16:04:48.643Z"
}
]
}
Authorizations
Query Parameters
Field on which to sort.
Prefix the field name with a hyphen (-) to sort in descending order.
Omit the hyphen to sort in ascending order.
NOTE:
You must sort using system field names such as lastModifiedTime, and not by the field names appearing in response bodies such as last_modified_time.
Available options:
lastModifiedTime, -lastModifiedTime Response
Expected response to a valid request.
List response details for fee policies.
Was this page helpful?