# Creates a mandate

Creates a Mandate object.

You can only create a mandate manually for 'direct-debit'. The other supported pay methods
require authorization through a Payment.

Endpoint: POST /mandates
Version: v1
Security: apiKey

## Security:

  - `apiKey` (unknown)
    http bearer API key

## Request fields (application/json):

  - `customer` (string, required)
    The reference of the Customer you want to create the mandate for.

  - `pay_method` (string, required)
    The payment method of the mandate. Only 'direct-debit' is supported.
    Enum: "direct-debit"

  - `iban` (string)
    When using 'direct-debit', this is the IBAN of the bank account.

  - `account_holder_name` (string)
    When using 'direct-debit', this is the name of the account holder.

## Response 201:

  - `201` (unknown)
    mandate created

## Response 201 fields (application/json):

  - `id` (string, required)

  - `type` (string, required)
    Enum: "mandate"

  - `state` (string, required)

  - `customer` (string, required)

  - `pay_method` (string, required)

  - `created_at` (string, required)

  - `_links` (object, required)

  - `_links.self` (string, required)

  - `_links.customer` (string, required)

