Connect

App Fees

Earn a fee on the payments you take for connected businesses, and choose who pays ePay's fee.

App Fees

An app fee is what your platform earns on a payment you create for a connected business — the equivalent of Stripe's application fee. You set it per currency in the dashboard, or per payment with productFeeAmount.

The connected business is still the merchant of record: the payment lands in its wallet. Your app fee is taken out of that payment and credited to your platform business's own ePay wallet. It becomes available on T+1 and settles to your bank account like the rest of your balance.

Before you start

Your app must have been approved with Charges an app fee turned on. If you didn't declare it when you submitted the app, turn it on in the app details and submit the change for review — you can't set an app fee until ePay approves it.


Pricing models

Your app's pricing model decides who pays ePay's processing fee on the payments you create. You pick it in Developers → Apps → your app → Fees.

ePay pricing (default)Platform pricing
Who pays ePay's feeThe connected business, exactly as on its own paymentsYour platform, out of the app fee
ePay's rateThe connected business's own ePay rateYour app's negotiated rate, otherwise your platform business's own ePay rate
What the business paysePay's fee plus your app feeYour app fee only
What you receiveThe whole app feeThe app fee minus ePay's fee
Minimum app feeNoneMust be at least ePay's fee on the payment
feePaidBy on paymentsmerchantplatform

Platform pricing suits platforms that want to quote their businesses one all-in price. If the Fees tab shows platform pricing as Coming soon, it isn't available for your app yet.

How ePay's rate is chosen under platform pricing

  1. If ePay has negotiated a rate for your app in that currency, that rate applies. It's shown read-only on the Fees tab.
  2. Otherwise, your platform business's own ePay fee for that currency applies.

Tips

  • Your app fee is calculated on the payment amount without the tip.
  • ePay's fee is calculated as it normally is. Under platform pricing that's on the amount plus the tip.
  • The rest of the tip goes to the connected business.

VAT

Both fees include VAT. ePay never adds VAT on top: the amount you set is exactly what the business pays, and ePay's fee is exactly what's deducted.

  • Your app fee is your platform's supply. If your platform is VAT-registered, the VAT inside it is yours to declare. You issue the tax invoice to the connected business, not ePay. At 15%, the VAT inside an amount is amount × 15 / 115 (10.00 ETB includes 1.30 VAT). If you aren't VAT-registered, the whole fee is your revenue.
  • ePay's fee is ePay's supply. Its VAT is ePay's to declare. ePay invoices whoever pays the fee: the business under ePay pricing, your platform under platform pricing.
  • The settlement split is not a tax invoice. Moving your app fee to your wallet doesn't change who supplied what to whom.

Worked examples

A customer pays a 1,000 ETB order and adds a 50 ETB tip. Each diagram reads top to bottom: who pays whom, and how much.

ePay pricing. The business's own ePay fee is 2% (20 ETB, including 2.60 VAT). Your app fee is 1% of the order (10 ETB, including 1.30 VAT if your platform is VAT-registered).

  1. Customer to Business: Pays 1,050.00 (1,000 + 50 tip)
  2. Business to ePay: Pays 20.00 (ePay fee, VAT incl.)
  3. Business to Platform: Pays 10.00 (your app fee, VAT incl.)
  4. Business to Platform: Monthly subscription (optional, billed outside ePay), outside ePay
Business1,020.00 ETBePay20.00 ETBPlatform10.00 ETB

Platform pricing. Your platform's ePay rate is 1.5% of 1,050 (15.75 ETB, including 2.05 VAT that ePay invoices to your platform). Your app fee is 2.5% of the order (25 ETB, including 3.26 VAT if your platform is VAT-registered), and ePay's fee is paid out of it.

  1. Customer to Business: Pays 1,050.00 (1,000 + 50 tip)
  2. Business to Platform: Pays 25.00 (your app fee, VAT incl.)
  3. Platform to ePay: You pay 15.75 (ePay fee, VAT incl.)
Business1,025.00 ETBePay15.75 ETBPlatform9.25 ETB

All of this happens in ePay when the payment succeeds: the customer's money lands in the business's wallet, and the app fee is moved to your platform business's own ePay wallet. Both are available the next day (T+1).


Set your default app fee

In Developers → Apps → your app → Fees, set the app fee for each currency as one or more tiers. Each tier covers a range of payment amounts and combines a percentage with a fixed amount, so you can charge differently for small and large payments.

  • Apply now or schedule. Every change is saved as a new version. Apply it immediately, or pick a future date and time for it to start.
  • Cancel a scheduled change any time before it starts.
  • History lists every version, including cancelled ones.
  • Refunds. Choose whether refunds give your app fee back by default — see Refunds.

Connected businesses are notified when your app fee or pricing model changes, so schedule changes ahead of time when you can. The pricing model is versioned the same way: switch now, or schedule the switch.

The default applies to every payment you create on behalf unless you send productFeeAmount.


Set the fee per payment

Send productFeeAmount with POST /v1/transactions/initialize or POST /v1/transactions/direct to override the default for that payment. It's a fixed amount in the payment's currency, VAT included. "0" means no app fee. It's only accepted together with the ePay-Account header.

raw HTTP

Nothing NestJS-specific here — this is the same Node.js client call.

Nothing Django-specific here — this is the same Python client call.

Nothing Flask-specific here — this is the same Python client call.

Nothing FastAPI-specific here — this is the same Python client call.

Nothing Laravel-specific here — this is the same PHP client call.

Nothing Spring Boot-specific here — this is the same Java client call.

curl https://api.e-pay.et/v1/transactions/initialize \
  -X POST \
  -H "Authorization: Bearer sk_live_your_key_here" \
  -H "ePay-Account: acct_9Kd2mQ7xL4pR8sT1" \
  -H "Content-Type: application/json" \
  -H "x-idempotency-key: order_123" \
  -d '{
    "amount": "1000.00",
    "currencyCode": "ETB",
    "customerPhone": "+251911234567",
    "merchantReference": "order_123",
    "productFeeAmount": "25.00",
    "returnUrl": "https://app.example.com/orders/123/complete"
  }'
const res = await fetch('https://api.e-pay.et/v1/transactions/initialize', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.EPAY_SECRET_KEY}`,
    'ePay-Account': restaurant.epayAccountId, // acct_…
    'Content-Type': 'application/json',
    'x-idempotency-key': `order_${order.id}`,
  },
  body: JSON.stringify({
    amount: '1000.00',
    currencyCode: 'ETB',
    customerPhone: '+251911234567',
    merchantReference: `order_${order.id}`,
    productFeeAmount: '25.00', // your app fee for this payment
    returnUrl: `https://app.example.com/orders/${order.id}/complete`,
  }),
});

if (!res.ok) throw new Error(`ePay ${res.status}: ${await res.text()}`);
const { data } = await res.json();
import os

import requests

res = requests.post(
    "https://api.e-pay.et/v1/transactions/initialize",
    headers={
        "Authorization": f"Bearer {os.environ['EPAY_SECRET_KEY']}",
        "ePay-Account": restaurant.epay_account_id,  # acct_…
        "x-idempotency-key": f"order_{order.id}",
    },
    json={
        "amount": "1000.00",
        "currencyCode": "ETB",
        "customerPhone": "+251911234567",
        "merchantReference": f"order_{order.id}",
        "productFeeAmount": "25.00",  # your app fee for this payment
        "returnUrl": f"https://app.example.com/orders/{order.id}/complete",
    },
    timeout=30,
)
res.raise_for_status()
payment = res.json()["data"]
$ch = curl_init('https://api.e-pay.et/v1/transactions/initialize');
curl_setopt_array($ch, [
    CURLOPT_POST           => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER     => [
        'Authorization: Bearer ' . getenv('EPAY_SECRET_KEY'),
        'ePay-Account: ' . $restaurant['epay_account_id'], // acct_…
        'Content-Type: application/json',
        'x-idempotency-key: order_' . $order['id'],
    ],
    CURLOPT_POSTFIELDS     => json_encode([
        'amount'            => '1000.00',
        'currencyCode'      => 'ETB',
        'customerPhone'     => '+251911234567',
        'merchantReference' => 'order_' . $order['id'],
        'productFeeAmount'  => '25.00', // your app fee for this payment
        'returnUrl'         => 'https://app.example.com/orders/' . $order['id'] . '/complete',
    ]),
]);

$body   = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);

if ($status >= 300) throw new RuntimeException("ePay {$status}: {$body}");
$payment = json_decode($body, true)['data'];
body, _ := json.Marshal(map[string]string{
	"amount":            "1000.00",
	"currencyCode":      "ETB",
	"customerPhone":     "+251911234567",
	"merchantReference": "order_" + orderID,
	"productFeeAmount":  "25.00", // your app fee for this payment
	"returnUrl":         "https://app.example.com/orders/" + orderID + "/complete",
})

req, _ := http.NewRequestWithContext(ctx, http.MethodPost,
	"https://api.e-pay.et/v1/transactions/initialize", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+os.Getenv("EPAY_SECRET_KEY"))
req.Header.Set("ePay-Account", restaurant.EpayAccountID) // acct_…
req.Header.Set("Content-Type", "application/json")
req.Header.Set("x-idempotency-key", "order_"+orderID)

res, err := http.DefaultClient.Do(req)
if err != nil {
	return err
}
defer res.Body.Close()
if res.StatusCode >= 300 {
	return fmt.Errorf("ePay %d", res.StatusCode)
}
String json = """
    {
      "amount": "1000.00",
      "currencyCode": "ETB",
      "customerPhone": "+251911234567",
      "merchantReference": "order_%s",
      "productFeeAmount": "25.00",
      "returnUrl": "https://app.example.com/orders/%s/complete"
    }""".formatted(orderId, orderId);

HttpRequest request = HttpRequest.newBuilder(
        URI.create("https://api.e-pay.et/v1/transactions/initialize"))
    .header("Authorization", "Bearer " + System.getenv("EPAY_SECRET_KEY"))
    .header("ePay-Account", restaurant.getEpayAccountId()) // acct_…
    .header("Content-Type", "application/json")
    .header("x-idempotency-key", "order_" + orderId)
    .POST(HttpRequest.BodyPublishers.ofString(json))
    .build();

HttpResponse<String> response =
    HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());

Node.js SDK support is coming soon. Switch to for a working example in Node.js today.

Python SDK support is coming soon. Switch to for a working example in Python today.

PHP SDK support is coming soon. Switch to for a working example in PHP today.

Java SDK support is coming soon. Switch to for a working example in Java today.

Go SDK support is coming soon. Switch to for a working example in Go today.

Once the payment exists, retrieving it returns productFeeAmount and feePaidBy (merchant or platform).


Rules and errors

  • Amounts are strings with up to 2 decimals, e.g. "25.00".
  • The app fee can't be more than the payment allows. The error tells you the maximum.
  • Under platform pricing the app fee must be at least ePay's fee on the payment. The error tells you the minimum.
  • Without productFeeAmount, your default tiers for the payment's currency apply. No default for that currency means no app fee.

A rejected app fee returns 400 with a code:

{
  "status": "error",
  "data": {
    "code": "product_fee_too_low",
    "message": "The app fee must cover ePay's fee on this payment",
    "minimum": "15.75"
  }
}
codeMeaning
product_fees_not_enabledApp fees aren't available for your app. Contact ePay support.
product_fee_not_disclosedYour app wasn't approved to charge an app fee. Turn on Charges an app fee in the app details and submit the change for review.
product_fee_too_highThe app fee is more than allowed for this payment. See maximum.
product_fee_too_lowPlatform pricing only: the app fee doesn't cover ePay's fee. See minimum.
platform_pricing_unavailableYour app is on platform pricing, but platform pricing isn't available for it. Contact ePay support.

Refunds

By default you keep your app fee when a payment is refunded: the connected business refunds the customer from its own balance.

To give your app fee back, send refundProductFee: true with POST /v1/refunds. The default for each payment is the refund setting of the app fee it was priced with (off unless you turned it on in the Fees tab).

curl https://api.e-pay.et/v1/refunds \
  -X POST \
  -H "Authorization: Bearer sk_live_your_key_here" \
  -H "ePay-Account: acct_9Kd2mQ7xL4pR8sT1" \
  -H "Content-Type: application/json" \
  -H "x-idempotency-key: refund_order_123" \
  -d '{
    "reference": "PAB12CD3420261029",
    "reason": "Customer requested cancellation",
    "refundProductFee": true
  }'
  • The share of your app fee that matches the refunded amount is moved from your wallet back to the connected business.
  • Your platform balance must cover it. Otherwise the refund fails with 409 and code: "platform_balance_insufficient", and nothing is refunded.
  • Under platform pricing, any ePay refund fee is paid by your platform, not by the connected business.
  • You receive product_fee.refunded when the fee has been given back.

Refunding the 1,000 ETB + 50 ETB tip payment from the ePay pricing example, with refundProductFee: true:

  1. Platform to Business: You return 10.00 (your app fee)
  2. Business to Customer: Refunds 1,050.00 (to the customer)
Customer1,050.00 ETB backPlatform0.00 ETB kept

Without refundProductFee, the first step doesn't happen: the business funds the whole refund and you keep the 10.00.


Read your app fees

GET /v1/connect/product-fees · GET /v1/connect/product-fees/:id

Every payment with an app fee creates a product fee object. Read them with your own secret key — no ePay-Account header.

List app fees

GET /v1/connect/product-fees?client_id=cp_live_…&account_id=acct_…&limit=20&cursor=PF…

Newest first. The key's mode must match the client ID's mode.

raw HTTP

Nothing NestJS-specific here — this is the same Node.js client call.

Nothing Django-specific here — this is the same Python client call.

Nothing Flask-specific here — this is the same Python client call.

Nothing FastAPI-specific here — this is the same Python client call.

Nothing Laravel-specific here — this is the same PHP client call.

Nothing Spring Boot-specific here — this is the same Java client call.

curl "https://api.e-pay.et/v1/connect/product-fees?client_id=cp_live_your_client_id&account_id=acct_9Kd2mQ7xL4pR8sT1&limit=20" \
  -H "Authorization: Bearer sk_live_your_key_here"
async function* productFees(accountId?: string) {
  let cursor: string | null = null;
  do {
    const url = new URL('https://api.e-pay.et/v1/connect/product-fees');
    url.searchParams.set('client_id', process.env.EPAY_CLIENT_ID!);
    url.searchParams.set('limit', '100');
    if (accountId) url.searchParams.set('account_id', accountId);
    if (cursor) url.searchParams.set('cursor', cursor);

    const res = await fetch(url, {
      headers: { Authorization: `Bearer ${process.env.EPAY_SECRET_KEY}` },
    });
    if (!res.ok) throw new Error(`ePay ${res.status}: ${await res.text()}`);

    const { data } = await res.json();
    yield* data.data;
    cursor = data.next_cursor;
  } while (cursor);
}
import os

import requests


def product_fees(account_id=None):
    cursor = None
    while True:
        params = {"client_id": os.environ["EPAY_CLIENT_ID"], "limit": 100}
        if account_id:
            params["account_id"] = account_id
        if cursor:
            params["cursor"] = cursor
        res = requests.get(
            "https://api.e-pay.et/v1/connect/product-fees",
            headers={"Authorization": f"Bearer {os.environ['EPAY_SECRET_KEY']}"},
            params=params,
            timeout=30,
        )
        res.raise_for_status()
        page = res.json()["data"]
        yield from page["data"]
        cursor = page["next_cursor"]
        if not cursor:
            break
$cursor = null;
do {
    $query = http_build_query(array_filter([
        'client_id'  => getenv('EPAY_CLIENT_ID'),
        'account_id' => $accountId, // optional
        'limit'      => 100,
        'cursor'     => $cursor,
    ]));
    $ch = curl_init('https://api.e-pay.et/v1/connect/product-fees?' . $query);
    curl_setopt_array($ch, [
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER     => ['Authorization: Bearer ' . getenv('EPAY_SECRET_KEY')],
    ]);
    $page = json_decode(curl_exec($ch), true)['data'];
    curl_close($ch);

    foreach ($page['data'] as $fee) {
        handle_product_fee($fee);
    }
    $cursor = $page['next_cursor'];
} while ($cursor);
cursor := ""
for {
	q := url.Values{"client_id": {os.Getenv("EPAY_CLIENT_ID")}, "limit": {"100"}}
	if accountID != "" {
		q.Set("account_id", accountID)
	}
	if cursor != "" {
		q.Set("cursor", cursor)
	}
	req, _ := http.NewRequestWithContext(ctx, http.MethodGet,
		"https://api.e-pay.et/v1/connect/product-fees?"+q.Encode(), nil)
	req.Header.Set("Authorization", "Bearer "+os.Getenv("EPAY_SECRET_KEY"))

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		return err
	}
	var out struct {
		Data struct {
			Data       []map[string]any `json:"data"`
			NextCursor *string          `json:"next_cursor"`
		} `json:"data"`
	}
	err = json.NewDecoder(res.Body).Decode(&out)
	res.Body.Close()
	if err != nil {
		return err
	}
	handleProductFees(out.Data.Data)
	if out.Data.NextCursor == nil {
		return nil
	}
	cursor = *out.Data.NextCursor
}
String cursor = null;
do {
    String uri = "https://api.e-pay.et/v1/connect/product-fees?limit=100&client_id="
        + System.getenv("EPAY_CLIENT_ID")
        + (accountId != null ? "&account_id=" + accountId : "")
        + (cursor != null ? "&cursor=" + cursor : "");

    HttpRequest request = HttpRequest.newBuilder(URI.create(uri))
        .header("Authorization", "Bearer " + System.getenv("EPAY_SECRET_KEY"))
        .GET()
        .build();
    HttpResponse<String> response =
        HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());

    // Parse data.data (product fees) and data.next_cursor with your JSON library.
    cursor = handlePage(response.body());
} while (cursor != null);

Node.js SDK support is coming soon. Switch to for a working example in Node.js today.

Python SDK support is coming soon. Switch to for a working example in Python today.

PHP SDK support is coming soon. Switch to for a working example in PHP today.

Java SDK support is coming soon. Switch to for a working example in Java today.

Go SDK support is coming soon. Switch to for a working example in Go today.

Query Parameters

Prop

Type

Response

{
  "status": "success",
  "data": {
    "data": [
      {
        "id": "PF8K2D4M6Q1R3T5V",
        "object": "product_fee",
        "account_id": "acct_9Kd2mQ7xL4pR8sT1",
        "payment_reference": "PAB12CD3420261029",
        "currency": "ETB",
        "pricing_model": "platform",
        "amount": "25.00",
        "epay_fee_amount": "15.75",
        "net_amount": "9.25",
        "amount_refunded": "0.00",
        "refunded": false,
        "created_at": "2026-10-29T10:04:58.000Z"
      }
    ],
    "has_more": false,
    "next_cursor": null
  }
}

While has_more is true, pass next_cursor as cursor to get the next page.

Retrieve an app fee

GET /v1/connect/product-fees/:id

raw HTTP

Nothing NestJS-specific here — this is the same Node.js client call.

Nothing Django-specific here — this is the same Python client call.

Nothing Flask-specific here — this is the same Python client call.

Nothing FastAPI-specific here — this is the same Python client call.

Nothing Laravel-specific here — this is the same PHP client call.

Nothing Spring Boot-specific here — this is the same Java client call.

curl https://api.e-pay.et/v1/connect/product-fees/PF8K2D4M6Q1R3T5V \
  -H "Authorization: Bearer sk_live_your_key_here"
const res = await fetch(
  `https://api.e-pay.et/v1/connect/product-fees/${productFeeId}`,
  { headers: { Authorization: `Bearer ${process.env.EPAY_SECRET_KEY}` } },
);
if (!res.ok) throw new Error(`ePay ${res.status}: ${await res.text()}`);
const { data: productFee } = await res.json();
res = requests.get(
    f"https://api.e-pay.et/v1/connect/product-fees/{product_fee_id}",
    headers={"Authorization": f"Bearer {os.environ['EPAY_SECRET_KEY']}"},
    timeout=30,
)
res.raise_for_status()
product_fee = res.json()["data"]
$ch = curl_init('https://api.e-pay.et/v1/connect/product-fees/' . urlencode($productFeeId));
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER     => ['Authorization: Bearer ' . getenv('EPAY_SECRET_KEY')],
]);
$productFee = json_decode(curl_exec($ch), true)['data'];
curl_close($ch);
req, _ := http.NewRequestWithContext(ctx, http.MethodGet,
	"https://api.e-pay.et/v1/connect/product-fees/"+url.PathEscape(productFeeID), nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("EPAY_SECRET_KEY"))

res, err := http.DefaultClient.Do(req)
if err != nil {
	return err
}
defer res.Body.Close()
HttpRequest request = HttpRequest.newBuilder(
        URI.create("https://api.e-pay.et/v1/connect/product-fees/" + productFeeId))
    .header("Authorization", "Bearer " + System.getenv("EPAY_SECRET_KEY"))
    .GET()
    .build();

HttpResponse<String> response =
    HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());

Node.js SDK support is coming soon. Switch to for a working example in Node.js today.

Python SDK support is coming soon. Switch to for a working example in Python today.

PHP SDK support is coming soon. Switch to for a working example in PHP today.

Java SDK support is coming soon. Switch to for a working example in Java today.

Go SDK support is coming soon. Switch to for a working example in Go today.

200 OK with one product fee object in data (same shape as a list item).

The product fee object

Prop

Type

Errors

Statuserror / codeCause
400—client_id or account_id is unknown or belongs to another business (Unknown client_id / Unknown account_id), or cursor isn't an app fee ID from a previous page (Invalid cursor).
404—No app fee with that ID belongs to your app.

Webhooks

Your Connect webhook receives two app fee events. data is the product fee object.

EventWhen
product_fee.createdA payment with an app fee succeeded.
product_fee.refundedA refund gave your app fee back.
{
  "id": "evt_3d7f1a9c5e2b4d6f8a0c1e3b",
  "object": "event",
  "type": "product_fee.created",
  "account": "acct_9Kd2mQ7xL4pR8sT1",
  "livemode": true,
  "created": "2026-10-29T10:05:00.000Z",
  "data": {
    "id": "PF8K2D4M6Q1R3T5V",
    "object": "product_fee",
    "account_id": "acct_9Kd2mQ7xL4pR8sT1",
    "payment_reference": "PAB12CD3420261029",
    "currency": "ETB",
    "pricing_model": "platform",
    "amount": "25.00",
    "epay_fee_amount": "15.75",
    "net_amount": "9.25",
    "amount_refunded": "0.00",
    "refunded": false,
    "created_at": "2026-10-29T10:04:58.000Z"
  }
}

Changes and existing payments

Every change to your app fee or pricing model is a new version with a start date. A payment is priced with the versions in effect when it's created and keeps them: a later change, or a cancelled scheduled change, never re-prices a payment that already exists — including its refunds.


Next: Connected accounts

On this page