Agreements
Get information about a single agreement for recurring payments
You can use this endpoint to get information about a single recurring payments agreement.
get/v1/agreements/{agreementId}
Path parameters
agreementIdstring required
Returns the agreement with the matching agreement_id. GOV.UK Pay generated an agreement_id when you created the agreement.
Response
OK - your request was successful.
Example response
{
"agreement_id": "cgc1ocvh0pt9fqs0ma67r42l58",
"cancelled_date": "2022-07-08T14:33:00.000Z",
"created_date": "2022-07-08T14:33:00.000Z",
"description": "Dorset Council 2022/23 council tax subscription.",
"payment_instrument": {
"CardDetails": {
"billing_address": {
"city": "address city",
"country": "GB",
"line1": "address line 1",
"line2": "address line 2",
"postcode": "AB1 2CD"
}
},
"created_date": "2022-07-08T14:33:00.000Z"
},
"reference": "CT-22-23-0001",
"user_identifier": "user-3fb81107-76b7-4910"
}