---
title: "Get information about a single agreement for recurring payments"
method: GET
path: "/v1/agreements/{agreementId}"
tags: ["Agreements"]
---

# Get information about a single agreement for recurring payments

`GET /v1/agreements/{agreementId}`

## Request

- Base URL: `https://publicapi.payments.service.gov.uk`
- URL: `https://publicapi.payments.service.gov.uk/v1/agreements/{agreementId}`
- Auth: HTTP bearer

You can use this endpoint to get information about a single recurring payments agreement.

## Path parameters

- `agreementId` string, required

## Response `200`

OK - your request was successful.

- Agreement: 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 their card to make ongoing payments for a service.
  - `agreement_id` string: The unique ID GOV.UK Pay automatically associated with this agreement when you created it.
  - `cancelled_date` string: The date and time this agreement was cancelled. This value uses Coordinated Universal Time (UTC) and ISO 8601 format – `YYYY-MM-DDThh:mm:ss.sssZ`.
  - `created_date` string: The date and time you created this agreement. This value uses Coordinated Universal Time (UTC) and ISO 8601 format – `YYYY-MM-DDThh:mm:ss.sssZ`.
  - `description` string: The description you sent when creating this agreement.
  - `payment_instrument` PaymentInstrument
    - `CardDetails` CardDetailsFromResponse
      - `billing_address` Address: A structure representing the billing address of a card
        - `city` string: The paying user's city.
        - `country` string: The paying user’s country, displayed as a 2-character ISO-3166-1-alpha-2 code.
        - `line1` string: The first line of the paying user’s address.
        - `line2` string: The second line of the paying user’s address.
        - `postcode` string: The paying user's postcode.
      - `card_brand` string
      - `card_type` string
      - `cardholder_name` string
      - `expiry_date` string
      - `first_digits_card_number` string
      - `last_digits_card_number` string
    - `created_date` string: The date and time you created this payment instrument. This value uses Coordinated Universal Time (UTC) and ISO 8601 format – `YYYY-MM-DDThh:mm:ss.sssZ`.
    - `type` 'card': The type of payment instrument.
  - `reference` string: The reference you sent when creating this agreement.
  - `status` 'created' | 'active' | 'cancelled' | 'inactive': The status of this agreement. You can [read more about the meanings of each agreement status.](https://docs.payments.service.gov.uk/recurring_payments/#understanding-agreement-status)
  - `user_identifier` string: The identifier you sent when creating this agreement. `user_identifier` helps you identify users in your records.

## Other responses

- `401`: Your API key is missing or invalid. Read more about [authenticating GOV.UK Pay API requests](https://docs.payments.service.gov.uk/api_reference/#authentication)
- `404`: Not found
- `429`: Too many requests
- `500`: Downstream system error

---

[API](https://skmtc.dev/government-digital-service/apis/pay-api.md) - [All operations](https://skmtc.dev/government-digital-service/apis/pay-api/llms.txt) - [OpenAPI document](https://skmtc.dev/government-digital-service/apis/pay-api/revisions/9d66a9f54ae4?raw)
