Skip to content

Get Fees

GET /api-access/api/fees

Retrieve a list of fees for your business account.

Authentication

Required Headers:

Authorization: HMAC-SHA256 PUBLIC_KEY:PRIVATE_KEY
X-Origin: third-party-api
X-Timestamp: 2025-10-12T14:30:00.000Z
Content-Type: application/json

Request

This endpoint does not require any query parameters.

Response

Success Response (200):

json
{
  "items": [
    {
      "fees": [
        {
          "revenue_line": "subscription",
          "is_active": true,
          "monthly_fee_amount": 0,
          "channel": "mobile_money",
          "base_currency": "xof",
          "target_currency": "xof",
          "maraboo_flat_fee": 0,
          "maraboo_percentage_fee": 0,
          "partner_flat_fee": 0,
          "partner_percentage_fee": 0,
          "fx_partner_percentage_fee": 0,
          "tax_percentage": 0,
          "id": "string",
          "plan_id": "string",
          "created_at": "2025-10-12T18:15:45.258Z",
          "updated_at": "2025-10-12T18:15:45.258Z"
        }
      ],
      "total": 0,
      "limit": 0,
      "offset": 0
    }
  ],
  "total": 0,
  "offset": 0,
  "limit": 0
}

Response Fields:

FieldTypeDescription
itemsarrayArray of fee group objects
items[].feesarrayArray of fee objects within the group
items[].fees[].revenue_linestringRevenue line type (e.g., subscription)
items[].fees[].is_activebooleanWhether the fee is active
items[].fees[].monthly_fee_amountnumberMonthly fee amount
items[].fees[].channelstringPayment channel (e.g., mobile_money)
items[].fees[].base_currencystringBase currency code (e.g., xof)
items[].fees[].target_currencystringTarget currency code (e.g., xof)
items[].fees[].maraboo_flat_feenumberMaraboo flat fee amount
items[].fees[].maraboo_percentage_feenumberMaraboo percentage fee
items[].fees[].partner_flat_feenumberPartner flat fee amount
items[].fees[].partner_percentage_feenumberPartner percentage fee
items[].fees[].fx_partner_percentage_feenumberForeign exchange partner percentage fee
items[].fees[].tax_percentagenumberTax percentage
items[].fees[].idstringFee ID
items[].fees[].plan_idstringPlan ID
items[].fees[].created_atstringCreation timestamp (ISO 8601)
items[].fees[].updated_atstringLast update timestamp (ISO 8601)
items[].totalnumberTotal number of fees in the group
items[].limitnumberLimit per page
items[].offsetnumberOffset for pagination
totalnumberTotal number of fee groups
offsetnumberCurrent offset
limitnumberCurrent limit

Examples

bash
curl -X GET "https://sandbox.mara.boo/api-access/api/fees" \
  -H "Authorization: HMAC-SHA256 YOUR_PUBLIC_KEY:YOUR_PRIVATE_KEY" \
  -H "X-Origin: third-party-api" \
  -H "X-Timestamp: 2025-10-12T14:30:00.000Z" \
  -H "Content-Type: application/json"
javascript
const response = await fetch('https://sandbox.mara.boo/api-access/api/fees', {
  method: 'GET',
  headers: {
    'Authorization': 'HMAC-SHA256 YOUR_PUBLIC_KEY:YOUR_PRIVATE_KEY',
    'X-Origin': 'third-party-api',
    'X-Timestamp': '2025-10-12T14:30:00.000Z',
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
python
import requests

response = requests.get(
    'https://sandbox.mara.boo/api-access/api/fees',
    headers={
        'Authorization': 'HMAC-SHA256 YOUR_PUBLIC_KEY:YOUR_PRIVATE_KEY',
        'X-Origin': 'third-party-api',
        'X-Timestamp': '2025-10-12T14:30:00.000Z',
        'Content-Type': 'application/json'
    }
)

data = response.json()
go
package main

import (
    "net/http"
    "io/ioutil"
)

func main() {
    client := &http.Client{}
    req, _ := http.NewRequest("GET", "https://sandbox.mara.boo/api-access/api/fees", nil)

    req.Header.Set("Authorization", "HMAC-SHA256 YOUR_PUBLIC_KEY:YOUR_PRIVATE_KEY")
    req.Header.Set("X-Origin", "third-party-api")
    req.Header.Set("X-Timestamp", "2025-10-12T14:30:00.000Z")
    req.Header.Set("Content-Type", "application/json")

    resp, _ := client.Do(req)
    defer resp.Body.Close()

    body, _ := ioutil.ReadAll(resp.Body)
}
java
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://sandbox.mara.boo/api-access/api/fees"))
    .header("Authorization", "HMAC-SHA256 YOUR_PUBLIC_KEY:YOUR_PRIVATE_KEY")
    .header("X-Origin", "third-party-api")
    .header("X-Timestamp", "2025-10-12T14:30:00.000Z")
    .header("Content-Type", "application/json")
    .GET()
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
csharp
using System.Net.Http;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://sandbox.mara.boo/api-access/api/fees");

request.Headers.Add("Authorization", "HMAC-SHA256 YOUR_PUBLIC_KEY:YOUR_PRIVATE_KEY");
request.Headers.Add("X-Origin", "third-party-api");
request.Headers.Add("X-Timestamp", "2025-10-12T14:30:00.000Z");
request.Headers.Add("Content-Type", "application/json");

var response = await client.SendAsync(request);
var content = await response.Content.ReadAsStringAsync();

Error Responses

Status CodeDescription
401Unauthorized - Invalid authentication
403Forbidden - Missing required headers
500Internal Server Error