List APR schedules
curl --request GET \
--url https://sandbox-api.marqeta.com/v3/credit/policies/aprs/{token}/schedule \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://sandbox-api.marqeta.com/v3/credit/policies/aprs/{token}/schedule"
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/aprs/{token}/schedule', 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/aprs/{token}/schedule",
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/aprs/{token}/schedule"
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/aprs/{token}/schedule")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.marqeta.com/v3/credit/policies/aprs/{token}/schedule")
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 APR Policy",
"token": "my_apr_policy_token_1234",
"purchases": {
"name": "A purchase at a merchant",
"tiers": [
{
"apr": 0,
"margin_rate": 1
},
{
"apr": 0,
"margin_rate": 5
}
],
"external_token": "my_external_purchase_token1234"
},
"description": "A gold APR policy",
"created_time": "2025-04-01T23:41:58.802Z",
"updated_time": "2025-04-05T16:04:48.643Z",
"effective_date": "2025-05-01"
},
{
"name": "Silver APR Policy",
"token": "my_apr_policy_token_4321",
"purchases": {
"name": "A purchase at a merchant",
"tiers": [
{
"apr": 0,
"margin_rate": 1
},
{
"apr": 0,
"margin_rate": 5
}
],
"external_token": "my_external_purchase_token4321"
},
"description": "A silver APR policy",
"created_time": "2025-04-01T23:41:58.802Z",
"updated_time": "2025-04-05T16:04:48.643Z",
"effective_date": "2025-06-01"
}
],
"count": 2,
"is_more": true,
"end_index": 2,
"start_index": 0
}{
"code": 123,
"message": "<string>"
}APR Policies
List APR schedules
Retrieve an array of the historic annual percentage rate (APR) schedules on a specific APR policy.
GET
/
credit
/
policies
/
aprs
/
{token}
/
schedule
List APR schedules
curl --request GET \
--url https://sandbox-api.marqeta.com/v3/credit/policies/aprs/{token}/schedule \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://sandbox-api.marqeta.com/v3/credit/policies/aprs/{token}/schedule"
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/aprs/{token}/schedule', 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/aprs/{token}/schedule",
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/aprs/{token}/schedule"
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/aprs/{token}/schedule")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.marqeta.com/v3/credit/policies/aprs/{token}/schedule")
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 APR Policy",
"token": "my_apr_policy_token_1234",
"purchases": {
"name": "A purchase at a merchant",
"tiers": [
{
"apr": 0,
"margin_rate": 1
},
{
"apr": 0,
"margin_rate": 5
}
],
"external_token": "my_external_purchase_token1234"
},
"description": "A gold APR policy",
"created_time": "2025-04-01T23:41:58.802Z",
"updated_time": "2025-04-05T16:04:48.643Z",
"effective_date": "2025-05-01"
},
{
"name": "Silver APR Policy",
"token": "my_apr_policy_token_4321",
"purchases": {
"name": "A purchase at a merchant",
"tiers": [
{
"apr": 0,
"margin_rate": 1
},
{
"apr": 0,
"margin_rate": 5
}
],
"external_token": "my_external_purchase_token4321"
},
"description": "A silver APR policy",
"created_time": "2025-04-01T23:41:58.802Z",
"updated_time": "2025-04-05T16:04:48.643Z",
"effective_date": "2025-06-01"
}
],
"count": 2,
"is_more": true,
"end_index": 2,
"start_index": 0
}{
"code": 123,
"message": "<string>"
}GET/////
Retrieve an array of the historic annual percentage rate (APR) schedules on a specific APR policy.
This endpoint supports sorting and pagination.
URL path parameters
| Fields | Description |
|---|---|
| token string Required | Unique identifier of the APR policy on which to retrieve APR schedules. Send a GET request to /policies/aprs to retrieve existing product policy tokens.Allowable Values: Existing APR policy token |
URL query parameters
| Fields | Description |
|---|---|
| count integer Optional | Number of APR schedule 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 APR policies. Allowable Values: One or more APR policy objects |
| data[].token string Conditionally returned | Unique identifier of the APR policy. Allowable Values: 36 char max |
| data[].name string Conditionally returned | Name of the APR policy. Allowable Values: 255 char max |
| data[].description string Conditionally returned | Description of the APR policy. Allowable Values: 255 char max |
| data[].purchases object Conditionally returned | Contains information on the pricing strategy for purchases. Allowable Values: Existing purchases object |
| data[].purchases.name string Conditionally returned | Name of the pricing strategy. Allowable Values: 255 char max |
| data[].purchases.external_token string Conditionally returned | Unique identifier of the pricing strategy on a credit program. Allowable Values: 36 char max |
| data[].purchases.tiers array of objects Conditionally returned | One or more risk tiers for a pricing strategy. Allowable Values: One or more tiers objects |
| data[].purchases.tiers[].margin_rate decimal Conditionally returned | Margin rate for the risk tier for a pricing strategy. Allowable Values: Format: 0.00 |
| data[].purchases.tiers[].apr decimal Conditionally returned | Value of the APR. Allowable Values: Format: 0.00 |
| data[].effective_date date Conditionally returned | Date the APR goes into effect, in UTC. Allowable Values: Format: yyyy-MM-dd |
| data[].created_time datetime Conditionally returned | Date and time when the APR 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 APR 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_apr_policy_token_1234",
"name": "Gold APR Policy",
"description": "A gold APR policy",
"purchases": {
"name": "A purchase at a merchant",
"external_token": "my_external_purchase_token1234",
"tiers": [
{
"margin_rate": 1,
"apr": 0
},
{
"margin_rate": 5,
"apr": 0
}
]
},
"effective_date": "2025-05-01",
"created_time": "2025-04-01T23:41:58.802Z",
"updated_time": "2025-04-05T16:04:48.643Z"
},
{
"token": "my_apr_policy_token_4321",
"name": "Silver APR Policy",
"description": "A silver APR policy",
"purchases": {
"name": "A purchase at a merchant",
"external_token": "my_external_purchase_token4321",
"tiers": [
{
"margin_rate": 1,
"apr": 0
},
{
"margin_rate": 5,
"apr": 0
}
]
},
"effective_date": "2025-06-01",
"created_time": "2025-04-01T23:41:58.802Z",
"updated_time": "2025-04-05T16:04:48.643Z"
}
]
}
Authorizations
Path Parameters
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 paginated APR policies.
Was this page helpful?