> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tilta.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List mandates

> Retrieve the active and historical SEPA Direct Debit mandates that authorize Tilta to collect from a merchant's bank account.

Use this endpoint to review every Direct Debit mandate held for a merchant, including mandates that are no longer active.

<Tip>
  Keep the mandate reference alongside your own records. It is what correlates a SEPA Direct Debit transaction on the merchant's
  bank statement with the mandate that authorized it.
</Tip>


## OpenAPI

````yaml GET /v1/merchants/{external_id}/mandates
openapi: 3.0.0
info:
  version: 0.0.1
  title: Tilta API
  description: Tilta API documentation
servers:
  - url: https://api.tilta.io
    description: Tilta Production API
  - url: https://api.tilta-sandbox.io
    description: Tilta Sandbox API
security: []
paths:
  /v1/merchants/{external_id}/mandates:
    get:
      tags:
        - Mandates
      summary: List mandates
      description: Returns an array of active Direct Debit mandates.
      parameters:
        - schema:
            type: string
            maxLength: 100
            pattern: ^[a-zA-Z0-9-_]+$
            description: Unique identifier of a merchant.
          required: true
          name: external_id
          in: path
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  limit:
                    type: integer
                    minimum: 0
                    description: The number of taken records.
                    example: 100
                  offset:
                    type: integer
                    minimum: 0
                    description: The number of skipped records.
                    example: 0
                  total:
                    type: integer
                    minimum: 0
                    description: Total number of records
                    example: 140
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        mandate_id:
                          type: string
                          description: Unique mandate id
                          example: TLT PLT 00000001
                        iban:
                          type: string
                          description: Mandate IBAN.
                          example: DE03500105177178979259
                        created_at:
                          type: number
                          description: Mandate creation date (unix time in seconds).
                          example: 1582896122
                        updated_at:
                          type: number
                          description: Mandate update date (unix time in seconds).
                          example: 1582896122
                      required:
                        - mandate_id
                        - iban
                        - created_at
                        - updated_at
                required:
                  - limit
                  - offset
                  - total
                  - items
                additionalProperties: false
                description: A list of merchant mandates
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/badRequestSchema'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/unauthorizedRequestSchema'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/merchantNotFoundSchema'
      security:
        - bearerAuth: []
components:
  schemas:
    badRequestSchema:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: BAD_REQUEST
        error:
          type: string
          description: Error message for debugging purposes
          example: Request validation failed. 1 issue found.
        issues:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
                description: Issue code
                example: INVALID_TYPE
              path:
                type: string
                description: Issue path starting with body, params, querystring, or headers
                example: body.registered_at
              message:
                type: string
                description: Issue message for debugging purposes
                example: Invalid type
            required:
              - code
              - path
              - message
          description: List of issues
          example:
            - code: INVALID_TYPE
              path: body.registered_at
              message: Invalid type
      required:
        - code
        - error
        - issues
      description: Bad Request, see error message for details.
      example:
        code: BAD_REQUEST
        error: Request validation failed. 1 issue found.
        issues:
          - code: INVALID_TYPE
            path: body.registered_at
            message: Invalid type
    unauthorizedRequestSchema:
      type: object
      properties:
        error:
          type: string
          description: Error details.
          example: Unauthorized
        code:
          type: string
          description: Error code.
          example: UNAUTHORIZED
      required:
        - error
        - code
      description: Unauthorized Request.
      example:
        error: Unauthorized
        code: UNAUTHORIZED
    merchantNotFoundSchema:
      type: object
      properties:
        error:
          type: string
          description: Error details.
          example: No Entity found
        code:
          type: string
          description: Error code.
          example: NOT_FOUND
      required:
        - error
        - code
      description: Merchant not found
      example:
        error: No Entity found
        code: NOT_FOUND
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your Tilta API key, sent as `Bearer <key>`.

````