curl --request GET \
--url https://api.bachs.io/v1/platform_fees/{fee_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bachs.io/v1/platform_fees/{fee_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bachs.io/v1/platform_fees/{fee_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bachs.io/v1/platform_fees/{fee_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))
}{
"id": "pf_8c1e04a7b93f2d6540ab1234",
"charge": "ch_9f4c1d2e7b6a4f8e9c0d1a2b3c4d5e6f",
"collected_from": "acct_3Wq8ZfT1yHnJ5sVe",
"earned_by": "acct_7KpQ2mNv4XbR9dLc",
"amount": "20000.00",
"currency": "NGN",
"amount_refunded": "0.00",
"refunded": false,
"created_at": "2026-08-07T11:04:22.518Z"
}{
"detail": "Invalid API key",
"error_code": "UNAUTHORIZED"
}{
"detail": "API key does not have permission for this operation",
"error_code": "FORBIDDEN"
}{
"detail": "Resource not found",
"error_code": "NOT_FOUND"
}Get a platform fee
Retrieve a single platform fee your organization was a party to.
curl --request GET \
--url https://api.bachs.io/v1/platform_fees/{fee_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bachs.io/v1/platform_fees/{fee_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bachs.io/v1/platform_fees/{fee_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bachs.io/v1/platform_fees/{fee_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))
}{
"id": "pf_8c1e04a7b93f2d6540ab1234",
"charge": "ch_9f4c1d2e7b6a4f8e9c0d1a2b3c4d5e6f",
"collected_from": "acct_3Wq8ZfT1yHnJ5sVe",
"earned_by": "acct_7KpQ2mNv4XbR9dLc",
"amount": "20000.00",
"currency": "NGN",
"amount_refunded": "0.00",
"refunded": false,
"created_at": "2026-08-07T11:04:22.518Z"
}{
"detail": "Invalid API key",
"error_code": "UNAUTHORIZED"
}{
"detail": "API key does not have permission for this operation",
"error_code": "FORBIDDEN"
}{
"detail": "Resource not found",
"error_code": "NOT_FOUND"
}Authorizations
Bearer token authentication. Pass your API key as Authorization: Bearer sk_.... See Authentication for keys, scopes, and sandbox vs production.
Path Parameters
The platform fee's ID.
Response
The platform fee.
The platform fee's unique identifier, prefixed pf_.
"pf_8c1e04a7b93f2d6540ab1234"
The charge that this fee was struck against, prefixed ch_.
"ch_9f4c1d2e7b6a4f8e9c0d1a2b3c4d5e6f"
The account the fee was collected from: the seller on a destination charge, or the merchant itself on a direct charge.
"acct_3Wq8ZfT1yHnJ5sVe"
The platform that earned the fee.
"acct_7KpQ2mNv4XbR9dLc"
The fee amount, as a decimal string in currency.
"20000.00"
The currency the sale was struck in, before any conversion, as an ISO 4217 code.
"NGN"
How much of this fee has been reversed. Currently always "0.00": a platform fee is not reversed when its charge is refunded.
"0.00"
Whether the fee has been fully reversed. Derived from amount_refunded against amount, so it cannot disagree with them.
false
When the fee was recorded, ISO 8601 in UTC.
"2026-08-07T11:04:22.518Z"

