G

GOV.UK Pay API

by GOV.UK Pay Free tier

GOV.UK Pay API (This version is no longer maintained. See openapi/publicapi_spec.json for latest API specification)

paymentspayments

Quick Reference

Base URL 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
Pricing
28
Latency
20
Depth
65

Authentication

API key in the request header (Authorization)

Authorization: YOUR_API_KEY

Pricing

Model subscription Starting price Enterprise / contact sales Free quota None

UK Government payment platform. Free for public sector use — no transaction fees (payment processor fees still apply via bank/card networks). Built by GDS.

Key Endpoints

MethodPathDescription
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

Sample Request

curl -X GET 'https://publicapi.payments.service.gov.uk/v1/payments' \
  -H 'Authorization: YOUR_API_KEY'

Sample Response

{}

Data sourced from API Map. Always verify pricing and rate limits against the official GOV.UK Pay documentation.