Developers

Paymuu API documentation

Create payment links from your own booking system, website or app. Paid straight to your bank, and in Paymuu like any other link.

Get started

Introduction

Create Paymuu payment links from your own booking system, website or app. They appear in Paymuu like any other link.

Overview

The Paymuu API makes payment links: paid once, paid many times, or split between a set number of people each paying a set share. Payers pay straight from their bank. You see every link and payment in Paymuu, and can read them back through the API.

Base URL

Every endpoint is under https://api.paymuu.com/v1

Format

JSON in and out. Amounts are whole pence: 800 is £8.00.

Test first

Test keys make test links that move no money. Build with one, then switch to a live key.

Quick start

1.

In Paymuu, open your business, go to API > Overview and copy an account ID. It says where the money goes.

2.

An Admin makes a test key under API > Keys. Keep it on your server, in an environment variable called PAYMUU_API_KEY.

3.

Create a link with the example below.

4.

Open the link’s url, fill in a name and email, and press Confirm payment. Read the link again: paidCount has gone up.

5.

When your business is verified, make a live key and swap it in. Nothing else changes.

Your first link

# macOS or Linux. In Windows, use the Python, Node or PHP example. curl -X POST 'https://api.paymuu.com/v1/links' \ -H "Authorization: Bearer $PAYMUU_API_KEY" \ -H "Content-Type: application/json" \ -d '{"accountId":"YOUR_ACCOUNT_ID","type":"single","name":"Deposit","reference":"BOOKING 104","amount":2500}'

Get started

Authentication

Every call sends an API key. A key acts for your business, never for a person.

Keys

Send the key in the Authorization header: Authorization: Bearer pmk_test_…. Make keys in Paymuu under API > Keys. Only Admins can, and every Admin is emailed when one is made.

Test keys

pmk_test_… make test links. Payers press Confirm payment instead of going to their bank, and no money moves. They work before your business is verified.

Live keys

pmk_live_… make real links that take payments into your bank account. Only for verified businesses.

Keeping keys safe

•

A key is shown once, when it’s made. Paymuu keeps only a fingerprint of it, so a lost key can’t be shown again: make a new one.

•

Call the API from your server. A key in a web page or an app can be read by anyone who opens it.

•

Revoke a key under API > Keys if it might have been seen. It stops working on the next call; links it made keep working.

•

Keys belong to the business, so a key keeps working after the person who made it leaves.

Get started

Requests and responses

One shape for every answer, so your code checks one thing: success.

Requests

•

Send JSON with Content-Type: application/json.

•

Amounts are whole numbers of pence. Text such as 8.00 in quotes, or 8.5, is refused.

•

Times are ISO 8601 in UTC with an offset, such as 2026-11-14T09:30:00.41237+00:00. The fraction of a second varies in length: read them with an ISO 8601 parser.

Responses

A success has success set to true, and what you asked for. Anything else has success set to false, and an error with a code to act on and a message to show. When fields are wrong, error.fields names every one; otherwise it’s null.

An error

{ "success": false, "error": { "code": "invalid_request", "message": "Check the fields below.", "fields": { "reference": "Add a bank reference so you can spot these payments in your bank app.", "people": "Send how many people are paying, from 2 to 500." } } }

Headers

Request-Id

header

The call’s ID. Quote it if you ask us for help. Calls refused before they reach your credits (a bad key, a suspended business, too fast) have none.

X-Credits-Remaining

header

Credits left for this key’s mode after this call. When many calls run at once it can be a little high; the credits themselves are never overspent.

Idempotent-Replayed

header

true when the answer is a repeat of an earlier call with the same Idempotency-Key.

Retry-After

header

On a 429: seconds to wait.

Pages of results

GET /links answers a page at a time, newest first, with data, hasMore and nextCursor. For the next page, send startingAfter with the nextCursor. limit is 1 to 100, and 25 if you leave it out.

Basics

Credits

Every call costs one credit, whatever its answer.

How credits work

•

One credit per call that reaches your credits: a success, a mistake in the request and a retry each cost one.

•

Free: a call with a bad key, from a suspended business, refused for going too fast (429), made with no credits left (402), or failed on our side (500).

•

Credits belong to your business, separately for test and live. A test key spends test credits; a live key spends live ones.

•

A testing pack is bought once. A monthly plan gives credits for the month; what’s left doesn’t carry over.

Running out

At zero, calls answer 402 no_credits, free of charge. Links you’ve made keep working.

Checking

Every charged answer has X-Credits-Remaining, and GET /credits says what’s left.

Basics

Rate limits

Limits keep the API quick for everyone. A refused call costs nothing.

Limits

Per key

120 calls a minute.

Per address

600 calls a minute from one IP address, across all keys.

Over a limit, calls answer 429 rate_limited with a Retry-After header. Wait that many seconds, then try again.

Basics

Idempotency

Send a create twice and get one link.

How it works

Add an Idempotency-Key header to POST /links, such as your booking ID (up to 98 characters). Sent again with the same key and the same body within a day, the call gives back the first answer instead of making another link. Use it whenever a retry could repeat a create.

•

Same body means the same bytes: send exactly what you sent the first time. A body written out differently (other spacing, other key order) answers 422 idempotency_mismatch, as does a different request.

•

Only a success is remembered. After an error the key is free again, and a retry runs afresh.

•

A repeat while the first is still running answers 409 request_in_progress: wait, then send it again.

•

Keys are shared by every API key of your business in one mode, so two systems shouldn’t use the same booking ID as a key. Test and live are kept apart, so going live never hands back a test link.

•

A repeat is marked Idempotent-Replayed: true, and costs a credit like any call.

Basics

Test mode

Try everything with no money involved.

Test links

•

A test key makes test links. They have test set to true.

•

The payer’s page says it’s a test and shows Confirm payment and Close. Confirm records a payment as paid; Close leaves without paying.

•

Everything after that works as for a real payment: the link’s counts move, and the payment shows in Paymuu.

•

Test links show in Links with a Test label. They never count towards your totals, and nothing about them is emailed to anyone.

•

A test key only sees test links, and a live key only live ones.

Basics

Errors

Every error code, what it means and what to do.

Error codes

Code

Description

Resolution

400 · 413

invalid_request

Something in the request is wrong. For a field, error.fields names every problem. For JSON that can’t be read, a value of the wrong type or an Idempotency-Key over 98 characters, there’s only the message. 413: the body is too large.

Fix what error.fields or the message names, and send it again.

401

invalid_key

The key is missing, unknown or revoked.

Send Authorization: Bearer with a key that hasn’t been revoked.

402

no_credits

No credits left for this key’s mode.

Get more credits in Paymuu under API > Billing, or email team@paymuu.com.

403

business_not_verified

A live key asked for a link before the business was verified.

Use a test key until the business is verified.

403

account_not_available

A live key used a bank account added in the last 24 hours. Test keys can use it straight away.

Wait until the account can take payments, or use another account.

403

business_suspended

The business is suspended.

Email team@paymuu.com.

404

not_found

No such link or endpoint for this business and key.

Check the ID and the path. A test key only sees test links, and a live key live ones.

409

request_in_progress

A request with the same Idempotency-Key is still being handled.

Wait a moment, then send it again with the same key.

422

idempotency_mismatch

The Idempotency-Key was already used for a different request.

Use a new key for a new request.

429

rate_limited

Too many calls in a minute.

Wait for the seconds in the Retry-After header, then try again.

500

server_error

Something went wrong on our side. The call isn’t charged.

Try again. If it keeps happening, email team@paymuu.com with the Request-Id.

Endpoints

Accounts

GET

https://api.paymuu.com/v1/accounts

Your bank accounts and their IDs.

Overview

Lists the bank accounts a link can pay into. Send one’s id as accountId when you create a link.

New accounts

An account added in the last 24 hours shows available: false until it can take payments.

Request

Headers

Authorization

header

Required

Bearer, then your API key.

This endpoint takes no parameters. Send your key in the Authorization header.

Request

# macOS or Linux. In Windows, use the Python, Node or PHP example. curl 'https://api.paymuu.com/v1/accounts' \ -H "Authorization: Bearer $PAYMUU_API_KEY"

Response

Your accounts, under accounts.

id

string

Send as accountId.

name

string

Your label for it, or the account holder.

last4

string

The account number’s last four digits.

currency

string

GBP.

available

boolean

Whether it can take payments now.

200 OK

{ "success": true, "accounts": [ { "id": "YOUR_ACCOUNT_ID", "name": "Monzo Business", "last4": "5678", "currency": "GBP", "available": true } ] }

Errors

Every error has success set to false, and an error with a code and a message. These are the ones this endpoint can give.

Code

Description

Resolution

401

invalid_key

The key is missing, unknown or revoked.

Send Authorization: Bearer with a key that hasn’t been revoked.

402

no_credits

No credits left for this key’s mode.

Get more credits in Paymuu under API > Billing, or email team@paymuu.com.

403

business_suspended

The business is suspended.

Email team@paymuu.com.

429

rate_limited

Too many calls in a minute.

Wait for the seconds in the Retry-After header, then try again.

500

server_error

Something went wrong on our side. The call isn’t charged.

Try again. If it keeps happening, email team@paymuu.com with the Request-Id.

Endpoints

Get credits

GET

https://api.paymuu.com/v1/credits

Credits left for this key’s mode.

Overview

Says how many credits are left for your key’s mode (test or live), and when the soonest of them run out.

Cost

Asking costs a credit too, like any call.

Request

Headers

Authorization

header

Required

Bearer, then your API key.

This endpoint takes no parameters. Send your key in the Authorization header.

Request

# macOS or Linux. In Windows, use the Python, Node or PHP example. curl 'https://api.paymuu.com/v1/credits' \ -H "Authorization: Bearer $PAYMUU_API_KEY"

Response

What’s left, under credits.

mode

string

test or live.

remaining

integer

Credits left.

expiresAt

string | null

When the soonest-ending credits run out (ISO 8601, in UTC). Null if none end.

200 OK

{ "success": true, "credits": { "mode": "test", "remaining": 195, "expiresAt": "2026-12-14T09:30:00.41237+00:00" } }

Errors

Every error has success set to false, and an error with a code and a message. These are the ones this endpoint can give.

Code

Description

Resolution

401

invalid_key

The key is missing, unknown or revoked.

Send Authorization: Bearer with a key that hasn’t been revoked.

402

no_credits

No credits left for this key’s mode.

Get more credits in Paymuu under API > Billing, or email team@paymuu.com.

403

business_suspended

The business is suspended.

Email team@paymuu.com.

429

rate_limited

Too many calls in a minute.

Wait for the seconds in the Retry-After header, then try again.

500

server_error

Something went wrong on our side. The call isn’t charged.

Try again. If it keeps happening, email team@paymuu.com with the Request-Id.