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

# Credit and Billing

> Prepaid credit, the order fee, top-ups, and what happens when credit runs out.

AgentMall charges your organization a fee per placed order, paid from prepaid credit. The shopper pays the merchant for the goods with their own card. AgentMall adds nothing to the basket.

## The order fee

| What | Cost |
| - | - |
| Placed order, live key | \$0.50 |
| Failed order | Free |
| Order with a test key | Free |
| Search, product, cart, checkout | Free |

New organizations start with \$5 of credit, which covers 10 orders.

## When the fee is taken

The fee is taken when the shopper confirms on the `confirm_url`, just before the order is submitted to the merchant. Each order is charged once.

* The order is placed: the fee stays.
* The merchant did not accept the order (`failed`): the fee is refunded.
* The outcome is unknown (`commit_unknown`): the fee stays until AgentMall knows the outcome.

## When credit runs out

When your credit is below the fee, nothing is submitted. The shopper's confirm page shows the `insufficient_credit` message:

```json theme={null}
{
  "error": {
    "code": "insufficient_credit",
    "message": "Your organization does not have enough credit for the order fee. Nothing was placed. Top up in the console and try again."
  }
}
```

Top up, then call `complete_checkout` again with the same `review_hash` and `total` to get a new `confirm_url`. The checkout is still open and its review has not changed.

## Top up

On the console [Billing](https://console.getagentmall.com/billing) page, top up $10, $25, $50, or any amount from $5. Payment is on a Stripe page, and the credit appears when Stripe confirms the payment. The console shows your credit at the top right of every page.

The Billing page also lists every change to your credit (top-ups, order fees, refunds) and this UTC month's fees, order value and search count. See [Console](https://agentmall.mintlify.site/surfaces/console.md).


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