Skip to content
Banking/open banking

payments.service.gov.uk:payments

GOV.UK Pay sandbox and mock API

GOV.UK Pay API (This version is no longer maintained. See openapi/publicapi_spec.json for latest API specification) Writes persist, data moves on a schedule and every change can fire a signed webhook.

Operations
10
Collections
-
Event types
-
example request
curl https://your-payments-service-gov-uk-payments.slurry.io/v1/payments \
  -H "Authorization: Bearer slurry_sim_..."

Your simulation gets its own hostname, key and IP allow-list. Built from API version 1.0.3.

What gets simulated

Collections, relationships and state machines are worked out from the spec when you start the simulation.

  • State. Creates, updates and deletes persist and show up in later reads.
  • Behaviour. Records move through their states on a schedule you control, and you can fast-forward up to 30 days.
  • Webhooks. Every change emits a signed, retried event.
  • Failure. Per-endpoint errors, latency and chaos rules, on demand.

Operations

All 10.

  • GET/v1/payments
  • POST/v1/payments
  • GET/v1/payments/{paymentId}
  • POST/v1/payments/{paymentId}/cancel
  • POST/v1/payments/{paymentId}/capture
  • GET/v1/payments/{paymentId}/events
  • GET/v1/payments/{paymentId}/refunds
  • POST/v1/payments/{paymentId}/refunds
  • GET/v1/payments/{paymentId}/refunds/{refundId}
  • GET/v1/refunds