> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coinstack.net/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> The CoinStack API base URL is https://coinstack.net/api/v1. Authenticate with an API key sent as 'Authorization: Bearer sk_...' from a server, never from a browser. Every response is a JSON object with 'success' and 'response'. Amounts are strings; token amounts on quotes and payments are in the token's smallest unit. Fulfil an order when its checkout status is 'completed', not when the customer returns to success_url. Verify the CoinStack-Signature header on every webhook using the raw request body. The OpenAPI file is at https://docs.coinstack.net/openapi.json.

# Fees and settlement

> What a payment costs, where the money goes, and how to read the amounts.

## Settlement

A wallet is created for each merchant account when the account is set up. Every payment is settled in USDC to that wallet, whatever token and network the customer paid with.

* **Balance.** The **Overview** page of the dashboard shows it as **Wallet balance**.
* **Address.** The account's owner can see it under **Settings**, then **Settlement**. It is also the `recipient` on every quote and payment.
* **Withdrawals.** Only the owner of the merchant account can withdraw from the wallet.

## The fee

The CoinStack fee is 0.8% of each payment. It is taken out of the payment before it is settled. There are no setup or monthly fees.

## Network cost

Moving a payment from the customer's network to your wallet has a network cost. It is small on most networks and higher on Bitcoin and TRON. [List tokens](https://docs.coinstack.net/api-reference/tokens/list-tokens.md) returns the current estimate for each token as `cost`.

You choose who covers it for each network under **Settings**, then **Network cost**, in the dashboard:

* **Customer.** The cost is added to the amount the customer pays.
* **You.** The cost is taken out of what you receive.

By default, customers cover it on Bitcoin and TRON, and you cover it everywhere else.

## Reading the amounts

A checkout carries the totals for the whole order:

| Field | Meaning |
| - | - |
| `amount` | What you charged, in the checkout's `currency`. |
| `value` | The same amount in US dollars, fixed when the checkout was created. |
| `fee` | The CoinStack fee for the full amount, in US dollars. |
| `received` | The USDC that has reached your wallet from this checkout. |

Each payment carries its own breakdown:

| Field | Meaning |
| - | - |
| `amount` | What the customer sent, in the token's smallest unit. |
| `value` | What the customer sent, in US dollars. |
| `fee` | The CoinStack fee taken from this payment, in US dollars. |
| `cost` | The network cost of this payment, in US dollars. |
| `settled` | The USDC that reached your wallet. |

For a completed payment, `settled` is approximately `value` minus `fee` and `cost`.

### Example

A customer pays a 25 US dollar checkout with USDC on Base, where you cover the network cost.

| | |
| - | - |
| Customer sends | 25 USDC |
| `value` | 24.99375 |
| `fee` | 0.19995 |
| `cost` | 0.017368 |
| `settled` | 24.776432 |

`value` is slightly under 25 because it uses the market price of USDC at the time, which is rarely exactly one dollar.

## Withdrawing

Withdraw from the **Overview** page of the dashboard. You can withdraw to any supported token and network. Only the owner of a merchant account can withdraw.

Withdrawals are not available through the API.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.