GOV.UK Pay · Schema
CreateAgreementRequest
The Agreement Request Payload
PaymentsGovernmentUKPublic SectorRESTPCI DSSRefundsRecurring PaymentsWebhook
Properties
| Name | Type | Description |
|---|---|---|
| description | string | A human-readable description of the purpose of the agreement for recurring payments. We’ll show the description to your user when they make their first payment to activate this agreement. Limited to 2 |
| reference | string | Associate a reference with this agreement to help you identify it. Limited to 255 characters. |
| user_identifier | string | Associate an identifier with the user who will enter into this agreement with your service.user_identifier is not unique – multiple agreements can have identical user_identifier values.You should not |
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/api-evangelist/gov-uk-pay/blob/main/json-schema/CreateAgreementRequest.json",
"title": "CreateAgreementRequest",
"type": "object",
"description": "The Agreement Request Payload",
"properties": {
"description": {
"type": "string",
"description": "A human-readable description of the purpose of the agreement for recurring payments. We\u2019ll show the description to your user when they make their first payment to activate this agreement. Limited to 255 characters.",
"example": "Dorset Council 2022/23 council tax subscription.",
"maxLength": 255,
"minLength": 1
},
"reference": {
"type": "string",
"description": "Associate a reference with this agreement to help you identify it. Limited to 255 characters.",
"example": "CT-22-23-0001",
"maxLength": 255,
"minLength": 1
},
"user_identifier": {
"type": "string",
"description": "Associate an identifier with the user who will enter into this agreement with your service.user_identifier is not unique \u2013 multiple agreements can have identical user_identifier values.You should not include personal data in user_identifier.",
"example": "user-3fb81107-76b7-4910",
"maxLength": 255,
"minLength": 1
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/CreateAgreementRequest"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.