curl --request GET \
--url https://api.engine.usesophic.com/fee-charges/{fee_charge_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.engine.usesophic.com/fee-charges/{fee_charge_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.engine.usesophic.com/fee-charges/{fee_charge_id}', 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.engine.usesophic.com/fee-charges/{fee_charge_id}",
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.engine.usesophic.com/fee-charges/{fee_charge_id}"
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.engine.usesophic.com/fee-charges/{fee_charge_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engine.usesophic.com/fee-charges/{fee_charge_id}")
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{
"amount_fee": "10.00",
"amount_tax": "2.00",
"amount_total": "12.00",
"collected_amount": "8.00",
"collected_at": "2026-02-01T09:30:00Z",
"collections": [
{
"amount": "4.00",
"collected_at": "2026-07-02T09:00:00Z",
"created_at": "2023-11-07T05:31:56Z",
"currency": "EUR",
"id": "<string>",
"modified_at": "2023-11-07T05:31:56Z"
}
],
"created_at": "2023-11-07T05:31:56Z",
"currency": "EUR",
"fee": {
"alias": "<string>",
"chargeable_currencies": {},
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"display_name": "<string>",
"fee_type": "transaction",
"id": "<string>",
"modified_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"tax_rate": "0.20",
"transaction_type": "<string>",
"variants": [
{
"created_at": "2023-11-07T05:31:56Z",
"fee": "<string>",
"id": "<string>",
"modified_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"instrument": "<string>",
"instrument_type": "<string>",
"portfolio_type": "<string>",
"transaction_type": "<string>"
}
]
},
"id": "<string>",
"is_fully_refunded": true,
"is_partially_refunded": true,
"modified_at": "2023-11-07T05:31:56Z",
"outstanding_amount": "4.00",
"period_end": "2026-01-31",
"period_start": "2026-01-01",
"refundable_amount": "7.00",
"refunded_amount": "5.00",
"refunds": [
{
"amount": "25.00",
"created_at": "2023-11-07T05:31:56Z",
"currency": "EUR",
"fee_charge": "<string>",
"id": "<string>",
"modified_at": "2023-11-07T05:31:56Z"
}
],
"related_transaction": "<string>",
"related_transaction_amount": "250.00",
"tax_rate": "0.20"
}{
"code": "<string>",
"detail": "<string>",
"context": {},
"docs": "<string>",
"params": [
{
"code": "<string>",
"detail": "<string>",
"path": [
123
]
}
]
}Retrieve a fee charge
Retrieve a fee charge by ID.
curl --request GET \
--url https://api.engine.usesophic.com/fee-charges/{fee_charge_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.engine.usesophic.com/fee-charges/{fee_charge_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.engine.usesophic.com/fee-charges/{fee_charge_id}', 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.engine.usesophic.com/fee-charges/{fee_charge_id}",
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.engine.usesophic.com/fee-charges/{fee_charge_id}"
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.engine.usesophic.com/fee-charges/{fee_charge_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engine.usesophic.com/fee-charges/{fee_charge_id}")
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{
"amount_fee": "10.00",
"amount_tax": "2.00",
"amount_total": "12.00",
"collected_amount": "8.00",
"collected_at": "2026-02-01T09:30:00Z",
"collections": [
{
"amount": "4.00",
"collected_at": "2026-07-02T09:00:00Z",
"created_at": "2023-11-07T05:31:56Z",
"currency": "EUR",
"id": "<string>",
"modified_at": "2023-11-07T05:31:56Z"
}
],
"created_at": "2023-11-07T05:31:56Z",
"currency": "EUR",
"fee": {
"alias": "<string>",
"chargeable_currencies": {},
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"display_name": "<string>",
"fee_type": "transaction",
"id": "<string>",
"modified_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"tax_rate": "0.20",
"transaction_type": "<string>",
"variants": [
{
"created_at": "2023-11-07T05:31:56Z",
"fee": "<string>",
"id": "<string>",
"modified_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"instrument": "<string>",
"instrument_type": "<string>",
"portfolio_type": "<string>",
"transaction_type": "<string>"
}
]
},
"id": "<string>",
"is_fully_refunded": true,
"is_partially_refunded": true,
"modified_at": "2023-11-07T05:31:56Z",
"outstanding_amount": "4.00",
"period_end": "2026-01-31",
"period_start": "2026-01-01",
"refundable_amount": "7.00",
"refunded_amount": "5.00",
"refunds": [
{
"amount": "25.00",
"created_at": "2023-11-07T05:31:56Z",
"currency": "EUR",
"fee_charge": "<string>",
"id": "<string>",
"modified_at": "2023-11-07T05:31:56Z"
}
],
"related_transaction": "<string>",
"related_transaction_amount": "250.00",
"tax_rate": "0.20"
}{
"code": "<string>",
"detail": "<string>",
"context": {},
"docs": "<string>",
"params": [
{
"code": "<string>",
"detail": "<string>",
"path": [
123
]
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
OK
Fee amount before tax.
"10.00"
Tax amount charged.
"2.00"
Total fee and tax amount.
"12.00"
Cash actually collected for the charge so far.
"8.00"
Date and time the charge was collected.
"2026-02-01T09:30:00Z"
Collection events that paid the charge down, in the order they were recorded. Empty means nothing has been collected.
Show child attributes
Show child attributes
Currency of the charge amounts.
EUR, USD, GBP Fee represented by this charge.
Show child attributes
Show child attributes
Unique resource identifier.
Whether the full charge has been refunded.
Whether part of the charge has been refunded.
What is still owed on the charge: the uncollected portion net of refunds, zero until the charge becomes due.
"4.00"
End date of the period covered by the charge.
"2026-01-31"
Start date of the period covered by the charge.
"2026-01-01"
Amount remaining eligible for refund.
"7.00"
Amount already refunded.
"5.00"
Refunds issued for the fee charge.
Show child attributes
Show child attributes
Transaction associated with the fee charge.
Amount of the associated transaction.
"250.00"
Tax rate applied to the fee charge.
"0.20"