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
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
Create a link
POST
https://api.paymuu.com/v1/links
Make a link that’s paid once, paid many times, or split between a set number of people.
Overview
Creates a payment link and gives back its url to send to payers. It appears in Paymuu straight away, made by your key.
Link types
single, reusable or split.
Split links
10 people at 800 is one link expecting £80.00. Each payer is asked for £8.00.
Retries
Send an Idempotency-Key so a retry never makes two links.
Request
Headers
Authorization
header
Required
Bearer, then your API key.
Content-Type
header
Required
application/json
Idempotency-Key
header
Optional
Your own ID for this create, so a retry never makes two.
Body
accountId
string
Required
The bank account payments go into. Its ID is in Paymuu under API > Overview.
type
string
Required
single, reusable or split.
reference
string
Required
Shows in your bank app and the payer’s. Up to 14 characters: letters, numbers, spaces, apostrophes and - . / , : ( ) + ? only. Sent in capitals.
name
string
Optional
What the link is called, e.g. “Pitch hire”. Up to 80 characters. Without one: “Payment to” and the account holder’s first name.
description
string
Optional
Shown to the payer. Never sent to the bank. Up to 500 characters.
amount
integer
Required for single
In pence: 2500 is £25.00. From 1 to 100000000 (£1,000,000). Optional on reusable links (the payer chooses). Not used on split links.
people
integer
Required for split
How many people are paying, from 2 to 500.
amountPerPerson
integer
Required for split
Each person’s share, in pence. What each payer is asked for. people × amountPerPerson can be at most 100000000 (£1,000,000).
maxPayments
integer
Optional
Reusable links: stop after this many payments, from 1 to 100000. Leave it out for no limit.
expiry
string
Optional
never (the default), 7d, 30d or 90d.
metadata
object
Optional
Up to 20 text values of your own, such as a booking ID: names up to 40 characters, values up to 200. Given back as sent.
Link types
single
Paid once, by one person. Send amount.
reusable
Paid many times, each payment its own record. Send amount for a set price, or leave it out to let each payer choose.
split
A set number of people each paying a set share. Send people and amountPerPerson.
Request
# 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 "Idempotency-Key: booking-bk_123" \ -H "Content-Type: application/json" \ -d '{"accountId":"YOUR_ACCOUNT_ID","type":"split","name":"Pitch hire","reference":"PITCH NOV","description":"Thursday 7pm, five-a-side.","people":10,"amountPerPerson":800,"metadata":{"bookingId":"bk_123"}}'
Response
The link you made. Send payers to its url: they see their share, and you see the expected total.
success
boolean
true.
message
string
“Link created.”
link
object
The link. Get a link lists every field.
200 OK
{ "success": true, "message": "Link created.", "link": { "id": "a1b2c3d4e5", "url": "https://paymuu.link/a1b2c3d4e5", "type": "split", "name": "Pitch hire", "description": "Thursday 7pm, five-a-side.", "reference": "PITCH NOV", "accountId": "YOUR_ACCOUNT_ID", "currency": "GBP", "amount": null, "amountPerPerson": 800, "people": 10, "expectedTotal": 8000, "maxPayments": null, "paidCount": 0, "paidTotal": 0, "status": "active", "test": true, "expiresAt": null, "createdAt": "2026-11-14T09:30:00.41237+00:00", "metadata": { "bookingId": "bk_123" } } }
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.
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.
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.
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.
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 a link
GET
https://api.paymuu.com/v1/links/{id}
Read one link, with how much has been paid so far.
Overview
Gives back one link with its counts. On a split link, paidCount of people have paid, and paidTotal of expectedTotal is in.
Progress
Read it to see how a split is going: 3 of 10 paid.
Scope
Only your business’s links, of your key’s kind: test or live.
Request
Headers
Authorization
header
Required
Bearer, then your API key.
Path parameters
id
string
Required
The link’s ID: its id, or the end of its url.
Request
# macOS or Linux. In Windows, use the Python, Node or PHP example. curl 'https://api.paymuu.com/v1/links/LINK_ID' \ -H "Authorization: Bearer $PAYMUU_API_KEY"
Response
The link, under link.
id
string
The link’s ID.
url
string
The page to send the payer to.
type
string
single, reusable or split: as you made it.
name
string
What the link is called.
description
string | null
As you sent it.
reference
string
The bank reference, in capitals.
accountId
string
The account payments go into.
currency
string
GBP.
amount
integer | null
What each payer is asked, in pence. Null on a split link, and on a reusable link where the payer chooses.
amountPerPerson
integer | null
Split links: each person’s share.
people
integer | null
Split links: how many people are paying.
expectedTotal
integer | null
What the link collects in full: people × amountPerPerson, or a single link’s amount. Null on a reusable link.
maxPayments
integer | null
Reusable links: the most payments it takes. Null for no limit.
paidCount
integer
Payments the bank has confirmed.
paidTotal
integer
What those payments came to, in pence.
status
string
active, paused, paid, completed (every share paid, or the limit reached), expired or closed.
test
boolean
Made with a test key: paid with a button, and no money moves.
expiresAt
string | null
When it stops taking payments (ISO 8601, in UTC). Null: never.
createdAt
string
When it was made (ISO 8601, in UTC).
metadata
object
What you sent, unchanged. {} if you sent none.
200 OK
{ "success": true, "link": { "id": "a1b2c3d4e5", "url": "https://paymuu.link/a1b2c3d4e5", "type": "split", "name": "Pitch hire", "description": "Thursday 7pm, five-a-side.", "reference": "PITCH NOV", "accountId": "YOUR_ACCOUNT_ID", "currency": "GBP", "amount": null, "amountPerPerson": 800, "people": 10, "expectedTotal": 8000, "maxPayments": null, "paidCount": 3, "paidTotal": 2400, "status": "active", "test": true, "expiresAt": null, "createdAt": "2026-11-14T09:30:00.41237+00:00", "metadata": { "bookingId": "bk_123" } } }
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.
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.
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
List links
GET
https://api.paymuu.com/v1/links
Your links, newest first, a page at a time.
Overview
Gives back a page of links. Keep asking with the cursor until hasMore is false.
Page size
25 by default, up to 100.
Order
Newest first.
Request
Headers
Authorization
header
Required
Bearer, then your API key.
Query parameters
limit
integer
Optional
1 to 100. 25 if you leave it out.
startingAfter
string
Optional
The nextCursor from the page before.
Request
# macOS or Linux. In Windows, use the Python, Node or PHP example. curl 'https://api.paymuu.com/v1/links?limit=25' \ -H "Authorization: Bearer $PAYMUU_API_KEY"
Response
A page of links.
data
array
Links, newest first. Each is as in Get a link.
hasMore
boolean
Whether there’s another page.
nextCursor
string | null
Send as startingAfter for the next page.
200 OK
{ "success": true, "data": [ { "id": "a1b2c3d4e5", "url": "https://paymuu.link/a1b2c3d4e5", "type": "split", "name": "Pitch hire", "description": "Thursday 7pm, five-a-side.", "reference": "PITCH NOV", "accountId": "YOUR_ACCOUNT_ID", "currency": "GBP", "amount": null, "amountPerPerson": 800, "people": 10, "expectedTotal": 8000, "maxPayments": null, "paidCount": 3, "paidTotal": 2400, "status": "active", "test": true, "expiresAt": null, "createdAt": "2026-11-14T09:30:00.41237+00:00", "metadata": { "bookingId": "bk_123" } } ], "hasMore": true, "nextCursor": "a1b2c3d4e5" }
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.
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_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
Close a link
POST
https://api.paymuu.com/v1/links/{id}/close
Stop a link taking payments, for good.
Overview
Closes the link: nobody can pay it after this, and it can’t be opened again. Payments already made stay on record.
Safe to repeat
Closing a link that already stopped changes nothing.
In Paymuu
Recent events show which key closed it.
Request
Headers
Authorization
header
Required
Bearer, then your API key.
Path parameters
id
string
Required
The link’s ID: its id, or the end of its url.
Request
# macOS or Linux. In Windows, use the Python, Node or PHP example. curl -X POST 'https://api.paymuu.com/v1/links/LINK_ID/close' \ -H "Authorization: Bearer $PAYMUU_API_KEY" \ -d ''
Response
The link, now closed.
success
boolean
true.
message
string
“Link closed.”, or that it had already stopped taking payments.
link
object
The link, with status “closed” (or the final state it was already in).
200 OK
{ "success": true, "message": "Link closed.", "link": { "id": "a1b2c3d4e5", "url": "https://paymuu.link/a1b2c3d4e5", "type": "split", "name": "Pitch hire", "description": "Thursday 7pm, five-a-side.", "reference": "PITCH NOV", "accountId": "YOUR_ACCOUNT_ID", "currency": "GBP", "amount": null, "amountPerPerson": 800, "people": 10, "expectedTotal": 8000, "maxPayments": null, "paidCount": 3, "paidTotal": 2400, "status": "closed", "test": true, "expiresAt": null, "createdAt": "2026-11-14T09:30:00.41237+00:00", "metadata": { "bookingId": "bk_123" } } }
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.
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.
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
Link payments
GET
https://api.paymuu.com/v1/links/{id}/payments
Who has paid a link, how much and when.
Overview
Gives back the link’s payments, newest first, including ones still pending and ones that failed. The most recent 500 are listed.
Privacy
Payers’ emails are partly hidden, as in the app.
Paid
Count a payment once its status is paid.
Request
Headers
Authorization
header
Required
Bearer, then your API key.
Path parameters
id
string
Required
The link’s ID: its id, or the end of its url.
Request
# macOS or Linux. In Windows, use the Python, Node or PHP example. curl 'https://api.paymuu.com/v1/links/LINK_ID/payments' \ -H "Authorization: Bearer $PAYMUU_API_KEY"
Response
The link’s payments, under data.
id
string
The payment’s ID.
linkId
string
The link it was paid on.
amount
integer
In pence.
currency
string
GBP.
status
string
pending (not finished at the bank yet), paid or failed.
refunded
boolean
You marked it refunded in Paymuu.
payerName
string | null
As the payer gave it.
payerEmail
string | null
Partly hidden, as in the app, unless it’s the customer you made the link for.
test
boolean
Made on a test link: no money moved.
createdAt
string
When the payer started it (ISO 8601, in UTC).
paidAt
string | null
When the bank confirmed it (ISO 8601, in UTC).
200 OK
{ "success": true, "data": [ { "id": "6f1c2b8e-4a1d-4f0e-9c55-1b2d3e4f5a6b", "linkId": "a1b2c3d4e5", "amount": 800, "currency": "GBP", "status": "paid", "refunded": false, "payerName": "Sam Reid", "payerEmail": "s•••@example.com", "test": true, "createdAt": "2026-11-14T10:02:11.10394+00:00", "paidAt": "2026-11-14T10:02:40.88215+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.
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.
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
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.
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.
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.
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.