# Build with AI (/api/ai)
Two ways AI works with Xtopay: **coding assistants** that write your
integration (Claude Code, Cursor, Copilot, Codex), and **AI assistants**
that work with your account itself (your balance, payments, links and
invoices) through Xtopay's **MCP server**.
## For coding assistants [#for-coding-assistants]
### The docs, as plain text [#the-docs-as-plain-text]
| Address | What it is |
| --- | --- |
| [`docs.xtopay.co/llms.txt`](https://docs.xtopay.co/llms.txt) | Every page, with a line on each |
| [`docs.xtopay.co/llms-full.txt`](https://docs.xtopay.co/llms-full.txt) | All the docs in one file |
| Any page's address with `.md` | That page as Markdown, like [`/api/checkouts.md`](https://docs.xtopay.co/api/checkouts.md) |
Paste one into your assistant's chat, or point it at them.
### The Xtopay skill [#the-xtopay-skill]
A skill teaches your assistant how to integrate Xtopay well: the checkout
flow, checking webhook signatures, retrying with an `Idempotency-Key`, test
numbers, and a checklist to finish with (keys only on the server, orders
fulfilled from the webhook, never from the redirect).
For **Claude Code**, in your project:
```bash
mkdir -p .claude/skills/xtopay
curl -fsSL https://docs.xtopay.co/skills/xtopay/SKILL.md \
-o .claude/skills/xtopay/SKILL.md
```
Claude Code picks it up on its own when you work on payments. For
**Cursor**, save the same file as `.cursor/rules/xtopay.mdc`; for
**Copilot**, **Codex** and others, add it to your project's
`AGENTS.md` or `.github/copilot-instructions.md`.
## The MCP server [#the-mcp-server]
The MCP server reads your account, and makes payment links, invoices and
checkouts. It never moves money out of your business or charges anyone:
transfers, payouts and direct charges stay with your server and your
dashboard.
Connect an AI assistant to your Xtopay account, then ask it things like:
- "How much came in this week, and from how many customers?"
- "Why did Kofi's payment this morning fail?"
- "Make a GH₵250 payment link for the catering deposit."
- "Draft an invoice for Ama Serwaa: 4 trays of kenkey and fish at GH₵25,
due on Friday." Then: "Send it."
- "When did my last payout land?"
It's at `https://api.xtopay.co/mcp` (Streamable HTTP). Connect by
**signing in with Xtopay**, or with your **secret key** as a bearer token.
### Connect it [#connect-it]
**claude.ai and ChatGPT**: add a custom connector (in Claude, **Settings →
Connectors → Add custom connector**; in ChatGPT, a connector in developer
mode) with the address `https://api.xtopay.co/mcp`. It sends you to Xtopay
to sign in: you see what it's asking for, choose **test** or **live** data,
and connect. The owner, admins and developers can connect apps, for the
business they're signed in to.
Connected apps are listed in the dashboard under **Developers → AI apps**,
where anyone who can connect them can disconnect them. Connecting one to
live data asks for a code from your authenticator app, and the owner is
emailed.
The rest connect with a secret key. A test key works with test data only;
start with it.
**Claude Code**
```bash
claude mcp add --transport http xtopay https://api.xtopay.co/mcp \
--header "Authorization: Bearer sk_test_…"
```
**Cursor**, in `.cursor/mcp.json` (or your user one):
```json
{
"mcpServers": {
"xtopay": {
"url": "https://api.xtopay.co/mcp",
"headers": { "Authorization": "Bearer sk_test_…" }
}
}
}
```
**Claude Desktop**, in `claude_desktop_config.json`, through
[`mcp-remote`](https://www.npmjs.com/package/mcp-remote) (it needs Node.js):
```json
{
"mcpServers": {
"xtopay": {
"command": "npx",
"args": [
"mcp-remote",
"https://api.xtopay.co/mcp",
"--header",
"Authorization:${XTOPAY_AUTH}"
],
"env": { "XTOPAY_AUTH": "Bearer sk_test_…" }
}
}
}
```
### Tools [#tools]
| Tool | What it does |
| --- | --- |
| `get_business` | Which business and mode the key is for |
| `get_balance` | Available and pending balance |
| `list_payments`, `get_payment` | Payments, by status and dates; one by its reference, with why it failed |
| `list_customers` | Your customers, searchable |
| `list_payment_links`, `list_invoices`, `get_invoice` | Your links and invoices |
| `list_payouts`, `list_transfers`, `list_subscriptions` | Money paid out and sent, and subscriptions (reading only) |
| `create_payment_link`, `set_payment_link_status` | Make a link; pause or resume one |
| `create_invoice`, `send_invoice` | Draft an invoice; send it to the customer |
| `create_checkout` | A one-off checkout to pay, with its address |
### How it keeps your account safe [#how-it-keeps-your-account-safe]
- **It's your key, or your sign-in.** Every tool is a call to the API in
your mode, within its limits, and each call is in your request log under
Developers. With a key, its [IP allowlist](/api/authentication) applies,
and rolling the key stops the connection at once. An app connected by
signing in acts as the person who connected it, only while they're a
developer, admin or owner on the team; disconnecting it stops it at once,
and its access only works with the MCP server's tools, never the rest of
the API.
- **Nothing moves money out.** No tool sends transfers, payouts or charges.
- **Asking twice makes one.** A link, invoice or checkout asked for twice
(an assistant retrying) gets the first one back.
- **You approve.** Assistants ask you before using a tool that changes
anything. Sending an invoice reaches your customer, so it says so.
- Keep the key in your assistant's settings on your own computer, and use
a test key unless you need your real figures.
# Authentication (/api/authentication)
Send your **secret key** as a bearer token on every request:
```bash
curl https://api.xtopay.co/v1/payments \
-H "Authorization: Bearer sk_test_…"
```
## Keys [#keys]
Each business has two pairs of keys, in the dashboard's **Developers** page:
| Key | Starts with | Where it goes |
| --- | --- | --- |
| Test secret key | `sk_test_` | Your server, while you build. [No money moves](/api/testing) |
| Live secret key | `sk_live_` | Your server, to take real payments |
| Publishable keys | `pk_test_`, `pk_live_` | Safe in a browser or app. They identify your business, and can't read or change anything |
A secret key is shown in full **once**, when it's made (**Create**) or
rolled. After that the dashboard shows only its last characters, and Xtopay
keeps only a hash of it.
## Which business a key is for [#which-business-a-key-is-for]
Every business has a **business ID**: 8 digits, like `48271935`, that never
changes. It's in the dashboard (**Settings → Business**), and on every
payment, payout and webhook as `business_id`. To check a key works, and is
the one you meant:
```bash
curl https://api.xtopay.co/v1/business \
-H "Authorization: Bearer sk_test_…"
```
```json
{
"success": true,
"data": {
"business_id": "48271935",
"name": "Nana's Kitchen",
"username": "nanaskitchen",
"pay_url": "https://xtopay.me/nanaskitchen",
"verified": true,
"mode": "test"
}
}
```
The last digit of a business ID is a check digit (the Luhn algorithm, as on
card numbers), so you can catch a mistyped one before you use it.
## Keeping keys secret [#keeping-keys-secret]
- Keep secret keys on your server, in environment variables. Never put them
in a website, a mobile app or a code repository.
- **Roll** a key from **Developers** if it might have leaked. The old key
stops working straight away.
- The owner, admins and developers can see and roll keys. Viewers can't.
- Making or rolling a **live** secret key, and changing any key's IP
allowlist, needs [two-step sign-in](/guides/two-step-sign-in) on, and
asks for a code from the authenticator app if one wasn't entered in the
last 10 minutes.
A request with a missing, wrong or rolled key gets `401` with the code
`unauthorized`.
## IP allowlists [#ip-allowlists]
Each secret key can have a list of the addresses requests with it may come
from: your servers' public IPs, or ranges like `41.66.12.0/24` (up to 20).
Set it from the key's **Allowed IPs** in **Developers**.
- With a list, a request from anywhere else is refused with `403
forbidden`, and the message names the address it came from.
- With no list, the key works from any address. **Live direct charges and
transfers need a list.**
- Ranges can't be wider than `/8` (IPv4) or `/32` (IPv6).
If your server is behind a proxy or NAT, list the address the internet sees,
not its private one.
## Rate limits [#rate-limits]
Each key can make **120 requests a minute**, and direct charges have their
own limits (see [Direct charges](/api/charges#live-charges)). Past a limit you
get `429 rate_limited`, with a `Retry-After` header saying how many seconds
to wait.
## Watching your keys [#watching-your-keys]
- **The request log**: every request made with your keys in the last 30
days, refused ones too, with its answer, the address it came from and
how long it took. It's at the bottom of **Developers**; switch on
**Refused and failed only** to see what's being turned away.
- **Owner emails**: the business's owner gets an email whenever a live
secret key is made or rolled, or a key's IP allowlist changes, with who
did it. If it wasn't you, roll the key.
# Direct charges (/api/charges)
Direct charges work with test keys today. Live charges need your business
verified, an IP allowlist on your live key, and MoMo prompts switched on
for Xtopay by our payment partner; until then a live charge answers
`503 unavailable`.
A direct charge sends a MoMo PIN prompt straight to the customer's phone, for
an amount you set. Use it where the customer is already on their phone and
you know their number: a **USSD menu**, a mobile app, an agent's till, a
subscription they asked for.
There's no checkout page and no one-time code: the customer's **PIN is the
check**. Nothing is taken unless they approve the prompt on their own phone.
## Charge a number [#charge-a-number]
```bash tab="cURL"
curl https://api.xtopay.co/v1/charges \
-H "Authorization: Bearer sk_test_…" \
-H "Idempotency-Key: session-8812" \
-H "Content-Type: application/json" \
-d '{
"amount": 25,
"phone": "024 400 1234",
"description": "Airtime top-up",
"client_reference": "session-8812"
}'
```
```js tab="Node.js"
const res = await fetch("https://api.xtopay.co/v1/charges", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.XTOPAY_SECRET_KEY}`,
"Idempotency-Key": sessionId,
"Content-Type": "application/json",
},
body: JSON.stringify({
amount: 25,
phone: msisdn,
description: "Airtime top-up",
client_reference: sessionId,
}),
});
const { success, data, message } = await res.json();
if (!success) throw new Error(message);
// data.status is "pending": tell the customer to approve the prompt.
```
```python tab="Python"
import os
import requests
res = requests.post(
"https://api.xtopay.co/v1/charges",
headers={
"Authorization": f"Bearer {os.environ['XTOPAY_SECRET_KEY']}",
"Idempotency-Key": session_id,
},
json={
"amount": 25,
"phone": msisdn,
"description": "Airtime top-up",
"client_reference": session_id,
},
)
body = res.json()
if not body["success"]:
raise Exception(body["message"])
```
```php tab="PHP"
$ch = curl_init("https://api.xtopay.co/v1/charges");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("XTOPAY_SECRET_KEY"),
"Idempotency-Key: " . $sessionId,
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"amount" => 25,
"phone" => $msisdn,
"description" => "Airtime top-up",
"client_reference" => $sessionId,
]),
]);
$body = json_decode(curl_exec($ch), true);
if (!$body["success"]) throw new Exception($body["message"]);
```
It answers with the [payment](/api/payments), `pending` while the prompt is
on the customer's phone:
```json title="201 Created"
{
"success": true,
"data": {
"reference": "XTP-P23981GGX74F",
"client_reference": "session-8812",
"mode": "test",
"amount": 25,
"currency": "GHS",
"status": "pending",
"method": "mtn",
"customer": { "name": "MoMo customer", "phone": "233244001234", "email": null },
"description": "Airtime top-up",
"source": { "type": "charge", "id": null, "name": "Airtime top-up" },
"metadata": {},
"created_at": "2026-10-24T15:24:10Z",
"paid_at": null
}
}
```
## Finding out how it ended [#finding-out-how-it-ended]
The customer has a little while to answer the prompt. Then:
- **A webhook**, `payment.successful` or `payment.failed`, goes to your
[endpoints](/api/webhooks). This is the way to rely on.
- **Or ask:** `GET /v1/payments/{reference}`. A pending charge is checked
with the network when you ask (at most every 5 seconds).
A charge that isn't approved within 30 minutes fails. If the network later
says it was paid, it becomes successful and you get the webhook then.
## Live charges [#live-charges]
Direct charges skip the checkout page, so a leaked key could send prompts to
anyone. Live charges need:
1. **A verified business.** See [Verify your business](/guides/verify-your-business).
2. **An IP allowlist on your live key**, listing your servers' public
addresses. Requests from anywhere else are refused. See
[Authentication](/api/authentication#ip-allowlists).
Each number can be charged **3 times in 10 minutes** per business, enough for
a retry, not enough to flood someone's phone. Each key can make **30 charges
a minute**. Past either, you get `429` with `Retry-After`.
Live charges are real payments: they show in your dashboard and balance like
any other. Test charges never do.
## Testing [#testing]
With a test key, no prompt is sent and no money moves. A test charge
answers itself a few seconds later: **approved**, unless the number ends in
**000**, which **declines**. Its webhooks are marked `"test": true`.
# Checkouts (/api/checkouts)
Checkouts work today, with test and live keys. Every Xtopay pay page uses
the same checkout: your customer sees the same thing either way.
Card payments are coming soon. For now a checkout offers Mobile Money
only: `methods` with only `card` is refused, and `card` in a list is left
out.
A checkout is what's to be paid: an amount, what it's for and, if you know
them, who's paying. Your customer opens its `url` (`pay.xtopay.co/`) and
chooses how to pay: **Mobile Money** (a PIN prompt on their phone) or a
**bank card** (on our payment partner's secure page). When it's paid, they
go back to your `callback_url`.
## Create a checkout [#create-a-checkout]
```bash tab="cURL"
curl https://api.xtopay.co/v1/checkouts \
-H "Authorization: Bearer sk_test_…" \
-H "Content-Type: application/json" \
-d '{
"amount": 350,
"description": "Jollof party pack",
"reference": "order_1042",
"callback_url": "https://yourshop.com/thanks"
}'
```
```js tab="Node.js"
const res = await fetch("https://api.xtopay.co/v1/checkouts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.XTOPAY_SECRET_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
amount: 350,
description: "Jollof party pack",
reference: "order_1042",
callback_url: "https://yourshop.com/thanks",
}),
});
const { success, data, message } = await res.json();
if (!success) throw new Error(message);
// Send your customer to data.url
```
```python tab="Python"
import os
import requests
res = requests.post(
"https://api.xtopay.co/v1/checkouts",
headers={"Authorization": f"Bearer {os.environ['XTOPAY_SECRET_KEY']}"},
json={
"amount": 350,
"description": "Jollof party pack",
"reference": "order_1042",
"callback_url": "https://yourshop.com/thanks",
},
)
body = res.json()
if not body["success"]:
raise Exception(body["message"])
checkout_url = body["data"]["url"]
```
```php tab="PHP"
$ch = curl_init("https://api.xtopay.co/v1/checkouts");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("XTOPAY_SECRET_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"amount" => 350,
"description" => "Jollof party pack",
"reference" => "order_1042",
"callback_url" => "https://yourshop.com/thanks",
]),
]);
$body = json_decode(curl_exec($ch), true);
if (!$body["success"]) throw new Exception($body["message"]);
header("Location: " . $body["data"]["url"]);
```
It answers with the checkout:
```json title="201 Created"
{
"success": true,
"data": {
"id": "chk_8f3k2m9q4z7c1v5xw0bn",
"url": "https://pay.xtopay.co/chk_8f3k2m9q4z7c1v5xw0bn",
"mode": "test",
"amount": 350,
"currency": "GHS",
"description": "Jollof party pack",
"reference": "order_1042",
"status": "pending",
"payment": null,
"customer": { "name": null, "email": null, "phone": null },
"methods": null,
"callback_url": "https://yourshop.com/thanks",
"metadata": {},
"expires_at": "2026-10-26T09:15:00Z",
"created_at": "2026-10-25T09:15:00Z"
}
}
```
Send your customer to `url`. It works on phones and computers; there's
nothing to embed. A reference used before gets `409 taken`.
## The checkout's status [#the-checkouts-status]
| Status | Meaning |
| --- | --- |
| `pending` | Waiting for your customer to pay |
| `paid` | Paid. `payment` is the payment's reference (`XTP-…`) |
| `expired` | Not paid within 24 hours. Create a new one if they still want to pay |
A customer can try more than once on the same checkout, say if their first
MoMo prompt timed out, or to switch to a card. While a try is still waiting
they can't start another for a couple of minutes, and once one succeeds the
checkout is paid and takes no more.
## When your customer comes back [#when-your-customer-comes-back]
Once it's paid, they go to your `callback_url` with the checkout's ID and
your reference:
```text
https://yourshop.com/thanks?checkout=chk_8f3k2m9q4z7c1v5xw0bn&reference=order_1042
```
If they paid by card on our partner's page, they see their receipt first,
with a button back to you. **Back** on the checkout also goes to your
`callback_url`.
Anyone can open that URL. Before you hand anything over, get the checkout
(or wait for the [payment.successful webhook](/api/webhooks)) and check
that its status is `paid` and its amount is what you expect.
Its payment is an ordinary [payment](/api/payments), with `checkout` set to
the checkout's ID, `source.type` `checkout`, and your `metadata`.
## Get a checkout [#get-a-checkout]
```bash
curl https://api.xtopay.co/v1/checkouts/chk_8f3k2m9q4z7c1v5xw0bn \
-H "Authorization: Bearer sk_test_…"
```
## List checkouts, or find one by your reference [#list-checkouts-or-find-one-by-your-reference]
Newest first: `reference`, `status`, `page` and `page_size` (up to 100).
With `reference`, it's at most one: useful after a retry gets `409 taken`.
```bash
curl "https://api.xtopay.co/v1/checkouts?reference=order_1042" \
-H "Authorization: Bearer sk_test_…"
```
## In test mode [#in-test-mode]
A test key's checkouts say **Test mode**, and both ways to pay go to the
test provider's page, where you approve or decline the payment yourself.
See [Testing](/api/testing#test-checkouts).
# Customers (/api/customers)
Customers work through the API today, with test and live keys.
A customer is someone who has paid the business, known by their phone
number. They're the same as the dashboard's **Customers**. A live key sees
customers with live payments; a test key, customers with test payments.
Someone whose payments all failed isn't listed.
## The customer object [#the-customer-object]
```json
{
"id": "cus_5l9n3t7qpa2d6f8g1rsy",
"name": "Kofi Boateng",
"phone": "233244001234",
"email": "kofi@example.com",
"payments": 7,
"total_paid": 1250,
"first_paid_at": "2026-09-02T12:41:08Z",
"last_paid_at": "2026-10-24T09:16:41Z"
}
```
`total_paid` is in cedis, less refunds. The name and email are the ones the
customer gave most recently.
## List customers [#list-customers]
Most recent payers first: `search` (a name, an email, or part of a phone
number), `page` and `page_size` (up to 100).
```bash
curl "https://api.xtopay.co/v1/customers?search=kofi" \
-H "Authorization: Bearer sk_live_…"
```
## Get a customer [#get-a-customer]
Their payments are `GET /v1/payments`: each [payment](/api/payments) carries
the customer's name, phone and email.
# Errors and retries (/api/errors)
When a request fails, `success` is `false`, `message` says what's wrong in
words you can show a person, and `code` says what kind of failure it is.
```json title="400 Bad Request"
{
"success": false,
"message": "Enter an amount of at least GH₵1",
"code": "invalid"
}
```
## Codes [#codes]
| HTTP | `code` | What it means | What to do |
| --- | --- | --- | --- |
| 400 | `invalid` | Something in the request isn't right | Fix it; `message` says what |
| 401 | `unauthorized` | The key is missing, wrong or rolled | Check your secret key |
| 403 | `forbidden` | Not allowed: the request came from an address that isn't on the key's allowlist, a live charge or transfer needs a verified business or an allowlist, or sending money is switched off | `message` says which |
| 409 | `not_verified` | Your business isn't verified yet, so it can't take live payments (checkouts, charges and payments on your pages). Test keys and test mode work meanwhile | Verify your business in the dashboard's Settings |
| 404 | `not_found` | There's no such checkout, payment, transfer or refund | Check the ID or reference |
| 409 | `taken` | That `client_reference` (or a checkout's `reference`) is already used, or an `Idempotency-Key` was used for a different request | Use a new one, or look up what you made before |
| 400 | `insufficient_balance` | There isn't enough available for a transfer (with its fee) or a refund | Wait for more payments to settle, or send less |
| 400 | `limit_exceeded` | A transfer is over your business's limit per transfer, or would go over its limit per day | Send less, or ask your owner to change the limits; `message` says which |
| 429 | `rate_limited` | Too many requests | Wait for the seconds in the `Retry-After` header |
| 500 | `server_error` | Something went wrong on our side | Retry after a moment |
| 502, 503 | `unavailable` | The payment network didn't answer, or something isn't switched on yet | Retry later; `message` says which |
## Retrying safely [#retrying-safely]
Networks fail: a request can time out after Xtopay has done the work. Retrying
is safe when you can't charge twice:
- **Send an `Idempotency-Key`** header on every POST: a value you make once
per action, like an order or USSD session number. A retry with the same
key within 24 hours gets the first answer back, marked
`Idempotent-Replayed: true`, and nothing happens twice. Only successful
answers are kept: if the first request was refused, put it right and send
it again with the same key.
- **Give charges and transfers a `client_reference`.** A second one with
the same one gets `409 taken`; find the first with
`GET /v1/payments?client_reference=…` or
`GET /v1/transfers?client_reference=…`.
Wait a little longer between each retry (1 second, then 2, then 4), and give
up after a few.
# The Xtopay API (/api)
[Checkouts](/api/checkouts) (a payment page for an amount you set),
[direct charges](/api/charges) (a MoMo prompt from your server),
[payment links](/api/payment-links), [payment pages](/api/payment-pages),
[invoices](/api/invoices), [payments](/api/payments),
[customers](/api/customers), [subscriptions](/api/subscriptions),
[transfers](/api/transfers) (sending money to wallets and bank accounts),
[payouts](/api/payouts), [webhooks](/api/webhooks) and the
[MCP server](/api/ai) for AI assistants work today, with
[IP allowlists](/api/authentication#ip-allowlists) on your keys. Refunds
are still the design.
With the API, your server creates a **checkout** for an amount. Your customer
pays on Xtopay's checkout page, by MoMo (cards are coming), in your colours. Xtopay tells
your server it's paid with a **webhook**, and you check the payment before
you hand over the goods.
## How a payment flows [#how-a-payment-flows]
**Create a checkout** from your server with the amount and your own
reference. You get back its `url`.
**Send your customer to the `url`.** They pay on `pay.xtopay.co`, then come
back to your `callback_url`.
**Get the `payment.successful` webhook**, and check the payment with
`GET /v1/payments/{reference}` before you fulfil the order. Never trust the
redirect alone: anyone can open a URL.
## Basics [#basics]
| | |
| --- | --- |
| Base URL | `https://api.xtopay.co/v1` |
| Authentication | `Authorization: Bearer sk_live_…` (see [Authentication](/api/authentication)) |
| Format | JSON in, JSON out. Field names are `snake_case` |
| Amounts | In cedis, as numbers with up to 2 decimals: `350` is GH₵350.00, `12.5` is GH₵12.50 |
| Currency | `GHS` |
| Times | ISO 8601, in UTC (Ghana's time all year) |
| IDs | Prefixed by type: `lnk_` payment links, `pgs_` payment pages, `ivc_` invoices, `cus_` customers, `XTP-` payment references, `XTP-TR-` transfers, `XTP-PO-` payouts, `evt_` events |
## Responses [#responses]
Every response has the same envelope. `success` says whether it worked;
`data` holds the result; lists add `total`.
```json title="A successful response"
{
"success": true,
"data": {
"id": "chk_8f3k2m9q",
"status": "pending"
}
}
```
```json title="A failed one"
{
"success": false,
"message": "Enter an amount of at least GH₵1",
"code": "invalid"
}
```
`message` is written to show to a person; `code` is for your code to act on.
See [Errors](/api/errors).
Test and live keys, and keeping them secret.
Create a checkout and send your customer to it.
Get told when payments succeed, fail or are refunded.
Try everything with test keys. No money moves.
# Invoices (/api/invoices)
Invoices work through the API today, with test and live keys.
An invoice bills one customer for line items, with a discount and taxes if
you like, and is paid in full on its page, `xtopay.me/i/`. They're
the same invoices as the dashboard's **Invoices** (see the
[guide](/guides/invoices)). Paying one is an ordinary
[payment](/api/payments), with `source.type` `invoice`.
A test key makes **test invoices**: numbered on their own (INV-0001 on),
paid through the test provider, kept out of the dashboard, and **never
emailed**, not even to the customer. Live ones are emailed when sent.
## The invoice object [#the-invoice-object]
```json
{
"id": "ivc_9j3h5k7vbc2d6f8g1rsy",
"number": "INV-0042",
"reference": "7K2M9QH4TZ3B",
"url": "https://xtopay.me/i/7K2M9QH4TZ3B",
"mode": "live",
"status": "open",
"overdue": false,
"customer": { "name": "Ama Serwaa", "email": "ama@example.com", "phone": null },
"items": [
{ "description": "Kenkey and fish", "quantity": 4, "unit_price": 25, "amount": 100 }
],
"discount": { "type": "percent", "value": 10 },
"taxes": [{ "name": "VAT", "rate": 15, "amount": 13.5 }],
"subtotal": 100,
"discount_amount": 10,
"tax_amount": 13.5,
"total": 103.5,
"notes": "Thank you!",
"issue_date": "2026-10-24",
"due_date": "2026-10-31",
"auto_remind": true,
"sent_at": "2026-10-24T09:16:10Z",
"reminded_at": null,
"paid_at": null,
"paid_outside": false,
"paid_note": null,
"voided_at": null,
"payment_reference": null,
"created_at": "2026-10-24T09:16:10Z"
}
```
| `status` | |
| --- | --- |
| `draft` | Not sent yet. Its page doesn't exist |
| `open` | Sent, waiting to be paid. `overdue` is true once the due date has passed |
| `paid` | Paid on its page (`payment_reference` is the payment), or marked paid in the dashboard (`paid_outside`) |
| `void` | Cancelled; it can't be paid |
## Make an invoice [#make-an-invoice]
```bash
curl https://api.xtopay.co/v1/invoices \
-H "Authorization: Bearer sk_test_…" \
-H "Content-Type: application/json" \
-d '{
"customer": { "name": "Ama Serwaa", "email": "ama@example.com" },
"items": [{ "description": "Kenkey and fish", "quantity": 4, "unit_price": 25 }],
"due_date": "2026-10-31",
"send": true
}'
```
Sending answers with the invoice and `emailed`: whether the customer was
emailed (they need an email, and test invoices never are).
## Send, remind and void [#send-remind-and-void]
Sends a draft (it becomes `open`), or sends an open one again.
Emails the customer a reminder: open invoices with an email, 3 a day at most.
Cancels a draft or open invoice. A paid one can't be voided.
## Change an invoice [#change-an-invoice]
Drafts and open invoices can change: send only what changes. The totals are
worked out again.
## Get, list and delete invoices [#get-list-and-delete-invoices]
Newest first: `status` (`draft`, `open`, `overdue`, `paid` or `void`),
`search` (a customer's name or email, or a number like `INV-0042`), `page`
and `page_size`.
Only drafts can be deleted; void a sent invoice instead, so there's a record
of it.
## Hearing it's paid [#hearing-its-paid]
Paying an invoice is a payment: the `payment.successful`
[webhook](/api/webhooks) comes with `source.type` `invoice` and the
invoice's `id` in `source.id`.
# Payment links (/api/payment-links)
Payment links work through the API today, with test and live keys.
A payment link is a page at `xtopay.me//` where customers pay
by MoMo or card: a set price, or any amount. They're the same links as in
the dashboard's **Payment links** (see the [guide](/guides/payment-links)).
Payments through them are ordinary [payments](/api/payments), with
`source.type` `link` and the link's `id`.
A test key makes **test links**, at `xtopay.me/test//`.
They pay through the test provider (you approve or decline the payment),
don't appear in the dashboard, and email nobody. A live key makes live
links, which the dashboard shows and the business is emailed about. Each
key only sees its own kind. See [Testing](/api/testing#test-links-pages-and-invoices).
## The payment link object [#the-payment-link-object]
```json
{
"id": "lnk_8f3k2m9q4z7c1v5xw0bn",
"url": "https://xtopay.me/nanaskitchen/party-pack",
"mode": "live",
"slug": "party-pack",
"title": "Jollof party pack",
"description": "Serves 10. Collect from Osu.",
"amount_type": "fixed",
"amount": 50,
"min_amount": null,
"form": {
"email": "optional",
"note": true,
"note_label": "Delivery address",
"questions": [
{
"id": "k3v9x2m4q8zc",
"label": "Pick-up or delivery?",
"type": "choice",
"options": ["Pick-up", "Delivery"],
"required": true
}
]
},
"collect_email": false,
"collect_note": true,
"status": "active",
"payments": 12,
"collected": 600,
"created_at": "2026-10-24T09:16:10Z"
}
```
| Field | |
| --- | --- |
| `url` | Where customers pay. Share it, or turn it into a QR code |
| `amount_type` | `fixed` (customers pay `amount`) or `open` (they type an amount, at least `min_amount` if set) |
| `form` | What its page asks for besides the phone (always asked). `name`: `required` (the default), `optional` or `skip`; without one, the customer gets the name their MoMo number is registered to. `email`: `optional`, `required` or `skip`. `note`: a box for a note, under `note_label` (empty for "Note"). `questions`: the business's own, each `text`, `number` or `choice` (with `options`), and `required` or not. Their answers come with each payment as `answers` |
| `collect_email`, `collect_note` | From `form`, as links had them before it: `email` is `required`, and `note` is on |
| `status` | `active`, or `paused` (not taking payments) |
| `payments`, `collected` | Successful payments through it, and what they came to (less refunds) |
## Make a link [#make-a-link]
```bash
curl https://api.xtopay.co/v1/payment_links \
-H "Authorization: Bearer sk_test_…" \
-H "Content-Type: application/json" \
-d '{
"title": "Jollof party pack",
"slug": "party-pack",
"amount_type": "fixed",
"amount": 50
}'
```
It answers `201` with the link. An address already used by a link or page
gets `409 taken`.
## Change, pause or resume a link [#change-pause-or-resume-a-link]
Send only what changes: any of the fields above, and `status` (`active` or
`paused`) to pause or resume it. Customers who already have the link see the
change straight away.
```bash
curl -X PATCH https://api.xtopay.co/v1/payment_links/lnk_8f3k2m9q4z7c1v5xw0bn \
-H "Authorization: Bearer sk_test_…" \
-H "Content-Type: application/json" \
-d '{ "amount": 60, "status": "paused" }'
```
## Get and list links [#get-and-list-links]
Newest first: `status`, `page` and `page_size` (up to 100).
## Delete a link [#delete-a-link]
```json title="200 OK"
{ "success": true, "data": { "id": "lnk_8f3k2m9q4z7c1v5xw0bn", "deleted": true } }
```
A deleted link stops taking payments and leaves the dashboard. Its payments
stay, and its address stays reserved: anyone opening it is told it was
removed, never sent to someone else's.
# Payment pages (/api/payment-pages)
Payment pages work through the API today, with test and live keys.
A payment page sells products, sells event tickets, or takes donations, at
`xtopay.me//`. They're the same pages as the dashboard's
**Payment pages** (see the [guide](/guides/payment-pages)). As with
[links](/api/payment-links), a test key makes **test pages** at
`xtopay.me/test//`, paid through the test provider and kept
out of the dashboard; their tickets and receipts email nobody.
## The payment page object [#the-payment-page-object]
```json
{
"id": "pgs_2d6f8g1rsy7k3m9q4z7c",
"url": "https://xtopay.me/nanaskitchen/tasting",
"mode": "live",
"kind": "event",
"slug": "tasting",
"title": "Tasting night",
"description": "Six dishes, one evening.",
"image_id": null,
"image_url": null,
"status": "active",
"event": {
"starts_at": "2027-01-15T18:00:00Z",
"ends_at": null,
"venue": "Osu, Accra"
},
"donation": null,
"items": [
{
"id": "itm_4p8q2x6wmn5l9n3t7qpa",
"name": "Regular",
"description": null,
"price": 100,
"image_id": null,
"image_url": null,
"stock": 50,
"sold": 12
}
],
"questions": [
{ "id": "a1b2c3d4e5f6", "label": "Any allergies?", "type": "text", "required": false }
],
"collect_email": true,
"orders": 9,
"collected": 1200,
"created_at": "2026-10-24T09:16:10Z"
}
```
| `kind` | What it needs |
| --- | --- |
| `products` | At least one item in `items` (name, `price` in cedis, and `stock`, or null for no limit) |
| `event` | `event` (`starts_at`, `venue`, and `ends_at` if you like) and at least one kind of ticket in `items`. Events always collect an email: tickets go there |
| `donation` | `donation`: suggested `amounts`, `any_amount` (let people give what they like), `min_amount` and a `goal`, all in cedis |
`questions` (up to 10) are asked at checkout: `type` is `text`, `number` or
`choice` (with 2 to 20 `options`). Pictures are added in the dashboard; a page
made through the API can use an `image_id` the business already uploaded.
## Make a page [#make-a-page]
```bash
curl https://api.xtopay.co/v1/payment_pages \
-H "Authorization: Bearer sk_test_…" \
-H "Content-Type: application/json" \
-d '{
"kind": "event",
"title": "Tasting night",
"slug": "tasting",
"event": { "starts_at": "2027-01-15T18:00:00Z", "venue": "Osu, Accra" },
"items": [{ "name": "Regular", "price": 100, "stock": 50 }]
}'
```
A page's `kind` can't change after it's made.
## Change, pause or resume a page [#change-pause-or-resume-a-page]
Send only what changes, and `status` (`active` or `paused`) to pause or
resume it. `items` replaces the list: send each item you're keeping with its
`id` (its stock can't go below what's sold), add new ones without one, and
any left out come off the page (kept for the orders that bought them).
## Get, list and delete pages [#get-list-and-delete-pages]
Newest first: `kind`, `status`, `page` and `page_size`.
A deleted page stops selling; its orders, tickets and address stay.
## Orders [#orders]
The page's paid orders, newest first, with `total`: who bought, what, and
their answers.
```json
{
"id": "pay_7c9adm3dkqf2…",
"reference": "XTP-7C9ADM3DKQF2",
"amount": 200,
"status": "successful",
"customer": { "name": "Kofi Boateng", "phone": "233244001234", "email": "kofi@example.com" },
"items": [{ "name": "Regular", "price": 100, "quantity": 2 }],
"answers": [{ "question": "Any allergies?", "answer": "Groundnuts" }],
"paid_at": "2026-10-24T09:16:41Z"
}
```
## Event tickets [#event-tickets]
```json title="200 OK"
{
"success": true,
"data": {
"tickets": [
{
"code": "7K2M9QH4TZ",
"holder": "Kofi Boateng",
"type": "Regular",
"reference": "XTP-7C9ADM3DKQF2",
"refunded": false,
"checked_in_at": null,
"created_at": "2026-10-24T09:16:41Z"
}
],
"issued": 24,
"checked_in": 9
}
}
```
`search` finds a ticket by its holder's name or its code; `page` and
`page_size` page through them.
At the door, from your own scanning app: `{ "code": "7K2M9QH4TZ" }` (spaces
and dashes are ignored). Each ticket checks in once; a second time gets
`409 taken`, with when it was. A refunded ticket gets `409 invalid`.
# Payments (/api/payments)
Getting and listing payments works today, with your secret key.
A payment is made each time a customer tries to pay: on a checkout, your
xtopay.me link, a payment link, a page or an invoice. Its reference starts
with `XTP-`.
## The payment object [#the-payment-object]
```json
{
"reference": "XTP-7C9ADM3DKQF2",
"business_id": "48271935",
"checkout": "chk_8f3k2m9q",
"amount": 350,
"customer_fee": 6.83,
"fee": 6.83,
"net": 350,
"currency": "GHS",
"status": "successful",
"method": "mtn",
"customer": {
"name": "Kofi Boateng",
"phone": "233244123456",
"email": null
},
"description": "Jollof party pack",
"source": { "type": "checkout", "id": "chk_8f3k2m9q", "name": "Jollof party pack" },
"metadata": { "order_id": "1042" },
"note": null,
"answers": [],
"refunded_amount": 0,
"failure_reason": null,
"created_at": "2026-10-24T09:16:10Z",
"paid_at": "2026-10-24T09:16:41Z"
}
```
| Field | |
| --- | --- |
| `business_id` | The [business](/api/authentication#which-business-a-key-is-for) it was paid to |
| `amount` | The price: what you asked for, in cedis |
| `customer_fee` | What the customer paid toward Xtopay's fee, on top of `amount` (they were charged `amount` + `customer_fee`). It's the whole fee when your customers pay it, and `0` when you do (see [who pays the fee](/guides/checkout#who-pays-the-fee)) |
| `fee` | Xtopay's fee: 1.95% of `amount` by MoMo, 3.5% by card |
| `net` | What reaches your balance: `amount` + `customer_fee` − `fee` |
| `status` | `pending`, `successful`, `failed`, `refunded` or `partially_refunded` |
| `method` | `mtn`, `telecel`, `at` or `card` |
| `checkout` | The [checkout](/api/checkouts) it was paid through: pay pages and your own checkouts have one; `null` for direct charges |
| `source` | Where it came from: `type` is `personal` (your xtopay.me link), `link`, `page`, `invoice`, `checkout` or `subscription` (a [subscription](/api/subscriptions)'s period; `id` is the subscription), with its `id` and `name` |
| `note`, `answers` | What the customer wrote in the note, and their answers to the [link's](/api/payment-links#the-payment-link-object) or page's questions, each a `question` and its `answer` |
| `failure_reason` | Why it failed, in words you can show your customer |
A payment is only `successful` once Xtopay has confirmed with the payment
network that the money arrived. One that isn't finished within 30 minutes is
`failed`; if the network later says it was paid, it becomes `successful`,
and you get the webhook then.
## Get a payment [#get-a-payment]
```bash
curl https://api.xtopay.co/v1/payments/XTP-7C9ADM3DKQF2 \
-H "Authorization: Bearer sk_test_…"
```
## List payments [#list-payments]
Newest first, with `total` for how many match.
```bash
curl "https://api.xtopay.co/v1/payments?status=successful&page_size=50" \
-H "Authorization: Bearer sk_test_…"
```
# Payouts (/api/payouts)
Listing payouts works today. Payouts themselves are made in the dashboard,
by the business's owner and admins.
A payout is money from the business's available balance to one of its own
payout accounts, on its schedule or when someone withdraws (see the
[guide](/guides/payouts)). The API reads them; making one stays in the
dashboard, behind two-step sign-in. To send money to anyone else, use
[transfers](/api/transfers).
Payouts are live only: a test key always sees none.
## The payout object [#the-payout-object]
```json
{
"reference": "XTP-PO-7K2M9QH4TZ",
"business_id": "48271935",
"amount": 1250,
"fee": 18.75,
"currency": "GHS",
"status": "paid",
"trigger": "scheduled",
"account": {
"type": "momo",
"network": "mtn",
"bank": null,
"name": "NANA AMA OWUSU",
"number": "024 400 1234"
},
"failure_reason": null,
"created_at": "2026-10-25T10:00:04Z",
"paid_at": "2026-10-25T10:02:12Z"
}
```
| Field | |
| --- | --- |
| `amount` | What the account receives |
| `fee` | Xtopay's fee: to MoMo 1.5% of the amount, at most GH₵20; to a bank GH₵10. Off the balance with it |
| `status` | `processing`, `paid` or `failed`. A failed payout's money and fee are back in the balance |
| `trigger` | `scheduled`, or `manual` (someone withdrew) |
| `account.number` | Full for MoMo; partly hidden for bank accounts |
The `payout.paid` and `payout.failed` [webhooks](/api/webhooks) keep the
account number partly hidden.
## List payouts [#list-payouts]
Newest first: `status`, `page` and `page_size` (up to 100).
## Get a payout [#get-a-payout]
# Refunds (/api/refunds)
## Create a refund [#create-a-refund]
```bash
curl https://api.xtopay.co/v1/refunds \
-H "Authorization: Bearer sk_test_…" \
-H "Content-Type: application/json" \
-d '{ "payment": "XTP-7C9ADM3DKQF2", "amount": 100 }'
```
```json title="201 Created"
{
"success": true,
"data": {
"id": "rfd_4k9m2x7q",
"payment": "XTP-7C9ADM3DKQF2",
"amount": 100,
"reason": null,
"status": "pending",
"created_at": "2026-10-24T11:02:00Z"
}
}
```
The money goes back the way the customer paid. The refund's `status` becomes
`succeeded`, or `failed` with the money back in your balance, and the
payment's `status` becomes `partially_refunded` or `refunded`. You get the
`payment.refunded` webhook.
## Good to know [#good-to-know]
- Refunds come out of your **available balance**. If there isn't enough, the
refund is refused with the code `insufficient_balance`.
- Xtopay's fee on the payment isn't returned.
- You can refund a payment in parts, up to what was paid.
## Get a refund [#get-a-refund]
# Subscriptions (/api/subscriptions)
Plans and subscriptions work today, with test and live keys.
Each period, Xtopay makes a [checkout](/api/checkouts) for it and sends its
link to your customer by email, if you gave one. You get the link too, as
`renewal.url` on the subscription and in its webhooks, to send on WhatsApp
or by SMS. They pay with Mobile Money as usual. Automatic charging (MoMo
mandates and saved cards) comes later: `collection` will say which a
subscription uses, and nothing else changes for you.
A **plan** is what you charge and how often: weekly, monthly, every 3 months
or yearly, with an optional free trial. A **subscription** puts one customer
on a plan. Each period is a **renewal**: its checkout is made a few days
before the period starts (a day before, for weekly plans) and its link goes
to your customer.
| Status | What it means |
| --- | --- |
| `incomplete` | Waiting for its first payment |
| `trialing` | On its free trial; the first payment is asked for as the trial ends |
| `active` | Paid up |
| `past_due` | A renewal is a day late. Your customer is reminded |
| `cancelled` | Stopped: by you, or because a renewal wasn't paid before its checkout ran out (30 days, or the period's length if shorter) |
Periods follow on from the day it started, whenever each is paid: a monthly
plan started on the 31st renews on the last day of shorter months.
## Plans [#plans]
```bash tab="cURL"
curl https://api.xtopay.co/v1/plans \
-H "Authorization: Bearer sk_test_…" \
-H "Content-Type: application/json" \
-d '{
"name": "Family meal plan",
"amount": 1200,
"interval": "monthly",
"trial_days": 7
}'
```
`GET /v1/plans` lists them, `GET /v1/plans/:id` gets one, and
`PATCH /v1/plans/:id` changes its name, description, price or free trial.
A new price applies from each subscriber's next renewal.
`POST /v1/plans/:id/archive` stops it taking new subscribers (those on it
carry on); `POST /v1/plans/:id/restore` undoes that.
## Subscribe a customer [#subscribe-a-customer]
```bash tab="cURL"
curl https://api.xtopay.co/v1/subscriptions \
-H "Authorization: Bearer sk_test_…" \
-H "Content-Type: application/json" \
-d '{
"plan": "pln_7k2m9qh4tz3bxw5r8n6p",
"customer": {
"name": "Akosua Boateng",
"phone": "024 400 1234",
"email": "akosua@example.com"
},
"metadata": { "account": "1042" }
}'
```
Without a free trial its first renewal is made at once: send your customer
its `renewal.url` (we've emailed it too, if you gave an email). A customer
can be on a plan once at a time.
```json title="Response"
{
"success": true,
"data": {
"id": "sub_9t4w…",
"reference": "XTP-SB-9T4W2KQM",
"status": "incomplete",
"collection": "request",
"plan": { "id": "pln_7k2m…", "name": "Family meal plan", "amount": 1200, "interval": "monthly" },
"customer": { "id": "cus_…", "name": "Akosua Boateng", "phone": "233244001234", "email": "akosua@example.com" },
"next_billing_at": "2026-11-24T10:00:00.000Z",
"trial_ends_at": null,
"current_period_end": null,
"paid_count": 0,
"total_paid": 0,
"renewal": {
"id": "sbr_…",
"amount": 1200,
"due_at": "2026-11-24T10:00:00.000Z",
"period_end": "2026-12-24T10:00:00.000Z",
"url": "https://pay.xtopay.co/chk_…",
"sent_at": "2026-11-24T10:00:00.000Z"
},
"metadata": { "account": "1042" }
}
}
```
`GET /v1/subscriptions` lists them (filter with `status`, `plan` or
`customer`); `GET /v1/subscriptions/:id` adds its `renewals`, each period
with its status (`open`, `paid`, `expired` or `void`).
## Cancel [#cancel]
It stops at once: nothing more is asked for, and a renewal still open can't
be paid any more. What they've paid stays paid.
## Webhooks [#webhooks]
| Event | When |
| --- | --- |
| `subscription.created` | A customer was put on a plan |
| `subscription.renewed` | A period was paid; with `payment_reference` |
| `subscription.past_due` | A renewal is a day late |
| `subscription.cancelled` | It stopped; `cancel_reason` is `business` or `unpaid` |
Each period's payment also sends `payment.successful`, like any other.
## Testing [#testing]
A test key's plans and subscriptions are test copies, kept apart from live
ones: their renewals are [test checkouts](/api/testing), which you approve
or decline yourself, and they email nobody.
# Testing (/api/testing)
Use your `sk_test_` key while you build. Everything works the same as live.
Nothing reaches a real wallet or card, and test payments never reach your
balance or your dashboard's payments. A test key only sees test payments,
and a live key only live ones.
## Test charges [#test-charges]
A [direct charge](/api/charges) with a test key sends no prompt. It answers
itself a few seconds later:
| The number ends in | What happens |
| --- | --- |
| `000`, like 024 400 1000 | Declined: `payment.failed` |
| Anything else | Approved: `payment.successful` |
Their webhooks are marked `"test": true`.
## Test transfers [#test-transfers]
A [transfer](/api/transfers) with a test key moves no money, and needs no
switch from your owner: it comes out of your **test balance** (test charges,
less test transfers), so make a test charge or two first. It ends a few
seconds later:
| The account number ends in | What happens |
| --- | --- |
| `999`, like 024 555 0999 | Fails: `transfer.failed`, and the money is back |
| Anything else | Sent: `transfer.successful` |
Your owner's limits and approval amount apply to test transfers too, so you
can try a transfer that waits: approve or decline it in the dashboard's
**Transfers** page, under **Test**.
Test name lookups never reach a network. Numbers and accounts ending `0000`
are `not_found`, ones ending `8888` are `no_answer`, and the rest are
`found`, as KOFI BOATENG.
## Test links, pages and invoices [#test-links-pages-and-invoices]
[Payment links](/api/payment-links), [payment pages](/api/payment-pages) and
[invoices](/api/invoices) made with a test key are **test copies**:
- Links and pages live at `xtopay.me/test//` (their `url`
says so), so a test one can share an address with a live one. Invoices keep
`xtopay.me/i/`.
- Their pages say **Test mode**. Paying goes to the test provider's page,
where you **approve** or **decline** the payment yourself.
- The payment is a test payment: `"mode": "test"`, seen only by your test
key, out of balances and the dashboard. Event tickets are issued, so you
can try checking them in.
- Nobody is emailed: not the business about a test link, and not the
customer about a test invoice, its reminders, receipts or tickets.
- None of them appear in the dashboard, and a live key can't see them.
## Test checkouts [#test-checkouts]
A [checkout](/api/checkouts) made with a test key (and every checkout from
a test link, page or invoice) says **Test mode**. Choosing Mobile Money or
card takes your customer to a **test page** with two buttons:
- **Approve**: the payment succeeds, and `payment.successful` is sent.
- **Decline**: it fails, and `payment.failed` is sent. The checkout stays
open, so you can try again.
Use them to try your success and failure paths, and your webhook handler.
## Going live [#going-live]
1. [Verify your business](/guides/verify-your-business).
2. **Create** your live secret key in **Developers**, and put it on your
server instead of the test key.
3. Add your servers' addresses to the live key's **Allowed IPs**. Direct
charges and transfers need it.
4. To send money, your owner switches **Live sending** on in
**Developers**, and sets the limits.
5. Add your live webhook endpoint, and copy its signing secret.
# Transfers (/api/transfers)
Transfers work with test keys today. Live transfers need your business
verified, an IP allowlist on your live key, sending switched on by your
business's owner, and sending money switched on for Xtopay by our payment
partner; until then a live transfer answers `503 unavailable`.
A transfer sends money from your [available balance](#your-balance) to a
**MoMo wallet** (MTN, Telecel or AT) or a **bank account**: pay suppliers,
riders, agents or winners from your own system.
Money that leaves can't be pulled back, so sending is guarded:
- **Your owner switches it on**, in the dashboard's **Developers** page,
with a code from their authenticator app. It's off until they do.
- **Limits:** the most one transfer can be, and the most per day. Over them,
transfers are refused.
- **Approval:** transfers over an amount the owner sets wait for the owner
to approve them in the dashboard. Their money is held meanwhile.
- **Emails to the owner** whenever sending is switched on or off, the limits
change, a transfer waits for approval, or a day's limit is reached.
## Send money [#send-money]
```bash tab="cURL"
curl https://api.xtopay.co/v1/transfers \
-H "Authorization: Bearer sk_test_…" \
-H "Idempotency-Key: rider-0931" \
-H "Content-Type: application/json" \
-d '{
"amount": 120,
"recipient": { "type": "momo", "phone": "024 555 0101", "name": "Kwame Asante" },
"description": "Rider pay, week 43",
"client_reference": "rider-0931"
}'
```
```js tab="Node.js"
const res = await fetch("https://api.xtopay.co/v1/transfers", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.XTOPAY_SECRET_KEY}`,
"Idempotency-Key": payoutId,
"Content-Type": "application/json",
},
body: JSON.stringify({
amount: 120,
recipient: { type: "momo", phone: rider.phone, name: rider.name },
description: "Rider pay, week 43",
client_reference: payoutId,
}),
});
const { success, data, message } = await res.json();
if (!success) throw new Error(message);
// data.status is "processing", or "pending_approval" if it waits for your owner.
```
```python tab="Python"
import os
import requests
res = requests.post(
"https://api.xtopay.co/v1/transfers",
headers={
"Authorization": f"Bearer {os.environ['XTOPAY_SECRET_KEY']}",
"Idempotency-Key": payout_id,
},
json={
"amount": 120,
"recipient": {"type": "bank", "bank_code": "300304", "account_number": "1021450098871"},
"description": "Supplier payment",
"client_reference": payout_id,
},
)
body = res.json()
if not body["success"]:
raise Exception(body["message"])
```
It answers with the transfer:
```json title="201 Created"
{
"success": true,
"data": {
"reference": "XTP-TR-4P8Q2X6WMN",
"business_id": "48271935",
"client_reference": "rider-0931",
"mode": "test",
"amount": 120,
"fee": 1.8,
"currency": "GHS",
"status": "processing",
"recipient": {
"type": "momo",
"network": "mtn",
"bank_code": null,
"bank_name": null,
"account_number": "233245550101",
"name": "Kwame Asante"
},
"description": "Rider pay, week 43",
"metadata": {},
"failure_reason": null,
"created_at": "2026-10-24T15:24:10Z",
"decided_at": null,
"paid_at": null
}
}
```
| `status` | |
| --- | --- |
| `pending_approval` | Over your owner's approval amount: waiting for them. Its money is held |
| `processing` | On its way |
| `successful` | It reached the wallet or account |
| `failed` | It couldn't be sent; `failure_reason` says why. The money is back in your balance |
| `declined` | Your owner declined it, or nobody approved it within 24 hours. The money is back |
## Finding out how it ended [#finding-out-how-it-ended]
- **A webhook**, `transfer.successful`, `transfer.failed` or
`transfer.declined`, goes to your [endpoints](/api/webhooks).
- **Or ask:** `GET /v1/transfers/{reference}`. One on its way is checked
when you ask (at most every 5 seconds).
Lists your transfers, newest first, in the key's mode: `status`,
`client_reference`, `from` and `to` (ISO 8601), `page` and `page_size`
(up to 100).
## Check whose account it is [#check-whose-account-it-is]
Before you send, you can look up the name a wallet or bank account is
registered to, and compare it with who you meant. It costs nothing in test
mode; live lookups are limited to 20 a minute per key and 500 a day.
```json title="Request"
{ "type": "momo", "phone": "024 555 0101" }
```
```json title="200 OK"
{
"success": true,
"data": {
"type": "momo",
"network": "mtn",
"bank_code": null,
"account_number": "233245550101",
"status": "found",
"name": "KWAME ASANTE"
}
}
```
`status` is `found`, `not_found` (there's no such wallet or account), or
`no_answer` (the network or bank didn't say just now: try again later). For
a bank account, send `{ "type": "bank", "bank_code": "300304",
"account_number": "1021450098871" }`.
## Banks [#banks]
The banks you can send to, with their `code` and `name`.
## Your balance [#your-balance]
```json title="200 OK"
{
"success": true,
"data": { "available": 4210.35, "pending": 980, "currency": "GHS", "mode": "live" }
}
```
Transfers come out of `available`: money from payments that has settled.
`pending` hasn't settled yet, and can't be sent. A transfer that waits for
approval, or is on its way, holds its amount and fee; one that fails or is
declined gives them back.
With a test key, it's your **test balance**: test charges, less test
transfers. Make a few [test charges](/api/testing#test-charges) to fill it.
## Limits [#limits]
| | |
| --- | --- |
| Per transfer, per day | What your owner sets in **Developers** (GH₵5,000 and GH₵20,000 to start). Over either: `400 limit_exceeded` |
| Not enough balance | `400 insufficient_balance` |
| Requests | 30 transfers a minute per key, and 5 to the same account in 10 minutes. Past either: `429` with `Retry-After` |
Send an `Idempotency-Key` with every transfer, and a `client_reference`: a
retry then can't send twice. See [Errors and retries](/api/errors).
# Webhooks (/api/webhooks)
Webhooks work today: for every payment (your xtopay.me link, payment
links and pages, invoices, checkouts and direct charges), and for payouts,
transfers and subscriptions.
## Add an endpoint [#add-an-endpoint]
In the dashboard's **Developers** page, choose **Add endpoint**, enter its
URL and choose its events. You get its **signing secret** (`whsec_…`) for
checking that requests really come from Xtopay; **Signing secret** shows it
again. The owner, admins and developers can add and change endpoints.
- Endpoints must use **HTTPS**, on a public address: Xtopay won't call
`localhost` or a private network.
- A business can have up to 10 endpoints.
- **Send test** sends a sample `payment.successful`, marked `"test": true`,
straight away, so you can check your handler.
- Switch an endpoint **off** to stop events for a while. Nothing is kept for
it while it's off.
## Events [#events]
| Event | When |
| --- | --- |
| `payment.successful` | A customer has paid |
| `payment.failed` | A payment didn't go through |
| `payment.refunded` | You refunded a payment, in full or in part. Comes with refunds |
| `payout.paid` | A payout reached your account |
| `payout.failed` | A payout couldn't be sent. Its money is back in your balance |
| `transfer.successful` | A [transfer](/api/transfers) reached the wallet or account |
| `transfer.failed` | A transfer couldn't be sent. Its money is back in your balance |
| `transfer.declined` | Your owner declined a transfer that waited for approval, or nobody approved it in 24 hours |
| `subscription.created` | A customer was put on a [plan](/api/subscriptions) |
| `subscription.renewed` | A subscription's period was paid |
| `subscription.past_due` | A renewal is a day late |
| `subscription.cancelled` | A subscription stopped, by you or unpaid |
## What you receive [#what-you-receive]
A `POST` with a JSON body. `business_id` is the business it happened to
(useful if you take payments for several), and `data` is the
[payment](/api/payments), the payout or the [transfer](/api/transfers), as
it was when the event happened.
```json title="payment.successful"
{
"id": "evt_3n8w2k5p",
"type": "payment.successful",
"business_id": "48271935",
"created_at": "2026-10-24T09:16:42Z",
"data": {
"reference": "XTP-7C9ADM3DKQF2",
"business_id": "48271935",
"checkout": null,
"amount": 350,
"customer_fee": 6.83,
"fee": 6.83,
"net": 350,
"currency": "GHS",
"status": "successful",
"method": "mtn",
"customer": { "name": "Kofi Boateng", "phone": "233244123456", "email": null },
"description": "Jollof party pack",
"source": { "type": "link", "id": "lnk_…", "name": "Jollof party pack" },
"metadata": {},
"refunded_amount": 0,
"failure_reason": null,
"created_at": "2026-10-24T09:16:10Z",
"paid_at": "2026-10-24T09:16:41Z"
}
}
```
```json title="payout.paid"
{
"id": "evt_9q2m4k7x",
"type": "payout.paid",
"business_id": "48271935",
"created_at": "2026-10-25T10:02:13Z",
"data": {
"reference": "XTP-PO-7K2M9QH4TZ",
"business_id": "48271935",
"amount": 1250,
"fee": 0,
"currency": "GHS",
"status": "paid",
"trigger": "scheduled",
"account": {
"type": "momo",
"network": "mtn",
"bank": null,
"name": "NANA AMA OWUSU",
"number": "024 ••• 1234"
},
"failure_reason": null,
"created_at": "2026-10-25T10:00:04Z",
"paid_at": "2026-10-25T10:02:12Z"
}
}
```
With these headers:
| Header | |
| --- | --- |
| `Xtopay-Signature` | `t=,v1=` |
| `Xtopay-Event` | The event's type, like `payment.successful` |
| `Content-Type` | `application/json` |
| `User-Agent` | `Xtopay-Webhooks/1.0` |
## Check the signature [#check-the-signature]
The signature is an HMAC-SHA256, in hex, of the time, a full stop and the
**raw** request body, keyed with your endpoint's signing secret. Check it
before you trust anything in the body, and refuse requests more than 5
minutes old, so an old request can't be replayed. A request that fails
either check didn't come from Xtopay, however right it looks: anyone can
post to your endpoint's address. Keep the signing secret on your server,
never in an app or a web page.
For orders worth a lot, confirm before you hand anything over: get the
payment with [`GET /v1/payments/:reference`](/api/payments) and check its
`status` and `amount` yourself.
```js tab="Node.js"
import crypto from "node:crypto";
import express from "express";
const app = express();
// The raw body: the signature is over the exact bytes sent.
app.post("/xtopay/webhook", express.raw({ type: "application/json" }), (req, res) => {
const header = req.get("Xtopay-Signature") ?? "";
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const expected = crypto
.createHmac("sha256", process.env.XTOPAY_WEBHOOK_SECRET)
.update(`${parts.t}.${req.body}`)
.digest("hex");
const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
const valid =
parts.v1?.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(parts.v1), Buffer.from(expected));
if (!fresh || !valid) return res.sendStatus(400);
const event = JSON.parse(req.body);
if (event.type === "payment.successful") {
// Fulfil the order for event.data.metadata.order_id, once.
}
res.sendStatus(200);
});
```
```python tab="Python"
import hashlib
import hmac
import json
import os
import time
from flask import Flask, abort, request
app = Flask(__name__)
@app.post("/xtopay/webhook")
def webhook():
header = request.headers.get("Xtopay-Signature", "")
parts = dict(p.split("=", 1) for p in header.split(",") if "=" in p)
payload = f"{parts.get('t')}.".encode() + request.get_data()
expected = hmac.new(
os.environ["XTOPAY_WEBHOOK_SECRET"].encode(), payload, hashlib.sha256
).hexdigest()
t = parts.get("t", "")
fresh = t.isdigit() and abs(time.time() - int(t)) < 300
if not fresh or not hmac.compare_digest(parts.get("v1", ""), expected):
abort(400)
event = json.loads(request.get_data())
if event["type"] == "payment.successful":
pass # Fulfil the order, once.
return "", 200
```
```php tab="PHP"
$body = file_get_contents("php://input");
$header = $_SERVER["HTTP_XTOPAY_SIGNATURE"] ?? "";
parse_str(str_replace(",", "&", $header), $parts);
$expected = hash_hmac("sha256", $parts["t"] . "." . $body, getenv("XTOPAY_WEBHOOK_SECRET"));
$fresh = abs(time() - (int) $parts["t"]) < 300;
if (!$fresh || !hash_equals($expected, $parts["v1"] ?? "")) {
http_response_code(400);
exit;
}
$event = json_decode($body, true);
if ($event["type"] === "payment.successful") {
// Fulfil the order, once.
}
http_response_code(200);
```
## Answer quickly, act once [#answer-quickly-act-once]
- **Answer with any 2xx within 10 seconds.** Do slow work, like sending
emails, after you've answered.
- **If you don't**, Xtopay tries again, 8 more times over about 3 days:
after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours, a day
and a day. Each try has the same event `id`. Redirects aren't followed, so
use your endpoint's final address.
- **The same event can arrive twice**, and events can arrive out of order.
Keep the `id`s you've handled and skip repeats. When the order matters,
get the payment from the API for its current status.
Every delivery shows in **Developers** with your server's answer, how long
it took, what went wrong and when the next try is. **Resend** tries one again
now; if that fails too, the retries carry on while any are left.
# Your colours and payment methods (/guides/checkout)
Everything customers see when they pay you is drawn in your brand: your link,
payment links and pages, invoices, tickets and receipts. Set it up in
**Settings → Checkout**, and see a preview as you change it.
| Setting | What it does |
| --- | --- |
| Name customers see | Your business's name, or a trading name. Once your business is [verified](/guides/verify-your-business), it's locked: Xtopay support can change it |
| Logo | Upload it in **Settings → Business**. Until you do, your logo letters show instead, like `NK` |
| Brand colour | The colour of buttons and highlights. Text on it switches between dark and white so it's always readable |
| Payment methods | MTN MoMo, Telecel Cash and AT Money. Turn off any you don't take. Card payments are coming soon: until then the card switch is off |
| Who pays the fee | Your customers, on top of the price, or you, out of it. See below |
| After they pay | The thank-you message on the receipt |
| Your page | The message on [your link](/guides/your-link), and what it asks customers for |
| Phone and email | How customers reach you. Shown on the checkout and receipts, and invoice replies go to the email. Choose whether they show at the bottom of your pay pages too |
| Website and social pages | Links at the bottom of your pay pages to your website, Instagram, Facebook, X and TikTok, from **Settings → Business**. Off until you switch it on |
The owner and admins can change these.
## Who pays the fee [#who-pays-the-fee]
Xtopay's fee on a payment is 1.95% by MoMo and 3.5% by card. Unless you say
otherwise, **your customers pay it**: it's added to what they pay at the
checkout, which shows the price, the fee and the total before they pay, and
you get the whole price. A GH₵350 order paid by MoMo costs your customer
GH₵356.83, and GH₵350 reaches your balance.
Turn off **Your customers pay the fee** to pay it yourself: customers pay
exactly your price, and the fee comes out of it (GH₵343.17 of that GH₵350).
Each [payment link](/guides/payment-links#who-pays-the-fee) can choose for
itself; your page, payment pages and invoices follow this setting. Every
payment shows who paid the fee.
Use a PNG, JPEG or WebP image. The dashboard resizes it for you. Your logo
also appears in the middle of your QR codes.
# Create an account (/guides/create-an-account)
## Sign up [#sign-up]
Go to [app.xtopay.co/signup](https://app.xtopay.co/signup). It takes five
short steps:
**Your email.** Enter it and agree to the Terms and Privacy Policy. An
address that can't receive email (a made-up domain, or a slip like
`gmail.con`) is refused.
**The code.** We email you a 6-digit code. Enter it to confirm the address
is yours. It works for 10 minutes; ask for another if it runs out.
**You.** Your first and last name, as on your Ghana Card.
**Your business.** Whether it's a **Starter Business** (testing an idea, not
registered yet) or a **Registered Business**, its industry, its name, and a
**username**. [Verifying your business](/guides/verify-your-business) later
starts from these answers.
**A password.** At least 8 characters, not your email, and not a common
one. A few words together are easy to remember and hard to guess.
Your username is your link: `xtopay.me/`. It's 3 to 30 lowercase
letters, numbers or underscores, with at least one letter, and starts and
ends with a letter or number.
Pick something your customers will recognise, like your shop's name.
Your email is confirmed by the code, so there's no link to click afterwards.
Home then shows **Welcome to Xtopay**, with what's left to set up: verifying
your business and adding a passkey.
Open the invite link in your email instead. You'll join that business's
dashboard with the role you were given. See [Team and roles](/guides/team).
## Two-step sign-in [#two-step-sign-in]
As the owner, you set up [two-step sign-in](/guides/two-step-sign-in) the
first time you open the dashboard: scan a QR code with an authenticator app
on your phone, and save your backup codes. From then on, signing in takes
your password and a code from the app.
## Staying signed in [#staying-signed-in]
You stay signed in for up to 90 days, or 30 days if you don't use the
dashboard, then sign in again. **Settings → Security → Where you're signed
in** lists each browser you're signed in on, when it was last used and from
which IP address. Sign out any you don't recognise, or **Sign out everywhere
else**, and [reset your password](https://app.xtopay.co/forgot-password).
Resetting your password signs you out everywhere.
## Your business ID [#your-business-id]
Your business also gets a **business ID**: 8 digits, like `48271935`. It
never changes, even if your username does. It's under your business's name
at the top of the sidebar, in **Settings → Business**, and in the menu under
your photo (top right), where you can copy it.
- Give it to Xtopay support so they find your business straight away.
- `xtopay.me/` opens your page too, so customers can pay you
with just the number.
- It's on your customers' receipts, your invoices and the emails Xtopay
sends about your business.
## Changing your username [#changing-your-username]
You can change it in **Settings**. Your old usernames stay yours, so links
and QR codes you've already shared keep working: they take customers to your
new address. Nobody else can take them.
## The dashboard [#the-dashboard]
| Section | What it's for |
| --- | --- |
| Overview | Your balance, today's sales, recent payments and the next payout |
| Payments | Every payment, with filters, details and a CSV export |
| Payment links | Your xtopay.me link and links for specific things |
| Payment pages | Pages that sell products, sell tickets or take donations |
| Invoices | Bills to send, and what's owed and overdue |
| Customers | Who has paid you, how often and how much |
| Insights | Where your visitors come from, and who pays |
| Payouts | Your balance, payout accounts, schedule and history |
| Checkout | Your colour, name and the payment methods you take |
| Settings | Your profile, business details, verification, team, security and emails |
Press Ctrl K (⌘ K on a Mac)
anywhere in the dashboard to jump to a page, a payment or a customer.
## Next [#next]
# How customers pay (/guides/how-customers-pay)
Card payments are coming soon. For now your customers pay with Mobile
Money: MTN MoMo, Telecel Cash or AT Money.
## Paying [#paying]
**They open your link or page.** They see your name and logo, what they're
paying for and the amount, or a box to type it.
**They fill in their details and press Pay.** Their phone number, their
name (unless you choose not to ask: then it's the name their MoMo number is
registered to), and their email (optional, unless you ask for it: it's where
receipts and event tickets go).
**They choose how to pay, on the checkout.** Pay takes them to Xtopay's
checkout, `pay.xtopay.co`, showing your name, what it's for and the amount.
When they pay Xtopay's fee (unless you've
[chosen to](/guides/checkout#who-pays-the-fee) pay it yourself), it shows the
fee for the way they choose, 1.95% by MoMo or 3.5% by card, and the total,
before they pay. Their receipt shows both.
- **Mobile Money**: their number (filled in) and network (guessed from the
number; they can change it). A PIN prompt comes to their phone.
- **Bank Card**: they enter the card on our payment partner's secure page;
Xtopay never sees the card number.
If a try doesn't go through, they can try again on the same checkout.
**They approve it.** For MoMo, they approve with their PIN. Then they land on
their receipt, which updates as soon as the payment is confirmed.
## The receipt [#the-receipt]
Each payment has a receipt at `xtopay.me/r/`. It shows who was
paid, how, when and the reference, plus what was bought on a payment page
and links to any event tickets. Customers who gave an email also get a
receipt by email.
## When a payment is paid [#when-a-payment-is-paid]
A payment counts as paid only once Xtopay has checked with the payment
network that the money arrived. A payment that isn't finished within 30
minutes fails; if the network later says it was paid, it counts.
If a payment fails or a customer cancels, nothing is taken, and the receipt
has a button to try again.
# Introduction (/guides)
Your customers pay by MTN MoMo, Telecel Cash, AT Money or card, on pages
in your name and colours. Xtopay keeps the money in your balance and pays it
out to your MoMo wallet or bank account, when you ask or on a schedule.
## How money moves [#how-money-moves]
**A customer pays.** They open your link or page, choose how to pay, and
approve it. Xtopay checks with the payment network that the money really
arrived before calling it paid.
**It goes into your balance.** Each payment (the whole price, when your
customers pay Xtopay's fee; less the fee when you do) is
*pending* at first and then *available*. The dashboard shows when pending
money becomes available.
**You get paid out.** Withdraw what's available whenever you like, or set a
schedule, to a MoMo wallet or bank account checked in your name.
## Ways to get paid [#ways-to-get-paid]
One link for "pay me any amount", ready from the day you sign up.
A link for one thing: a price, a deposit, a fee.
Sell products online, paid when they arrive, with Buyer Protection.
Bill a customer and remind them until it's paid.
You don't need a website or any code for these. If you're a developer, the
[API](/api) will let your own site or app create checkouts. It's being built.
## Start here [#start-here]
1. [Create your account](/guides/create-an-account) and choose your username.
2. Share [your link](/guides/your-link), or make a
[payment link](/guides/payment-links).
3. [Verify your business](/guides/verify-your-business) and
[add a payout account](/guides/payout-accounts) so you can withdraw.
# Invoices (/guides/invoices)
An invoice bills one customer for one or more things. They pay the whole
total, by MoMo or card, on the invoice's own page: `xtopay.me/i/`.
## Create an invoice [#create-an-invoice]
In **Invoices**, choose **New invoice**. A preview beside the form shows the
invoice as your customer will see it.
| Part | What to fill in |
| --- | --- |
| Who it's for | Their name, and their email to send it to. A phone number is optional |
| Dates | When it's issued and when it's due: on receipt, in 7, 14 or 30 days, or any date |
| Items | A description, quantity and price for each line |
| Discount | Optional: an amount off, or a percentage off |
| Taxes | Optional: VAT 15%, NHIL 2.5%, GETFund 2.5% with one tap, or your own. Taxes are on the total after the discount |
| Notes | Optional: a thank-you, bank details, delivery or payment terms |
| Reminders | Remind them by email if it's still unpaid on the due date, and 3 days after |
Each invoice gets the next number, `INV-0001`, `INV-0002` and so on.
## Send it, or share it [#send-it-or-share-it]
- **Send invoice** emails it to your customer, from your business's name
through Xtopay. Their replies come to your support email.
- No email? **Open to share** opens the invoice without emailing it. Copy
its link or send it on WhatsApp.
- **Save draft** keeps it to finish later. Only your team sees drafts.
Customers can print the invoice, or save it as a PDF, from its page.
## How an invoice stands [#how-an-invoice-stands]
| Status | Meaning |
| --- | --- |
| Draft | Not sent yet. You can delete it |
| Open | Sent, waiting to be paid. You can still edit it |
| Overdue | Open, and past its due date |
| Paid | Paid on its page, or marked paid by you |
| Void | Cancelled. Its page says so, and it can't be paid |
**What's owed and late** shows at the top of **Invoices**: the open total,
the overdue total and what's been paid in the last 30 days.
## After it's sent [#after-its-sent]
- **Edit** an open invoice to fix a mistake. Its page shows the change
straight away; send it again if your customer should know.
- **Remind** them by email at any time (up to 3 times a day). Automatic
reminders go on the due date and 3 days after, if you left them on.
- **Mark paid** when they paid another way, like cash or a bank transfer,
with a note. Only the owner and admins can.
- **Void** it to cancel it.
When a customer pays on the invoice's page, it's marked paid and the payment
shows in **Payments**, linked to the invoice.
## From your own system [#from-your-own-system]
Your developer can make and manage invoices from your own system with the
[API](/api/invoices). The ones made with a live key show here like any other.
# Emails and notifications (/guides/notifications)
## Emails to you [#emails-to-you]
Choose these in **Settings → Notifications** (the owner and admins can
change them). They go to your account email.
| Email | When |
| --- | --- |
| Every successful payment | One for each payment, with the fee and what you get |
| Payouts | When a payout lands or fails |
| Payment links | When a link is created, paused, resumed, changed or deleted, and by whom |
A **daily summary** and **refund** emails are coming.
These always go, because they keep your account safe:
- Payout account changes, to the owner.
- Someone joining your team, to the owner and admins.
- A new business added to your account, to you.
- Confirming your email, password resets and password changes, to you.
## Emails to your customers [#emails-to-your-customers]
| Email | When |
| --- | --- |
| Receipt | After they pay, if they gave an email |
| Invoice | When you send an invoice, and its reminders |
| Tickets | After they buy event tickets, with each ticket's code and link |
Invoices and their reminders come from your business's name, through Xtopay,
and replies go to your support email.
# Passkeys (/guides/passkeys)
A **passkey** signs you in to the dashboard on its own: no password, no code.
Your phone or computer keeps it, and unlocks it with your face, fingerprint
or device PIN. It only works on Xtopay's own site, so a look-alike site
can't trick you into handing it over.
A passkey also confirms [sensitive actions](/guides/two-step-sign-in#codes-for-sensitive-actions)
in place of a code from your authenticator app.
## Add one [#add-one]
In **Settings → Security**, under **Passkeys**, choose **Add a passkey**.
Enter your password. With [two-step sign-in](/guides/two-step-sign-in) on,
you're asked for a code too, unless you entered one in the last 10 minutes.
Follow your device: it saves the passkey with your face, fingerprint or PIN.
You can add up to 10, for example one on your phone and one on your laptop.
A passkey saved to iCloud Keychain, Google Password Manager or another
password manager works on all your devices signed in to it; Settings shows
it as **Synced**.
## Sign in with one [#sign-in-with-one]
On the sign-in page, choose **Sign in with a passkey** and pick yours. You're
in, and sensitive actions won't ask for a code for the next 10 minutes.
Your password and authenticator code keep working, so you can still sign in
on a device without your passkey.
## Confirm an action with one [#confirm-an-action-with-one]
When an action asks for a code, choose **Use a passkey instead**. Sensitive
actions still need two-step sign-in turned on; a passkey just answers for the
code.
## Remove one [#remove-one]
In **Settings → Security**, choose the bin beside it and enter your password.
It stops working straight away. Remove a passkey if you lose the device it's
on and it isn't synced.
## Emails [#emails]
Xtopay emails you whenever a passkey is added to or removed from your
account, and it's in the business's [audit log](/guides/team#the-audit-log).
If it wasn't you, remove it, change your password, and sign out everywhere
else in **Settings → Security**.
The businesses' phone app signs in with your password and code for now.
# Pay bills (/guides/pay-bills)
Pay for airtime, data bundles, electricity, water and TV from your Xtopay
balance, without withdrawing first: top up your riders' phones, keep the
shop's lights on, renew the DStv in the waiting area. It's in
**Payments → Pay bills**.
## What you can pay [#what-you-can-pay]
| | |
| --- | --- |
| Airtime | MTN, Telecel and AT, up to GH₵100 at a time |
| Data | MTN, Telecel and AT bundles, as the network prices them today; Telecel broadband |
| Power and water | ECG prepaid and postpaid meters, Ghana Water |
| TV | DStv, GOtv and StarTimes |
## Pay one [#pay-one]
Choose what to pay, then the network or provider.
Enter the phone, meter or smartcard number. For data, TV, ECG and Ghana
Water, Xtopay looks it up first: you see the **name it's registered to**,
what's owed, the bundles a number can buy, or the meters linked to a phone.
Enter the amount (or choose the bundle) and **Pay**. You're asked for a code
from your authenticator app if you haven't entered one in the last 10
minutes (see [Two-step sign-in](/guides/two-step-sign-in)).
Most go through in seconds. Some take a few minutes: they show **On its
way** until the provider confirms, and you can **Check** one to ask again.
In the rare case the provider still hasn't confirmed one a day later, it
shows **Being checked by Xtopay**: we follow it up with the provider, and
its amount stays held until we know whether it went through.
## Your money [#your-money]
- **No fee.** You pay the amount, nothing more.
- It comes off your **available balance** at once. If the provider can't
do it, it's marked **Failed, money back** and the amount is available
again straight away.
- It counts against your **daily sending limit**, together with your
transfers (see [Sending money](/guides/sending-money)), and one payment can
be at most your limit for one transfer.
## Who can pay [#who-can-pay]
Owners and admins of a **fully verified** business (see
[Verify your business](/guides/verify-your-business)). Everyone on the team
can see what's been paid. Each payment is in your audit log, with who paid
it. Bills are paid from your live balance: Test mode has nothing to pay
from. While Xtopay has your payouts on hold, bills can't be paid either.
# Payment links (/guides/payment-links)
A payment link is for something specific: a product, a deposit, a fee, an
event. It lives at `xtopay.me//`.
## Create a link [#create-a-link]
In **Payment links**, choose **New payment link** and fill in:
| Field | What it does |
| --- | --- |
| Title | What the customer is paying for. Shown at the top of the page |
| Description | Optional details, like what's included |
| Address | The end of the link, like `jollof-pack`. Made from the title; change it if you like |
| Price | A **fixed price**, or **any amount**, with an optional minimum |
| What it asks for | Their email, a note, and your own questions. See below |
| Who pays the fee | As your Checkout settings say, your customer, or you. See below |
Once it's created, copy the link, share it on WhatsApp or get its QR code.
[Your shop](/guides/shop) sells them with pictures, stock and delivery,
with Buyer Protection on every order.
## What it asks for [#what-it-asks-for]
Every link asks for the customer's **phone number**: Mobile Money needs it,
and it's how Xtopay keeps track of your customers. Beyond that, you choose:
| | |
| --- | --- |
| Their name | **Required** (the default), **Optional**, or **Don't ask**. Without one, the customer gets the name their MoMo number is registered to, so you still see who paid |
| Their email | **Optional** (the default), **Required**, or **Don't ask**. Receipts go there, so customers who don't give one don't get an emailed receipt |
| A note | A box they can write in if they want to, under your own label, like "Delivery address" (or "Note" if you leave it empty) |
| Your questions | Up to 10: a **short answer**, a **number**, or a **choice** from your options. Each one can be required |
You see the answers with each payment, in **Payments**. Your
[own link](/guides/your-link) has the same choices, in **Settings → Checkout**.
## Who pays the fee [#who-pays-the-fee]
By default, a link follows your [Checkout settings](/guides/checkout#who-pays-the-fee):
your customers pay Xtopay's fee on top of the price unless you've turned
that off. A link can choose for itself, so one with a round price can have
you pay the fee while the rest don't.
## Pause or resume [#pause-or-resume]
Switch off **Taking payments** to pause a link. Customers who open it see
that it isn't taking payments right now. Switch it back on to resume.
## If Xtopay takes a link down [#if-xtopay-takes-a-link-down]
Xtopay can take down a link that breaks its rules, such as one selling
something that isn't allowed. It stops taking payments, it shows **Taken
down** with the reason, and you can't switch it back on. The owner is
emailed why. Your other links and pages aren't affected. Contact Xtopay
support with your business ID to talk about it; when they lift the
takedown, the link takes payments again (unless you've paused it).
## Edit [#edit]
Change a link's title, price or address at any time. Payments already made
keep what they were for. If you change the address, the old one stops
working, so share the new link.
## Delete [#delete]
Deleting a link stops it taking payments and takes it off your list. Its
payments stay in **Payments**, and its address isn't used again: anyone who
opens it is told it was removed, with a way to pay you through your
[xtopay.me link](/guides/your-link).
## Each link's numbers [#each-links-numbers]
Open a link to see its payments and what it's collected, and its last 30
days: views, QR scans, where visitors came from and how many paid.
## Who can do what [#who-can-do-what]
The owner, admins and developers create, edit, pause and delete links.
Viewers can see and share them. You can choose to get an email whenever a
link is created, paused, resumed, changed or deleted, and by whom (see
[Notifications](/guides/notifications)).
## From your own system [#from-your-own-system]
Your developer can make and manage payment links from your own system with the
[API](/api/payment-links). The ones made with a live key show here like any other.
# Payment pages (/guides/payment-pages)
A payment page is a richer page than a link. It has a cover picture, a
description and questions for your customers, and it's for an event or a
cause:
Ticket types like Regular and VIP, when and where the event is, and a QR
code for every ticket.
Amounts to pick with one tap, any amount if you allow it, and a goal
with what's been raised so far.
Products are sold from [your shop](/guides/shop) now, with delivery,
stock and Buyer Protection. A products page made before keeps working
until you pause it.
Pages and [payment links](/guides/payment-links) share addresses:
`xtopay.me//`. Each address is used once.
## Make a page [#make-a-page]
In **Events & fundraisers**, choose **New page**, then what it's for. As you fill it
in, a preview beside the form shows what customers will see, in your colours.
**About the page.** A title, the address, a description and a cover
picture. A wide photo looks best.
**What's on it.**
- *Products*: a name, price and picture for each, and how many are in stock
(leave it empty for no limit).
- *Event tickets*: when it starts (and ends), the venue, and each ticket type
with its price and how many are available.
- *Donations*: up to 6 amounts to pick, whether people can give any amount
(with an optional minimum), and an optional goal.
**Questions.** Up to 10: a short answer, a number, or a choice between
options, each required or not. Ask for what you need to fill the order: a
size, a colour, a delivery address. You can also ask for the customer's
email. Event pages always ask for it, because tickets go there.
**Publish.** The page is live at its address. Copy the link, share it on
WhatsApp or get its QR code.
## Stock [#stock]
When a product or ticket type has a stock number, the page shows what's left
(from 10 down) and marks it **sold out** at zero. A customer who's paying
holds what they chose for 30 minutes, so two people can't both pay for the
last one. You can raise or lower stock any time, but not below what's already
sold.
## Event tickets [#event-tickets]
When an event page's payment succeeds, the customer gets **one ticket per
person**, each with its own code:
- By **email**, with a link to each ticket.
- On their **receipt**.
- On the ticket's own page, `xtopay.me/t/`, with a **QR code** to
show at the door.
Tickets stop selling when the event ends. With no end time, they stop at
midnight (Ghana time) on the day it starts.
### Checking people in [#checking-people-in]
Open the event's page in the dashboard and go to **Tickets**. Type the code
on someone's ticket, or paste its link, and choose **Check in**. Each ticket
gets in once: a second try says when it was already used. You can also find a
ticket by the holder's name and check it in from the list.
Anyone on your team can check people in, viewers too, so you can give door
staff a viewer account. If a ticket's payment was refunded, it's turned away.
## Orders [#orders]
Each page has its **orders**: who paid, what they bought and their answers.
**Export CSV** gives you a spreadsheet with a column for each question, to
pack orders or plan deliveries. Opening an order shows its payment.
You'll also find each order in **Payments**, with what was bought and the
answers.
## Editing a page [#editing-a-page]
Change anything except its kind. Products or ticket types you take off a page
stop being sold, and orders already paid keep what they bought, at the price
they paid.
Pause a page to stop it taking payments for a while, or delete it. A deleted
page leaves your list and its address isn't used again; its payments stay.
Xtopay can take down a page, or one product on it, that breaks its rules. A
page taken down stops taking payments and can't be switched back on; a
product taken down leaves the page and can't be bought, while the rest of
the page stays up. Each shows **Taken down** with the reason, and the owner
is emailed why. Contact Xtopay support with your business ID to talk about
it.
## From your own system [#from-your-own-system]
Your developer can make and manage payment pages from your own system with the
[API](/api/payment-pages). The ones made with a live key show here like any other.
# Payments and customers (/guides/payments)
## Payments [#payments]
**Payments** lists every payment, newest first. Filter by status, payment
method and date, or search by reference, name, email, phone number or what
it was for.
Open a payment to see:
- **What happened**, step by step: when the customer started paying, when it
was paid, and when the money becomes available to pay out.
- **The customer**: their name, phone number (partly hidden), email, and how
they paid.
- **The order**, for payment pages: what they bought and their answers.
- **The money**: the amount, the fee your customer paid on top (if they
[paid it](/guides/checkout#who-pays-the-fee)), Xtopay's fee and what you
receive.
- **Where it came from**: your xtopay.me link, a payment link, a payment
page or an invoice, linked so you can open it.
| Status | Meaning |
| --- | --- |
| Successful | Paid. The money is in your balance |
| Pending | The customer hasn't finished, or it isn't confirmed yet |
| Failed | It didn't go through, or wasn't finished in time. Nothing was taken |
**Export CSV** downloads the payments that match your filters, up to 10,000
at a time.
Refunding a payment from the dashboard is coming with the next part of
payouts.
## Customers [#customers]
**Customers** lists everyone who has paid you, with how many times and how
much in all. A customer is one phone number, with the latest name and email
they gave. Open one to see their payments.
# Payout accounts (/guides/payout-accounts)
A payout account is where your money goes: a **MoMo wallet** (MTN, Telecel
or AT) or a **bank account**. Only the business's **owner** can add, remove
or change them.
## Add an account [#add-an-account]
In **Payouts**, choose **Add account**. Enter the MoMo number and network,
or choose the bank and enter the account number.
Xtopay looks up the **name the account is registered to** and shows it. If
it doesn't look like your business's name or yours, you'll see a warning:
check it's the account you meant. (A shop's wallet is often in a relative's
name, so a different name isn't refused.) If the wallet belongs to a **MoMo
agent** or is a business's merchant wallet rather than a person's, you're
told that too.
Confirm with your **password** to save it. The account is saved under the
registered name, never a typed one.
If you haven't entered a code from your authenticator app in the last 10
minutes, you're asked for one as well.
## Keeping your money safe [#keeping-your-money-safe]
- **Changes take a code from your phone.** Adding or removing an account,
or changing the default, asks for a code from your authenticator app (see
[Two-step sign-in](/guides/two-step-sign-in)).
- **An account in your business's name or your own** can be paid as soon
as it's added.
- **Anyone else's waits 24 hours** before money can be sent to it. If
someone got into your account and added theirs, you have time to stop it.
- **Every change is emailed to the owner**: each account added or removed,
and each change of default, with what to do if it wasn't you.
- Account numbers are partly hidden in the dashboard.
## Your default account [#your-default-account]
Scheduled payouts go to your **default** account. Make any account the
default from its menu. Removing an account doesn't change payouts already
sent to it.
# Balance and payouts (/guides/payouts)
You can set up payout accounts and a schedule now. Sending money out is
being switched on; the Payouts page will tell you when you can withdraw.
## Your balance [#your-balance]
Your balance comes from your successful payments, less Xtopay's fees, payouts
and any money your server [sends](/guides/sending-money). It has two parts:
- **Pending**: recent payments, not ready to pay out yet. A payment is ready at
09:00 the day after it's paid; a Starter Business's (partially verified)
waits until 09:00 on the 5th business day (weekends don't count), so a
customer has time to report a problem while the money is still with Xtopay.
- **Available**: ready to withdraw.
**Payouts** shows both, and when pending money becomes available.
## If appsNmobile onboards your business [#if-appsnmobile-onboards-your-business]
Xtopay takes payments through appsNmobile, our payment partner. Once
appsNmobile has onboarded your business with an account of its own, your
customers' payments go into that account, which Xtopay holds for you. They
still count in your Xtopay balance, and you withdraw them here as usual: a
payout takes what's in that account first. Your pay pages, links and
checkout work just as before.
## Before your first payout [#before-your-first-payout]
- Your business must be [verified](/guides/verify-your-business).
- You need a [payout account](/guides/payout-accounts) that can be paid:
at once if it's in your business's name or yours, otherwise 24 hours
after you added it.
**Payouts** tells you what's missing, if anything.
## Withdraw [#withdraw]
Choose **Withdraw**, the amount and the account. **Withdraw everything**
fills in what's available less the payout's fee. The owner and admins can
withdraw. If you haven't entered a code from your authenticator app in the
last 10 minutes, you're asked for one (see
[Two-step sign-in](/guides/two-step-sign-in)).
## What a payout costs [#what-a-payout-costs]
A payout to a MoMo wallet costs **1.5%** of what's paid out, and never more
than **GH₵20**; a payout to a bank account costs **GH₵10**, whatever the
amount. The fee comes off your balance with the payout, so the account
receives the whole amount: GH₵1,000 to MoMo costs GH₵15, GH₵2,000 or more
costs GH₵20, and any amount to a bank costs GH₵10. A scheduled payout sends
your available balance less its fee. If a payout fails, its fee comes back
with its money.
## Pay out on a schedule [#pay-out-on-a-schedule]
Set a schedule in **Payouts**:
| Schedule | What happens |
| --- | --- |
| Daily | Your whole available balance goes out every day |
| Weekly | On the weekday you choose |
| Manual | Nothing goes out until you withdraw |
Set a **minimum** so small amounts wait until there's enough. Scheduled
payouts go to your default account.
## Payout history [#payout-history]
Each payout shows as **processing**, then **paid** or **failed**. If a payout
fails, its money goes straight back into your available balance. You get an
email when a payout lands or fails, unless you turn that off in
[Notifications](/guides/notifications).
## If Xtopay holds your payouts [#if-xtopay-holds-your-payouts]
Sometimes we need to check something first: a payout account's details,
or some recent payments. Then we may **hold your payouts**: you keep taking
payments and they add to your balance, but nothing is paid out or sent
until we lift the hold. In a serious case we **suspend** the business: your
pay pages, invoices and checkout stop taking payments too, and customers
see that you aren't taking payments right now.
Either way, the owner gets an email saying why, the reason shows across the
top of your dashboard, and we email again when it's lifted. Your money
stays in your balance the whole time. Contact Xtopay support with your
business ID if you have questions.
# Sending money (/guides/sending-money)
Send money from your Xtopay balance to any MoMo wallet or bank account in
Ghana: pay suppliers, riders, agents or staff. Send one from **Transfers**,
a whole spreadsheet at once with **Bulk transfer**, or let your server send
through the API (your developer uses [transfers](/api/transfers)). The same
switch, limits and approvals cover all three.
## Switching it on [#switching-it-on]
Sending money is **off** until the owner switches it on. In **Developers**,
under **Send money**:
Check the list: your business is [verified](/guides/verify-your-business).
If your server will send, your live key also needs an **IP allowlist** (your
developer sets it); the dashboard asks for a code from your authenticator
app instead.
Set your **limits**, then switch **Live sending** on. You're asked for a code
from your authenticator app (see
[Two-step sign-in](/guides/two-step-sign-in)).
Only the owner can switch sending on or off, or change the limits. Test
keys can always send test transfers: no money moves.
## Send one [#send-one]
In **Transfers**, choose **Send money**:
- **MoMo wallet** (the number; the network is filled in from it) or **bank
account** (the bank and the account number).
- **Their name**, for your records. **Check the registered name** looks it
up first, if you like.
- The **amount**, and **what it's for**.
It shows the fee and what comes off your balance. The owner and admins
can send; you're asked for a code from your authenticator app if you
haven't entered one in the last 10 minutes.
### Saved recipients [#saved-recipients]
Tick **Save … for next time** when you send to someone new, and they're
under **Saved** at the top of Send money from then on: choose them instead
of typing their number. The ones you send to most recently come first.
**Manage** removes one. Saving someone doesn't send them anything, and
every transfer to them still has your limits and approvals.
## Send a spreadsheet at once [#send-a-spreadsheet-at-once]
For paying many people, choose **Bulk transfer** in **Transfers**:
**Download the sample.** An Excel file with an empty **Transfers** sheet to
fill, an **Example**, the **Banks** you can send to, and how to fill it.
**Fill it in**, one row for each transfer:
| Column | |
| --- | --- |
| Name | Who it's to. Optional |
| Type | MoMo or Bank. Empty means MoMo |
| Network or bank | MTN, Telecel or AT (we can tell most from the number), or the bank's name |
| Number | The MoMo number or the bank account number |
| Amount (GH₵) | At least 1 |
| What it's for | Empty means what you type when you upload it |
| Your reference | Optional, your own; each can only be used once |
Up to 500 rows. A CSV with the same headings works too.
**Upload it.** Every row is checked and shown: what's ready, what needs
fixing and why, any that look like the same transfer twice, and any that
will wait for the owner. **Check registered names** looks up each wallet's
or account's name, if you'd like to see them first.
**Send.** Nothing goes until every row is right, and the whole file fits
within today's limit and your available balance together. Then, with a code
from your authenticator app, they're recorded at once and go out one after
another over the next few minutes.
**Transfers** shows each file's transfers together: open one and choose its
file, or follow the link in the email.
## Limits [#limits]
| | |
| --- | --- |
| Most per transfer | Anything bigger is refused. GH₵5,000 to start |
| Most per day | Counted from midnight, Ghana time, including transfers waiting for you. A bulk file counts as a whole. GH₵20,000 to start |
| Approve big transfers myself | Transfers over this amount wait for you. GH₵1,000 to start; switch it off if you don't want to approve any |
Set them to what your business really sends. If a key ever leaked, they're
what stands between it and your balance. The owner's own transfers from the
dashboard don't wait for approval: their code is it.
## Approving big transfers [#approving-big-transfers]
A transfer over your approval amount from your server or an admin doesn't go
out. Instead:
- You get an email with the amount, who it's to, what it's for and who sent
it (once for a whole bulk file).
- It shows in **Transfers** as **Needs approval**, its money held so it
can't be spent twice.
- Open it and choose **Approve and send** (with a code from your app) or
**Decline**. Declined, its money is back in your balance at once.
- If nobody approves it within 24 hours, it's declined.
## Watching what goes out [#watching-what-goes-out]
**Transfers** lists everything sent, with who it went to, what it was for,
where it came from (the API, the dashboard and by whom, or which file) and
how it ended. Anyone on your team can look; only the owner approves. Switch
to **Test** to see your developer's test transfers.
Transfers come out of your [available balance](/guides/payouts#your-balance),
with a fee each: to MoMo 1.5%, never more than GH₵20; to a bank GH₵10. One
that fails or is declined gives its money and its fee back.
## Emails you get [#emails-you-get]
- When sending is switched on or off, or its limits change, with who did it.
- When a transfer, or some of a bulk file's, is waiting for your approval.
- The first time in a day a transfer is refused for going over the day's
limit.
If you get one you don't expect, switch sending off in **Developers**, roll
your live key, check who's on your team, and change your password.
# QR codes and sharing (/guides/sharing)
Every link and page has the same three ways to share it: **copy** the link,
**share on WhatsApp**, and a **QR code**.
## QR codes [#qr-codes]
The QR code is drawn in your brand colour with your logo in the middle, and
it scans from a phone screen or a printout. Choose:
- **QR code**: just the code, to add to your own designs.
- **Print card**: a "Scan to pay" card with your name, what it's for and the
price (for fixed-price links), and the payment methods you take. Print it
for your counter, or add it to flyers and invoices.
Both download as PNG images.
## Insights [#insights]
**Insights** shows how people find your links and pages, and who pays:
- **Views**, **QR scans** and **payments**, by day.
- **Where visitors came from**: QR codes, WhatsApp, Instagram, Facebook, X,
TikTok, search, other websites, or typed in directly.
- **From visit to payment**: how many visitors went on to pay, from each
source.
- Each link's own numbers.
Shares from the dashboard are tagged, so a QR scan or a WhatsApp share is
counted as one, even when the app doesn't say where the visit came from.
Visits to payment pages aren't counted in Insights yet. Their orders and
payments are, in each page's own view and in Payments.
## Privacy [#privacy]
Xtopay counts visits itself, with no third-party trackers on your pages.
Each browser gets a random ID so a visitor is counted once; nothing else about
your customers is collected from a visit.
# Your shop (/guides/shop)
Your shop lives at `shop.xtopay.co/`. Customers browse your
products, add them to a cart, choose delivery or pickup, and pay by MoMo.
It's where you sell products on Xtopay.
## Buyer Protection [#buyer-protection]
Many people won't pay online first, because some sellers take the money and
never deliver. Others insist on paying on delivery, which leaves you
carrying the risk. Buyer Protection sits in the middle:
### The customer pays, and Xtopay holds it [#the-customer-pays-and-xtopay-holds-it]
The money doesn't go to you or the customer: it's held, and shown on your
Balances page as **Held for shop orders**. You know it's there before you
send anything.
### You send it out [#you-send-it-out]
Mark the order **sent out**, with your rider's name and number if you like.
The customer is told it's on its way.
### Delivered: you're paid [#delivered-youre-paid]
Each order has a 6-digit **delivery code** that only the customer has. When
you hand the order over, ask for it and enter it on the order: the money is
released to you at once. The customer can also tap **I've received my
order** themselves.
If you mark an order delivered without the code, the customer has **3 days**
to confirm or report a problem. If they do neither, the money is released to
you. Released money joins your balance and is paid out with your next
settlement, as any payment is.
If the customer reports a problem, the money stays held until it's settled:
see [Problems and refunds](#problems-and-refunds).
The delivery code is the customer's proof that they have their order. Never
ask for it before you hand the order over, and don't accept a code read out
over the phone by someone who isn't there.
## Set up your shop [#set-up-your-shop]
In the dashboard, open **Shop**:
- **Overview:** whether your shop is open, its link to copy, share on
WhatsApp or print as a QR code, the steps left to set it up, the money held
for your orders, the orders waiting on you, and your best sellers.
- **Shop settings:** a banner, a tagline, a few words about you, your returns
policy, how orders get to customers (delivery options with their fees, and
a pickup address), how many days you take to send an order out, and
categories. Your shop uses your business's name, logo and colour from
**Settings → Checkout**.
- **Products:** up to 6 pictures each, a price (and an old price to show
crossed out), stock, and options such as sizes or colours, each with its
own stock and, if it differs, its own price. Turn **On sale** off to hide
a product until it's ready.
You need at least one product on sale and one way to get orders to customers
before you can **Open the shop**. Pause it any time.
**Try it as a customer, with test payments** opens your test shop
(`shop.xtopay.co/test/`), where you can order and pay with
test money while your shop is still a draft.
## Orders [#orders]
**Shop → Orders** sorts orders into **To send out**, **On the way**,
**Awaiting customer**, **Problems** and **Complete**. An order not sent out by
the time you set shows as late. Each order shows what was bought, where it's
going, and where its money stands.
You're emailed when an order is paid, when its money is released, and when a
customer reports a problem. Customers get their delivery code and order
link on screen after paying and by SMS, and by email too if they give one.
They're texted again when you send the order out, and if it's refunded.
## Problems and refunds [#problems-and-refunds]
When a customer reports a problem, the order moves to **Problems** and its
money stays held. Open the order to see what they said, and:
- **Reply.** Your reply shows on the customer's order page and is emailed to
them. Say what happened and how you'll put it right.
- **Put it right.** Once it's sorted, the customer taps **It's sorted** on
their order page, and the money is released to you.
- **Or refund them.** Owners and admins can refund any order whose money is
still held: out of stock, can't deliver, or to settle a problem. Choose
**Refund** on the order and say why; the customer sees your reason.
If you can't agree, Xtopay looks at both sides (what the customer said, your
reply, and the order's timeline) and decides: the money is released to you,
or the customer is refunded. You're both emailed the reason, and it shows in
your audit log.
A refund is always the whole order: everything the customer paid, the price
and the fee they paid on top, goes back to the MoMo they paid from, usually
within minutes. The order's money never reaches your balance, and you pay
nothing for the refund. It can't be undone. Once an order's money is
released, it can't be refunded from the order.
## If Xtopay takes something down [#if-xtopay-takes-something-down]
A product that breaks Xtopay's rules can be taken off your shop, and a shop
that does can be suspended. Either way the owner is emailed the reason, and
it shows in your audit log and on the product or the shop's settings.
- **A product taken down** leaves your shop and can't be ordered. The rest of
your shop stays up, and you can't put it back on sale yourself.
- **A suspended shop** is closed to customers, and you can't open it again
until Xtopay lifts the suspension. Orders already paid are still under
Buyer Protection: send them out, and their money is released as usual.
Your plan isn't billed while it's suspended.
Contact Xtopay support if you think it's a mistake.
## Fees [#fees]
A shop is on a monthly plan: **Starter** GH₵39 (up to 25 products),
**Growth** GH₵99 (unlimited products, 3 team members, discount codes) or
**Pro** GH₵199 (several shops, 10 team members, your own domain), with
15% off paying yearly. Choose and change it in **Shop → Plan and
billing**.
- **7 days free** start the day your shop first opens. Setting it up as a
draft is free for as long as you like.
- **Then it's taken from your GHS wallet** at the start of each month (or
year), never from what customers pay you. Top the wallet up in
**Balances → Wallets**: move money in from your collections (free, at
once) or top up by MoMo (the 1.95% MoMo fee on top). If your wallet
doesn't cover the plan, you're emailed a link to pay by MoMo, and topping
the wallet up pays it too, within a day.
- **Unpaid, your shop keeps taking orders for 7 days,** with reminders.
After that it stops taking new orders until it's paid; orders already
placed carry on. Paying reopens it at once.
- **Upgrading takes effect at once,** for the share of the period that's
left. A cheaper plan, or paying monthly instead of yearly (or the other
way), starts at your next renewal.
- **Starter allows 25 products on sale;** hidden products don't count.
- **Stop it renewing** any time, and your shop closes when what you've paid
for runs out.
Owners and admins change and pay for the plan.
Each order costs **2.5%** by MoMo, with Buyer Protection (3.5% by card,
once cards are on), not the 1.95% of other payments. Your customer pays
it on top unless you pay it yourself in **Settings → Checkout**. Stock is
set aside when a customer goes to pay, and put back if
they don't pay within an hour.
# Subscriptions (/guides/subscriptions)
For anything customers pay for again and again: a weekly lunch box, a
monthly meal plan, a gym membership, a yearly service. You make a **plan**,
put customers on it, and Xtopay asks each of them to pay every period.
Find it under **Subscriptions** in the dashboard.
A few days before each period starts (a day before, for weekly plans),
Xtopay sends your customer a link to pay it with Mobile Money: by email
if you have their email. You can copy the link and send it yourself on
WhatsApp or by SMS. Automatic payments, from a MoMo mandate or a saved
card, come later; your plans and subscribers stay as they are.
### Make a plan [#make-a-plan]
In **Subscriptions → Plans**, press **New plan**: its name, what customers
get, the price, how often it renews (every week, month, 3 months or year)
and, if you like, a free trial of up to 90 days.
You can change a plan's name, description, price and free trial later. A
new price applies from each subscriber's next payment. How often it renews
can't change: make a new plan for that. **Archive** a plan to stop new
subscribers; those already on it carry on.
### Add your customers [#add-your-customers]
In **Subscriptions → Subscriptions**, press **New subscription**: choose the
plan, and give their name, MoMo number and, if you have it, their email. It
starts today, or on a date you pick.
Without a free trial, their first payment link is made straight away:
copy it from the dialog, or from the **…** on their row, and send it to
them. With a free trial, the link comes a few days before it ends.
## How it stands [#how-it-stands]
| Status | What it means |
| --- | --- |
| Awaiting payment | Waiting for the first payment |
| Free trial | On the plan's free trial |
| Active | Paid up |
| Past due | A payment is a day late. We remind them |
| Cancelled | Stopped, by you or because a payment wasn't made |
A payment link lasts 30 days (or a week, for a weekly plan). If it isn't
paid by then, the subscription is cancelled. To stop one yourself, choose
**Cancel subscription** from the **…** on its row: nothing more is asked
for, and what they've paid stays paid.
**Subscribers** lists each customer on your plans once, with how many
plans they're on, what they've paid and when they last paid.
Each payment shows in **Payments** like any other, with the period it paid
for, and it's paid out with the rest of your balance. Fees are the same as
any payment's: see [pricing](https://xtopay.co/pricing).
## Next [#next]
Take subscriptions from your own app or website with the
[API](/api/subscriptions).
# Team and roles (/guides/team)
Invite people in **Settings → Team**. They get an email with a link to join;
they sign in, or create an account, with the email you invited.
## Roles [#roles]
| Role | Can |
| --- | --- |
| Owner | Everything, including payout accounts. Each business has one owner |
| Admin | Everything except payout accounts: the team, business details, branding, withdrawals, the payout schedule, and marking invoices paid |
| Developer | Payment links, payment pages and invoices, and (when the API is here) API keys and webhooks. No payouts or team changes |
| Viewer | Sees payments, customers and pages, and can share links and check in event tickets. Changes nothing |
Viewers are a good fit for staff who need to look things up, or work the door
at an event.
## Managing the team [#managing-the-team]
- The owner and admins can **invite**, **cancel an invite** or **remove**
someone. Inviting again sends a fresh invite. Each of these asks for a
code from your authenticator app, if you haven't entered one in the last
10 minutes (see [Two-step sign-in](/guides/two-step-sign-in#codes-for-sensitive-actions)).
- Anyone can **leave** a team.
- The owner and admins get an email when someone joins.
## Two-step sign-in for the team [#two-step-sign-in-for-the-team]
The owner always signs in with a code from their phone as well as their
password. In **Settings → Security**, the owner can require the same of
everyone on the team: anyone without it is asked to set it up the next time
they open the dashboard. See [Two-step sign-in](/guides/two-step-sign-in).
## More than one business [#more-than-one-business]
One account can have several businesses: your own, and the teams you're
invited to. Switch between them from the business menu at the top of the
sidebar, or the menu under your photo at the top right.
To start another business of your own, choose **Add a business** in either
menu. It asks what sign-up asks (Starter or Registered, your industry, the
business's name and its payment link) and a code from your authenticator
app, then switches you to it. You're its owner, and it's a business of its
own: its own payment link, business ID, verification, balance, payout
accounts, team and API keys. Your sign-in, password, two-step sign-in and
passkeys stay the same across all of them.
A new business takes test payments until you
[verify it](/guides/verify-your-business). You can own up to 5; contact
support for more. We email you each time one is added.
## The audit log [#the-audit-log]
**Settings → Audit log** shows what happened on your business, newest first:
who did it, when, and from which browser and IP address. The owner and
admins see it.
- **Your team's changes in the dashboard:** sign-ins and two-step sign-in,
the team, payouts and payout accounts, transfers and their limits, API
keys and webhooks, links, pages and invoices, and your business's details.
A change says what changed, like "changed the price of the link “Jollof
party pack”".
- **What Xtopay did:** holds on your business or its payouts, reviewing your
verification, changing a verified name, taking down a link, page or
product, and helping someone on your team sign in. These show as "Xtopay",
with the reason you were emailed.
Filter it by what happened or by who. People who have left the team stay in
it. Calls made with your API keys aren't here: they're in **Developers**, in
the request log.
# Two-step sign-in (/guides/two-step-sign-in)
With two-step sign-in on, signing in takes your **password** and a
**6-digit code** from an authenticator app on your phone. Someone who learns
your password still can't get in without your phone.
## Who needs it [#who-needs-it]
- **Owners** must have it. The first time an owner opens the dashboard,
Xtopay asks them to set it up before anything else.
- **Everyone else** can turn it on in **Settings → Security**. The owner can
also [require it for the whole team](#require-it-for-your-team).
## Set it up [#set-it-up]
Install an authenticator app on your phone: Google Authenticator, Microsoft
Authenticator, Authy, or another that shows 6-digit codes.
In **Settings → Security**, choose **Set it up** and scan the QR code with
the app. If you can't scan it, type the key shown beside it into the app
instead.
Enter the 6-digit code the app shows, then choose **Turn on two-step
sign-in**.
Save your [backup codes](#backup-codes). They're shown once.
Turning it on signs you out on every other device.
## Signing in [#signing-in]
After your password, enter the code your app shows. A new code appears every
30 seconds, and each one works once. After five wrong codes, you start
signing in again.
## Backup codes [#backup-codes]
You get 10 backup codes, like `a1b2-c3d4`. If you lose your phone, each code
gets you in once, in place of a code from your app: choose **Lost your
phone? Use a backup code** when you sign in.
- Keep them in a password manager or somewhere safe offline. Without your
phone or a backup code, you can't sign in yourself: contact Xtopay support
with your business ID. Once they're sure it's you, they reset your two-step
sign-in and you set it up again. You, and the owner if it isn't you, are
emailed when they do, and it's in the business's
[audit log](/guides/team#the-audit-log).
- **Settings → Security** shows how many you have left. **Make new codes**
gives you a fresh 10, and the old ones stop working.
## Codes for sensitive actions [#codes-for-sensitive-actions]
Even when you're signed in, some actions ask for a code again if you haven't
entered one in the last 10 minutes:
| Action | Who can do it |
| --- | --- |
| [Withdraw](/guides/payouts#withdraw) money | Owner and admins |
| Add or remove a [payout account](/guides/payout-accounts), or change the default | Owner |
| Make or roll a [live secret key](/api/authentication), or change a key's IP allowlist | Owner, admins and developers |
| Invite someone, cancel an invite, or remove someone from the [team](/guides/team) | Owner and admins |
| Require two-step sign-in for the team | Owner |
Enter the code, and what you were doing carries on. A backup code works here
too, and so does a [passkey](/guides/passkeys). If you haven't turned on two-step sign-in, you need to before you can
do these.
## Change your phone [#change-your-phone]
In **Settings → Security**, choose **Change app**. Enter a code from your old
app (or a backup code), then scan the new QR code. Your old app stops
working.
## Require it for your team [#require-it-for-your-team]
In **Settings → Security**, the owner can switch on **Require it for
everyone**. Anyone on the team without two-step sign-in is asked to set it
up the next time they open the dashboard.
## Turn it off [#turn-it-off]
If you don't need it, **Turn off** in **Settings → Security** asks for your
password and a code. Owners can't turn it off, and nor can anyone on a team
that requires it.
## Emails [#emails]
Xtopay emails you when two-step sign-in is turned on or off, when you change
your app, when you make new backup codes, and whenever a backup code is
used. If it wasn't you, change your password, make new backup codes, and
sign out everywhere else in **Settings → Security**.
# Verify your business (/guides/verify-your-business)
Until your business is verified, your dashboard stays in **Test mode**:
you can try everything with test payments, but customers can't pay you for
real. Verifying takes a few minutes to fill in, and Xtopay reviews it,
usually within two working days.
Start from the **Verify now** button at the top of the dashboard, or
**Settings → Verification**. The owner or an admin fills it in. Each step
saves as you go, so you can stop and come back later.
## Starter or Registered [#starter-or-registered]
First, choose which describes your business:
| | Starter Business | Registered Business |
| --- | --- | --- |
| For | Testing your idea with real customers, while you prepare to register | A business with the registration, documents and licences it needs to operate |
| What we ask | Your details, what you sell, where you work, your Ghana Card and a photo of you holding it | All of that, plus registration documents, a utility bill, a few AML questions and everyone behind the business |
| Once approved | **Partially verified** | **Verified** |
| You can | Take live payments and withdraw them, 5 business days after each is paid | Everything, including sending money and live API charges, with payments ready to withdraw the next day |
When a Starter business registers, change it to Registered Business in the
same place and send it again to be fully verified.
## What a Registered Business uploads [#what-a-registered-business-uploads]
It depends on how it's registered with the Office of the Registrar of
Companies:
- **Sole proprietorship:** the Certificate of Registration and Form A
(Registration of Business Name), all its pages.
- **Partnership:** the Certificate of Registration and the partnership
registration form.
- **Limited company:** the Certificate of Incorporation, the company profile
or registration form, the constitution, and a board resolution letting the
business use Xtopay.
- **NGO or charity:** the Certificate of Incorporation, the NGO
registration certificate, the constitution and a board resolution.
Every Registered Business also uploads a utility bill from the last 3 months
at its registered address. If a regulator licenses it (the Bank of Ghana,
Gaming Commission, SEC or NCA, for example), its licence and its
anti-money laundering and KYC policies too.
Then add **the people behind it**: the proprietor, every partner, or every
director, every shareholder with 10% or more and who runs the account. Each
gives their Ghana Card number, both sides of the card, and a photo of them
holding the card at their chest, its front to the camera, with their face and
the card both clear.
Files can be PDF, PNG or JPEG, up to 5 MB each.
## After you send it [#after-you-send-it]
Nothing can change while Xtopay reviews it. We email you when it's done:
- **Approved:** your business is verified (or partially verified), the
dashboard can switch to **Live mode**, and a badge shows beside your name
on your payment pages.
- **Changes needed:** we say what to fix, and any document we couldn't
accept is marked with the reason. Fix it and send it again.
- **Not approved:** we say why. Contact support if you think we got it
wrong.
The badge stands for the name that was checked, so a verified business's
name is locked: both its name in **Settings → Profile** and the name
customers see in **Settings → Checkout**. To change it, contact Xtopay support with
your business ID.
If your business was verified before Xtopay started checking businesses
itself, it stays verified. The dashboard asks you to add the details
we're missing, so it stays that way.
Your documents and ID numbers are stored encrypted, and only Xtopay's
staff reviewing your business can open them.
## Next [#next]
Add a [payout account](/guides/payout-accounts), so there's somewhere to
send your money.
# Your xtopay.me link (/guides/your-link)
Your link is ready the moment you sign up: `xtopay.me/`. A customer
opens it, types the amount (GH₵1 or more), gives their name and phone number,
answers anything you ask, and pays by MoMo or card.
Your [business ID](/guides/create-an-account#your-business-id) works too:
`xtopay.me/48271935` takes customers to the same page. That's handy when
saying your link aloud is harder than reading out a number.
It's the quickest way to get paid for anything: a balance owed, a service, a
one-off order. For a fixed price, use a [payment link](/guides/payment-links)
instead.
## Sharing it [#sharing-it]
Find it at the top of **Payment links**, or in the dashboard's header. From
there you can:
- **Copy** it to paste anywhere.
- **Share on WhatsApp** with a message ready to send.
- Get a **QR code** in your colours, or a printable "Scan to pay" card. See
[QR codes and sharing](/guides/sharing).
## What customers see [#what-customers-see]
Your business's name and logo, a verified badge once you're
[verified](/guides/verify-your-business), and the payment methods you've
turned on in [Checkout](/guides/checkout). Your support phone and email show
at the bottom, so customers can reach you, unless you switch them off there.
## Your message, and what it asks for [#your-message-and-what-it-asks-for]
In **Checkout → Your page**:
- **Message**: a few lines under your name, like what to pay for, where you
deliver or when you open.
- **What it asks for**: besides their phone number, their name and their
email (each optional, required, or not asked; without a name they get the
one their MoMo number is registered to), a note under your own label ("What's
it for?" until you change it), and your own questions. These work as they
do on [payment links](/guides/payment-links#what-it-asks-for).