How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GOV.UK Pay Agreements API

The Agreements API from GOV.UK Pay — 3 operation(s) for agreements.

GOV.UK Pay Agreements API is one of 5 APIs that GOV.UK Pay publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Agreements. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, rate-limit docs, and a GitHub repository.

This API exposes 4 operations across 3 paths, and defines 10 schemas. It is described by OpenAPI 3.0.1, at version 1.0.3.

Requests are made against a single base URL, https://publicapi.payments.service.gov.uk.

4 operations 3 paths 10 schemas 2 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
1.0.3
Base URL
https://publicapi.payments.service.gov.uk/
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

GOV.UK Pay Agreements API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (BearerAuth).

  • BearerAuth — GOV.UK Pay authenticates API calls with [OAuth2 HTTP bearer tokens](http://tools.ietf.org/html/rfc6750). You need to use an "Authorization" HTTP header to prov…

Paths & Operations 4

Across 3 paths, the API surfaces 4 operations — 2 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Agreements 4
GET
/v1/agreements
Search agreements for recurring payments
Search agreements 4 params → 200401404422429500
POST
/v1/agreements
Create an agreement for recurring payments
Create an agreement body → 201400401422429500
GET
/v1/agreements/{agreementId}
Get information about a single agreement for recurring payments
Get an agreement 1 param → 200401404429500
POST
/v1/agreements/{agreementId}/cancel
Cancel an agreement for recurring payments
Cancel an agreement 1 param → 204400401404429500

Schemas 10

The contract defines 10 schemas that model the data the API accepts and returns. The most detailed are Agreement (8 properties), CardDetailsFromResponse (7 properties), AgreementSearchResults (5 properties), Address (5 properties). Each schema is shown below with its type and property counts.

CardDetailsFromResponse
object
7 properties
AgreementSearchResults
object
5 properties
PaymentInstrument
object
3 properties
CreateAgreementRequest
object
The Agreement Request Payload
3 properties
ErrorResponse
object
An error response
2 properties
Agreement
object
Contains information about a user's agreement for recurring payments. An agreement represents an understanding between you and your paying user that you'll use…
8 properties
RequestError
object
A Request Error response
4 properties
Link
object
A link related to a payment
2 properties
SearchNavigationLinks
object
Links to navigate through pages of your search.
5 properties
Address
object
A structure representing the billing address of a card
5 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gov-uk-pay-agreements-api-openapi.yml Raw ↑

Other APIs GOV.UK Pay publishes across the network.

GOV.UK Pay Authorise card payments API
GOV.UK Pay Card payments API
GOV.UK Pay Disputes API
GOV.UK Pay Refunding card payments API
Where this information came from

This is an independent, third-party profile of GOV.UK Pay Agreements API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.