Agreements
Create an agreement for recurring payments
You can use this endpoint to create a new agreement.
post/v1/agreements
Request body
Example request
{
"description": "Dorset Council 2022/23 council tax subscription.",
"reference": "CT-22-23-0001",
"user_identifier": "user-3fb81107-76b7-4910"
}Response
Created
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"
}