GOV.UK Pay API (This version is no longer maintained. See openapi/publicapi_spec.json for latest API specification)
https://publicapi.payments.service.gov.uk
Auth type
API Key Header
Auth header
Authorization: YOUR_API_KEY
Rate limit
1,000 req/min (production)
Pricing
Enterprise / contact sales
Free quota
None
Documentation
https://publicapi.payments.service.gov.uk
Endpoint status
Server online — HTTP 404 — server is online but path returned an error (may require auth)3.66s
(checked Mar 29, 2026)
Builder score
D
40%
builder-friendly
API key in the request header (Authorization)
Authorization: YOUR_API_KEY
UK Government payment platform. Free for public sector use — no transaction fees (payment processor fees still apply via bank/card networks). Built by GDS.
| Method | Path | Description |
|---|---|---|
| GET | /v1/payments |
Search payments |
| POST | /v1/payments |
Create new payment |
| GET | /v1/payments/{paymentId} |
Find payment by ID |
| POST | /v1/payments/{paymentId}/cancel |
Cancel payment |
| POST | /v1/payments/{paymentId}/capture |
Capture payment |
| GET | /v1/payments/{paymentId}/events |
Return payment events by ID |
| GET | /v1/payments/{paymentId}/refunds |
Get all refunds for a payment |
| POST | /v1/payments/{paymentId}/refunds |
Submit a refund for a payment |
curl -X GET 'https://publicapi.payments.service.gov.uk/v1/payments' \ -H 'Authorization: YOUR_API_KEY'
{}
Data sourced from API Map. Always verify pricing and rate limits against the official GOV.UK Pay documentation.