Retrieve account statement interest charges
curl --request GET \
--url https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/statements/{statement_summary_token}/interestcharges \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/statements/{statement_summary_token}/interestcharges"
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/accounts/{account_token}/statements/{statement_summary_token}/interestcharges', 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/accounts/{account_token}/statements/{statement_summary_token}/interestcharges",
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/accounts/{account_token}/statements/{statement_summary_token}/interestcharges"
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/accounts/{account_token}/statements/{statement_summary_token}/interestcharges")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/statements/{statement_summary_token}/interestcharges")
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": [
{
"amount": 2.31,
"apr_type": "GO_TO",
"apr_value": 14.99,
"balance_type": "PURCHASE",
"balance_subject_to_interest_rate": 181.67
}
],
"user_token": "user_token1234",
"account_token": "credit_account_token1234",
"statement_summary_token": "statement_summary_token1234"
}{
"code": 123,
"message": "<string>"
}Statements
Retrieve account statement interest charges
Retrieve the interest charges on a credit account’s statement summary.
GET
/
credit
/
accounts
/
{account_token}
/
statements
/
{statement_summary_token}
/
interestcharges
Retrieve account statement interest charges
curl --request GET \
--url https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/statements/{statement_summary_token}/interestcharges \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/statements/{statement_summary_token}/interestcharges"
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/accounts/{account_token}/statements/{statement_summary_token}/interestcharges', 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/accounts/{account_token}/statements/{statement_summary_token}/interestcharges",
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/accounts/{account_token}/statements/{statement_summary_token}/interestcharges"
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/accounts/{account_token}/statements/{statement_summary_token}/interestcharges")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/statements/{statement_summary_token}/interestcharges")
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": [
{
"amount": 2.31,
"apr_type": "GO_TO",
"apr_value": 14.99,
"balance_type": "PURCHASE",
"balance_subject_to_interest_rate": 181.67
}
],
"user_token": "user_token1234",
"account_token": "credit_account_token1234",
"statement_summary_token": "statement_summary_token1234"
}{
"code": 123,
"message": "<string>"
}GET//////
Retrieve the interest charges on a credit account’s statement summary.
URL path parameters
| Fields | Description |
|---|---|
| account_token string Required | The unique identifier of the credit account for which you want to retrieve the statement interest charges. Send a GET request to /credit/accounts to retrieve existing credit account tokens.Allowable Values: Existing account token |
| statement_summary_token string Required | The unique identifier of the statement summary from which to retrieve the interest charges. Send a GET request to /credit/accounts/{token}/statements/ to retrieve existing statement summary tokens.Allowable Values: Existing statement summary token |
Response body
| Fields | Description |
|---|---|
| account_token string Returned | Unique identifier of the credit account on which the statement interest charge is generated. Allowable Values: 36 char max |
| statement_summary_token string Returned | Unique identifier of the statement summary. Allowable Values: Existing statement summary token |
| data array of objects Returned | Contains one or more interest charges on a statement. Allowable Values: One or more interest charge objects |
| data[].balance_type string Conditionally returned | Type of balance. - PURCHASE - The balance on purchases.Allowable Values: PURCHASE |
| data[].apr_value decimal Conditionally returned | Annual percentage rate. Allowable Values: 0–100 |
| data[].apr_type string Conditionally returned | Type of APR. Allowable Values: GO_TO |
| data[].balance_subject_to_interest_rate decimal Conditionally returned | Average daily balance used to calculate interest. Allowable Values: Format: 0.00 |
| data[].amount decimal Conditionally returned | Amount of interest calculated for the billing period. Allowable Values: Format: 0.00 |
Sample response body
JSON
{
"account_token": "credit_account_token1234",
"user_token": "user_token1234",
"statement_summary_token": "statement_summary_token1234",
"data": [
{
"balance_type": "PURCHASE",
"apr_value": 14.99,
"apr_type": "GO_TO",
"balance_subject_to_interest_rate": 181.67,
"amount": 2.31
}
]
}
Authorizations
Path Parameters
Response
Expected response to a valid request.
Return paginated statement interest charges.
Was this page helpful?