---
title: "Search mandates"
method: GET
path: "/v1/directdebit/mandates"
tags: ["Direct Debit"]
---

# Search mandates

`GET /v1/directdebit/mandates`

Searches for mandates with the parameters provided. The Authorisation token needs to be specified in the 'Authorization' header as 'Authorization: Bearer YOUR_API_KEY_HERE'

## Query parameters

- `reference` string
- `state` string
- `bank_statement_reference` string
- `email` string
- `name` string
- `from_date` string
- `to_date` string
- `page` integer
- `display_size` integer

## Response `200`

OK

- SearchMandateResponse
  - `total` integer
  - `count` integer
  - `page` integer
  - `results` MandateResponse[]
    - `mandate_id` string — mandate id
    - `provider_id` string — provider id
    - `reference` string — service reference
    - `return_url` string — service return url
    - `state` MandateStatus
      - `status` string
      - `details` string
    - `_links` MandateLinks — payment, events, self and next links of a Mandate
      - `self` Link — A link related to a payment
        - `href` string
        - `method` string
      - `next_url` Link — A link related to a payment
        - `href` string
        - `method` string
      - `next_url_post` PostLink — A POST link related to a payment
        - `type` string
        - `params` object
        - `href` string
        - `method` string
      - `payments` Link — A link related to a payment
        - `href` string
        - `method` string
    - `bank_statement_reference` string — This value comes from GoCardless when a mandate has been created.
    - `created_date` string — mandate created date
    - `description` string — description
    - `payment_provider` string — payment_provider
    - `payer` Payer
      - `name` string
      - `email` string
  - `_links` SearchNavigationLinks — Links to navigate through pages
    - `self` Link — A link related to a payment
      - `href` string
      - `method` string
    - `first_page` Link — A link related to a payment
      - `href` string
      - `method` string
    - `last_page` Link — A link related to a payment
      - `href` string
      - `method` string
    - `prev_page` Link — A link related to a payment
      - `href` string
      - `method` string
    - `next_page` Link — A link related to a payment
      - `href` string
      - `method` string

## Other responses

- `401` — Credentials are required to access this resource
- `404` — Not found
- `422` — Invalid parameters: from_date, to_date, state, page, display_size. See Public API documentation for the correct data formats
- `429` — Too many requests
- `500` — Downstream system error

## Changes

- **2019-07-31** `f8066d82895d` — 1 info
  - api operation id `searchMandates` removed and replaced with `Search mandates`
- **2019-07-31** `ef50a2b1c4f1` — 1 info
  - api tag `Direct Debit` added
- **2019-07-25** `c7d45aee555b` — 1 info
  - the endpoint scheme security `Authorization` was added to the API
- **2019-07-18** `3a963e47bc48` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/alphagov/apis/gov-uk-pay-api/changes/v1/directdebit/mandates/get.md)

---

[API](https://skmtc.dev/alphagov/apis/gov-uk-pay-api.md) · [All operations](https://skmtc.dev/alphagov/apis/gov-uk-pay-api/llms.txt) · [OpenAPI document](https://skmtc.dev/alphagov/apis/gov-uk-pay-api/revisions/6e01c8022b87?raw)
