---
updatedAt: 2026-05-27T09:42:56.000Z
agentTools:
  projectIndex: https://docs.truelayer.com/llms.txt
---

# Search Payments providers

Returns a list of payments providers.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Payments API v3",
    "description": "Reference documentation for Payments API v3\n",
    "version": "1",
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "servers": [
    {
      "url": "https://api.truelayer-sandbox.com",
      "description": "Sandbox server"
    },
    {
      "url": "https://api.truelayer.com",
      "description": "Production server"
    }
  ],
  "tags": [
    {
      "name": "Payments",
      "description": "Payments endpoints to create and manage payments resources. You can use this resource to create payments to\na GBP or a EUR account (limited to available countries), or your merchant account managed by TrueLayer.\n"
    },
    {
      "name": "Payment links",
      "description": "Payment Links endpoints to create and manage payment links resources. You can use this resource to create payment links to share with your end users so they can make payments into your merchant account managed by TrueLayer.\n"
    },
    {
      "name": "Payments providers",
      "description": "Endpoints to retrieve payments providers.\n"
    },
    {
      "name": "Payouts",
      "description": "Payouts endpoints facilitate money movement from your TrueLayer managed merchant account to\npayment sources, or arbitrary external accounts\n"
    },
    {
      "name": "Merchant accounts",
      "description": "Endpoints to interact with your TrueLayer managed merchant account\n"
    },
    {
      "name": "Mandates",
      "description": "# Payment mandates\n\nMandates are a payment source.\n\nA Payment Mandate is a single consent, given by an end user, to authorise repeated payments on a schedule or ad-hoc basis. Depending on the use case, the end user may not be required to authorise payments against an existing mandate.\n\nThe consent given for a mandate will always include the same debtor (or remitter) account. Depending on\nthe type of Mandate, the creditor (or beneficiary) account may or may not always be the same.\n\n## VRP (sweeping/commercial)\n\nVariable Recurring Payments (VRP) are an Open Banking specification allowing an end user to authorize repeated payments from their bank account to another account they own.\n\nThe end user only needs to give this consent once. Payments against this consent can then be initiated by a PSP to move funds between accounts with no further input from the end user.\n\nWhen establishing this consent, the end user will agree to certain parameters that will enforce limits such as how long the consent will be valid for and what maximum value of transfer will be allowed over the consent lifetime. Other limits can be set for timeframes within this lifetime.\n\nA new VRP Mandate is created by calling `POST /v3/mandates`, using a bearer token.\n\nOpenBanking VRP Mandates require the end user to go through an authorization flow -\nthe status of the newly created mandate will therefore be `authorization_required`.\nThe mandate resource will contain a `mandate_token` that can be safely shared with the UI, where the authorization flow will be taking place.\n\nThe UI can use the `mandate_token` to kick off the **authorization journey**.\nAuthorizing an OpenBanking mandate usually requires multiple **actions**:\n  - collect information from the end user (e.g. select a banking institution);\n  - redirect to a bank's website or mobile app;\n  - etc.\n\nThe UI must specify, using `POST /v3/mandates/authorization_flow`, which **actions** it supports.\nConfiguration parameters can be specified for each action type - e.g. what `return_uri` to\nuse for a `redirect` step, if \"direct return\" is enabled (regulated merchant), etc.\n\nAfter the call to `POST /v3/mandates/authorization_flow`, the mandate status will transition to `authorizing`.\nThe UI must now inspect the `authorization_flow.actions.next` field in the mandate resource and submit the required\ninformation via `POST /v3/mandates/authorization_flow/actions`.\n\nThe mandate might then transition into `authorized`, or stay in `authorizing` with a different next action.\n\nShould the end user and/or provider decide to reject the authorization, the mandate status will transition to `revoked`.\n\nPayments can only be made against a mandate once it has transitioned to `authorized`. Those payments\nwill then need to fall within the boundaries set by the consent parameters.\n\nShould the end user and/or provider decide to reject the authorization, the mandate status will transition to `revoked`.\n"
    }
  ],
  "paths": {
    "/v3/payments-providers/search": {
      "post": {
        "tags": [
          "Payments providers"
        ],
        "summary": "Search Payments providers",
        "operationId": "search-payment-providers",
        "description": "Returns a list of payments providers.\n",
        "security": [
          {
            "OAuth2": [
              "payments"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json; charset=UTF-8": {
              "schema": {
                "$ref": "#/components/schemas/SearchPaymentsProvidersRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payment providers",
            "headers": {
              "Tl-Trace-Id": {
                "$ref": "#/components/headers/Tl-Trace-Id"
              }
            },
            "content": {
              "application/json; charset=UTF-8": {
                "schema": {
                  "$ref": "#/components/schemas/SearchPaymentsProviders"
                }
              }
            }
          },
          "400": {
            "description": "Invalid Parameters",
            "headers": {
              "Tl-Trace-Id": {
                "$ref": "#/components/headers/Tl-Trace-Id"
              }
            },
            "content": {
              "application/problem+json; charset=UTF-8": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsInvalidParameters"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated",
            "headers": {
              "Tl-Trace-Id": {
                "$ref": "#/components/headers/Tl-Trace-Id"
              }
            },
            "content": {
              "application/problem+json; charset=UTF-8": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsUnauthenticated"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "Tl-Trace-Id": {
                "$ref": "#/components/headers/Tl-Trace-Id"
              }
            },
            "content": {
              "application/problem+json; charset=UTF-8": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsForbidden"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limit Exceeded",
            "headers": {
              "Tl-Trace-Id": {
                "$ref": "#/components/headers/Tl-Trace-Id"
              }
            },
            "content": {
              "application/problem+json; charset=UTF-8": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsRateLimitExceeded"
                }
              }
            }
          },
          "500": {
            "description": "Unknown Error",
            "headers": {
              "Tl-Trace-Id": {
                "$ref": "#/components/headers/Tl-Trace-Id"
              }
            },
            "content": {
              "application/problem+json; charset=UTF-8": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsUnknownError"
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {
    "payment_links": {
      "post": {
        "tags": [
          "Payment links"
        ],
        "summary": "Payment link webhooks",
        "operationId": "webhook-payment-links",
        "description": "Sent to the webhook URI you registered in Console when a payment is created from a payment link and when a payment link expires.",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookSignatureHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/WebhookPaymentLinkPaymentCreated"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookPaymentLinkDisabled"
                  }
                ],
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "payment_link_payment_created": "#/components/schemas/WebhookPaymentLinkPaymentCreated",
                    "payment_link_disabled": "#/components/schemas/WebhookPaymentLinkDisabled"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook Handled"
          }
        },
        "security": []
      }
    },
    "payments": {
      "post": {
        "tags": [
          "Payments"
        ],
        "summary": "Payment webhooks",
        "operationId": "webhook-payments",
        "description": "Sent to the webhook URI you registered in Console when:\n- a payment is authorised.\n- a payment is executed.\n- a payment fails.\n- a payment settles.\n- a payment is creditable, according to criteria you specified.\n- a payment that has been executed has not settled within a duration you specified.\n- an indemnity claim is made against a payment.\n- a payment is reversed.\n- a Direct Debit payment arrived in the merchant account. The payment can still be reversed at this stage. Contact your ISM or CSM to know more.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookSignatureHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/WebhookPaymentAuthorized"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookPaymentExecuted"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookPaymentFailed"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookPaymentSettled"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookPaymentCreditable"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookPaymentSettlementStalled"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookPaymentDisputed"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookPaymentReversed"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookPaymentFundsReceived"
                  }
                ],
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "payment_authorized": "#/components/schemas/WebhookPaymentAuthorized",
                    "payment_executed": "#/components/schemas/WebhookPaymentExecuted",
                    "payment_failed": "#/components/schemas/WebhookPaymentFailed",
                    "payment_settled": "#/components/schemas/WebhookPaymentSettled",
                    "payment_creditable": "#/components/schemas/WebhookPaymentCreditable",
                    "payment_settlement_stalled": "#/components/schemas/WebhookPaymentSettlementStalled",
                    "payment_disputed": "#/components/schemas/WebhookPaymentDisputed",
                    "payment_reversed": "#/components/schemas/WebhookPaymentReversed",
                    "payment_funds_received": "#/components/schemas/WebhookPaymentFundsReceived"
                  }
                }
              },
              "examples": {
                "payment_authorized_example_1": {
                  "summary": "Example of a payment_authorized webhook",
                  "value": {
                    "type": "payment_authorized",
                    "event_version": 1,
                    "event_id": "c1e475a8-f838-4a35-95df-51465d66a61d",
                    "payment_id": "ecad2b93-efe9-4f25-b82d-920248a9c1ad",
                    "payment_method": {
                      "type": "bank_transfer",
                      "provider_id": "mock-payments-gb-redirect",
                      "scheme_id": "faster_payments_service"
                    },
                    "payment_source": {
                      "account_identifiers": [
                        {
                          "type": "sort_code_account_number",
                          "sort_code": "010101",
                          "account_number": "00000011"
                        }
                      ],
                      "account_holder_name": "JOHN SANDBRIDGE"
                    },
                    "authorized_at": "2023-06-27T09:54:55.777Z"
                  }
                },
                "payment_executed_example_gb": {
                  "summary": "Example of a payment_executed webhook in the UK",
                  "value": {
                    "type": "payment_executed",
                    "event_version": 1,
                    "event_id": "b8d4dda0-ff2c-4d77-a6da-4615e4bad941",
                    "payment_id": "60c0a60ed8d7-4e5b-ac79-401b1d8a8633",
                    "executed_at": "2021-12-25T15:00:00.000Z",
                    "payment_method": {
                      "type": "bank_transfer",
                      "provider_id": "mock-payments-gb-redirect",
                      "scheme_id": "faster_payments_service"
                    },
                    "payment_source": {
                      "account_identifiers": [
                        {
                          "type": "sort_code_account_number",
                          "sort_code": "010101",
                          "account_number": "00000001"
                        }
                      ],
                      "account_holder_name": "JOHN SANDBRIDGE"
                    }
                  }
                },
                "payment_executed_example_de": {
                  "summary": "Example of a payment_executed webhook in DE",
                  "value": {
                    "type": "payment_executed",
                    "event_version": 1,
                    "event_id": "b8d4dda0-ff2c-4d77-a6da-4615e4bad941",
                    "payment_id": "60c0a60ed8d7-4e5b-ac79-401b1d8a8633",
                    "executed_at": "2021-12-25T15:00:00.000Z",
                    "payment_method": {
                      "type": "bank_transfer",
                      "provider_id": "mock-payments-de-redirect",
                      "scheme_id": "sepa_credit_transfer"
                    },
                    "settlement_risk": {
                      "category": "low_risk"
                    }
                  }
                },
                "payment_failed_example": {
                  "summary": "Example of a payment_failed webhook",
                  "value": {
                    "type": "payment_failed",
                    "event_version": 1,
                    "event_id": "b8d4dda0-ff2c-4d77-a6da-4615e4bad941",
                    "payment_id": "60c0a60ed8d7-4e5b-ac79-401b1d8a8633",
                    "failed_at": "2021-12-25T15:00:00.000Z",
                    "failure_stage": "authorizing",
                    "failure_reason": "provider_rejected",
                    "payment_method": {
                      "type": "mandate",
                      "mandate_id": "d65f3521-fa55-44fc-9a75-ba43456de7f2"
                    },
                    "payment_source": {
                      "account_holder_name": "HOLDER NAME",
                      "account_identifiers": [
                        {
                          "type": "sort_code_account_number",
                          "sort_code": "111111",
                          "account_number": "00000111"
                        }
                      ]
                    }
                  }
                },
                "payment_settled_example": {
                  "summary": "Example of a payment_settled webhook",
                  "value": {
                    "type": "payment_settled",
                    "event_version": 1,
                    "event_id": "b8d4dda0-ff2c-4d77-a6da-4615e4bad941",
                    "payment_id": "60c0a60ed8d7-4e5b-ac79-401b1d8a8633",
                    "payment_method": {
                      "type": "bank_transfer",
                      "provider_id": "mock-payments-de-redirect",
                      "scheme_id": "sepa_credit_transfer"
                    },
                    "settled_at": "2021-12-25T15:00:00.000Z",
                    "payment_source": {
                      "account_identifiers": [
                        {
                          "type": "iban",
                          "iban": "DE89370400440532013000"
                        }
                      ],
                      "id": "1f111d3c-9427-43be-1111-1111219d111c",
                      "account_holder_name": "HOLDER NAME"
                    },
                    "user_id": "ec01ece1-1dbe-48f1-82b2-bce8cfa44d08"
                  }
                },
                "payment_settlement_stalled_example": {
                  "summary": "Example of a payment_settlement_stalled webhook",
                  "value": {
                    "type": "payment_settlement_stalled",
                    "event_id": "b8d4dda0-ff2c-4d77-a6da-4615e4bad941",
                    "event_version": 1,
                    "payment_id": "60c0a60ed8d7-4e5b-ac79-401b1d8a8633",
                    "settlement_stalled_at": "2023-06-13T15:00:00.000Z"
                  }
                },
                "payment_reversed_example": {
                  "summary": "Example of a payment_reversed webhook",
                  "value": {
                    "type": "payment_reversed",
                    "event_version": 1,
                    "event_id": "744b2fbe-9000-4eca-be1c-eee11120a096",
                    "payment_id": "039f4e28-8f5b-4d81-8089-61a90df61214",
                    "reversal_reason": "corrected",
                    "metadata": {
                      "WMbReElDgIrPY2XL2rx0rlvvenuQU8bSIwwiTeMHlIHsWT6rksA1IuB2nTeBtEgatynHoBFVlmf3gWvHnXZNxm8NH7NWUk4rz4D4FPYydT3peeOwyXgYE2xvH7VK9EZpCVpS8Cy2KRGtJQYNWAq9": "mjssd94QlFTtN7NGxwHQ",
                      "GkyDLvZ03F51P5uzX7q6qFcdcYz5Bd9xEQuc2vesynZNMkyasfBwCcsZ5RukUSqsZJn3pdoHp3R4p7uVnPTXa6LpTmSOB9cPjeeFzqSaI32XI17RtQxrmP3lqYRS7rAbLQJTwCeVoIPgNPOnOQp9vTfuyaeJil0MhZc7dOOkRMp0wwaNUP4wmjNHTRlSTUQu8lWtyP2p6wkoJ8nEUPfNTEMqVFuugmeNE8EbcimXqokQVxR9dtxlzzvzjJPrhYeA40Kkm0JbScCYuhlVmoLPooVXhL3LoKuYweufm4wo3": "XfPDALsbPk45mzElYJDJVnqt"
                    },
                    "reversed_at": "2025-04-04T12:20:10.448Z"
                  }
                },
                "payment_creditable_example": {
                  "summary": "Example of a payment_creditable webhook",
                  "value": {
                    "type": "payment_creditable",
                    "event_version": 1,
                    "event_id": "b8d4dda0-ff2c-4d77-a6da-4615e4bad941",
                    "payment_id": "60c0a60ed8d7-4e5b-ac79-401b1d8a8633",
                    "creditable_at": "2023-06-13T15:00:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook Handled"
          }
        },
        "security": []
      }
    },
    "refunds": {
      "post": {
        "tags": [
          "Payments"
        ],
        "summary": "Refund webhooks",
        "x-readme": {
          "code-samples": [
            {
              "language": "json",
              "name": "refund_executed Example",
              "correspondingExample": "refund_executed"
            },
            {
              "language": "json",
              "name": "refund_failed Example",
              "correspondingExample": "refund_failed"
            }
          ]
        },
        "operationId": "webhook-refunds",
        "description": "Sent to the webhook URI you registered in Console when a refund succeeds or fails.",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookSignatureHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/WebhookRefundExecuted"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookRefundFailed"
                  }
                ],
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "refund_executed": "#/components/schemas/WebhookRefundExecuted",
                    "refund_failed": "#/components/schemas/WebhookRefundFailed"
                  }
                }
              },
              "examples": {
                "refund_executed": {
                  "summary": "Refund Executed",
                  "value": {
                    "type": "refund_executed",
                    "event_version": 1,
                    "event_id": "b8d4dda0-ff2c-4d77-a6da-4615e4bad941",
                    "refund_id": "43d12d0f-d775-410f-aaff-482200c17017",
                    "payment_id": "0afd1f6a-f611-48ce-9488-321129bb3a70",
                    "executed_at": "2021-12-25T15:00:00.000Z",
                    "scheme_id": "faster_payments_service",
                    "metadata": {
                      "prop1": "value1",
                      "prop2": "value2"
                    }
                  }
                },
                "refund_failed": {
                  "summary": "Refund Failed",
                  "value": {
                    "type": "refund_failed",
                    "event_version": 1,
                    "event_id": "c9e5eeb1-aa3d-5e88-b7eb-5726f5e5c052",
                    "refund_id": "54e23e1a-a886-521a-bbaa-593311cc4b81",
                    "payment_id": "1bae2a7b-a722-59dd-a599-432240dd4b81",
                    "failed_at": "2021-12-25T15:30:00.000Z",
                    "failure_reason": "insufficient_funds",
                    "metadata": {
                      "prop1": "value1",
                      "prop2": "value2"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook Handled"
          }
        },
        "security": []
      }
    },
    "payouts": {
      "post": {
        "tags": [
          "Payouts"
        ],
        "summary": "Payout webhooks",
        "operationId": "webhook-payouts",
        "description": "Sent to the webhook URI you registered in Console when a payout succeeds or fails.",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookSignatureHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/WebhookPayoutExecuted"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookPayoutFailed"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookPayoutAttemptFailed"
                  }
                ],
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "payout_executed": "#/components/schemas/WebhookPayoutExecuted",
                    "payout_failed": "#/components/schemas/WebhookPayoutFailed",
                    "payout_attempt_failed": "#/components/schemas/WebhookPayoutAttemptFailed"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook Handled"
          }
        },
        "security": []
      }
    },
    "mandates": {
      "post": {
        "tags": [
          "Mandates"
        ],
        "summary": "Mandate webhooks",
        "operationId": "webhook-mandates",
        "description": "Sent to the webhook URI you registered in Console when a mandate becomes authorized, fails, or is revoked.",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookSignatureHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/WebhookMandateAuthorized"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookMandateFailed"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookMandateRevoked"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookMandateRemitterChanged"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookMandateInitialPaymentCreated"
                  }
                ],
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "mandate_authorized": "#/components/schemas/WebhookMandateAuthorized",
                    "mandate_failed": "#/components/schemas/WebhookMandateFailed",
                    "mandate_revoked": "#/components/schemas/WebhookMandateRevoked",
                    "mandate_remitter_changed": "#/components/schemas/WebhookMandateRemitterChanged",
                    "mandate_initial_payment_created": "#/components/schemas/WebhookMandateInitialPaymentCreated"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook Handled"
          }
        },
        "security": []
      }
    },
    "merchant_accounts": {
      "post": {
        "tags": [
          "Merchant accounts"
        ],
        "summary": "Merchant account webhooks",
        "operationId": "webhook-merchant-accounts",
        "description": "Sent to the webhook URI you registered in Console when you receive a payment not initiated through TrueLayer to your merchant account.",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookSignatureHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/WebhookExternalPaymentReceived"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookBalanceNotification"
                  }
                ],
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "external_payment_received": "#/components/schemas/WebhookExternalPaymentReceived",
                    "balance_notification": "#/components/schemas/WebhookBalanceNotification"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook Handled"
          }
        },
        "security": []
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://auth.truelayer.com/connect/token",
            "scopes": {
              "payments": "for accessing all the endpoints of Payments API v3"
            }
          }
        }
      }
    },
    "parameters": {
      "WebhookSignatureHeader": {
        "in": "header",
        "name": "Tl-Signature",
        "description": "A JWS with detached content, verifiable with our public key.\nSee [Webhook Request Signing](/docs/configure-webhooks-for-your-integration#validate-the-signature-of-received-webhooks)\n",
        "schema": {
          "type": "string"
        },
        "required": true
      }
    },
    "schemas": {
      "CurrencyCode": {
        "type": "string",
        "enum": [
          "GBP",
          "EUR"
        ],
        "example": "GBP"
      },
      "CountryCode": {
        "type": "string",
        "enum": [
          "AT",
          "BE",
          "DE",
          "DK",
          "ES",
          "FI",
          "FR",
          "GB",
          "IE",
          "IT",
          "LT",
          "NL",
          "NO",
          "PL",
          "PT",
          "RO"
        ]
      },
      "AccountIdentifierScan": {
        "type": "object",
        "title": "Sort Code + Account Number",
        "description": "The scheme identifier for a bank account participating in UK payment schemes.",
        "required": [
          "type",
          "sort_code",
          "account_number"
        ],
        "properties": {
          "type": {
            "description": "The type of scheme identifier.",
            "type": "string",
            "enum": [
              "sort_code_account_number"
            ]
          },
          "sort_code": {
            "description": "6 digit sort code (no spaces or dashes). pattern: `^[0-9]{6}$`",
            "type": "string",
            "minLength": 6,
            "maxLength": 6,
            "example": "560029",
            "pattern": "^[0-9]{6}$"
          },
          "account_number": {
            "description": "8 digit account number. pattern: `^[0-9]{8}$`",
            "type": "string",
            "minLength": 8,
            "maxLength": 8,
            "example": "26207729",
            "pattern": "^[0-9]{8}$"
          }
        }
      },
      "AccountIdentifierIban": {
        "type": "object",
        "title": "IBAN",
        "description": "The international bank account number.",
        "required": [
          "type",
          "iban"
        ],
        "properties": {
          "type": {
            "description": "The type of scheme identifier.",
            "type": "string",
            "enum": [
              "iban"
            ]
          },
          "iban": {
            "description": "Valid International Bank Account Number (no spaces). Consists of a 2 letter country code, followed by 2 check digits, and then by up to 30 alphanumeric characters (also known as the BBAN). pattern: `^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$`",
            "type": "string",
            "minLength": 15,
            "maxLength": 34,
            "example": "GB32CLRB04066800012315",
            "pattern": "^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$"
          }
        }
      },
      "AccountIdentifierBban": {
        "type": "object",
        "title": "BBAN",
        "description": "Basic bank account number.\n",
        "required": [
          "type",
          "bban"
        ],
        "properties": {
          "type": {
            "description": "The type of scheme identifier.",
            "type": "string",
            "enum": [
              "bban"
            ]
          },
          "bban": {
            "description": "Valid Basic Bank Account Number (no spaces). Consists of up to 30 alphanumeric characters, with a fixed length per country. Forms the latter part of the IBAN as described above.",
            "type": "string"
          }
        }
      },
      "AccountIdentifierNrb": {
        "type": "object",
        "title": "NRB",
        "description": "The scheme identifier for a bank account participating in Poland's payment schemes.\n",
        "required": [
          "type",
          "nrb"
        ],
        "properties": {
          "type": {
            "description": "The type of scheme identifier.",
            "type": "string",
            "enum": [
              "nrb"
            ]
          },
          "nrb": {
            "description": "Valid Polish NRB (no spaces). Consists of 2 check digits, followed by an 8 digit bank branch number, and then by a 16 digit bank account number. Equivalent to a Polish IBAN with the country code removed.",
            "type": "string"
          }
        }
      },
      "PaymentAccountIdentifier": {
        "title": "Account Identifier",
        "oneOf": [
          {
            "$ref": "#/components/schemas/AccountIdentifierScan"
          },
          {
            "$ref": "#/components/schemas/AccountIdentifierIban"
          },
          {
            "$ref": "#/components/schemas/AccountIdentifierBban"
          },
          {
            "$ref": "#/components/schemas/AccountIdentifierNrb"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "sort_code_account_number": "#/components/schemas/AccountIdentifierScan",
            "iban": "#/components/schemas/AccountIdentifierIban",
            "bban": "#/components/schemas/AccountIdentifierBban",
            "nrb": "#/components/schemas/AccountIdentifierNrb"
          }
        },
        "description": "A unique account identifier for an external account."
      },
      "MerchantAccountId": {
        "type": "string",
        "description": "Unique ID for the Merchant Account",
        "format": "uuid",
        "example": "AB8FA060-3F1B-4AE8-9692-4AA3131020D0"
      },
      "UserId": {
        "type": "string",
        "description": "Unique ID for the User",
        "example": "f9b48c9d-176b-46dd-b2da-fe1a2b77350c"
      },
      "Metadata": {
        "type": "object",
        "description": "Optional field for adding custom key-value data to a resource. This object can contain a maximum of 10 key-value pairs, each with a key with a maximum length of 40 characters and a non-null value with a maximum length of 500 characters.",
        "maxProperties": 10,
        "additionalProperties": {
          "type": "string",
          "maxLength": 500
        },
        "example": {
          "prop1": "value1",
          "prop2": "value2"
        }
      },
      "PaymentLinkId": {
        "type": "string",
        "description": "Unique ID for the Payment Link",
        "example": "aKiW35RWSyF"
      },
      "ProblemDetailsInvalidParameters": {
        "title": "Invalid Parameters",
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "trace_id",
          "detail",
          "errors"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "https://docs.truelayer.com/docs/payments-api-errors#invalid-parameters"
            ]
          },
          "title": {
            "type": "string",
            "enum": [
              "Invalid Parameters"
            ]
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "enum": [
              400
            ]
          },
          "trace_id": {
            "type": "string",
            "description": "The TrueLayer trace identifier for the request",
            "example": "96ce50247f87f540bb2d86771b3728b8"
          },
          "detail": {
            "type": "string",
            "description": "A human readable explanation specific to this occurrence of the\nproblem.\n",
            "example": "The request body was invalid."
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "minItems": 1
            },
            "example": {
              "beneficiary.type": [
                "Must be either merchant_account or external_account"
              ]
            }
          }
        }
      },
      "ProblemDetailsUnauthenticated": {
        "title": "Unauthenticated",
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "trace_id",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "https://docs.truelayer.com/docs/payments-api-errors#unauthenticated"
            ]
          },
          "title": {
            "type": "string",
            "enum": [
              "Unauthenticated"
            ]
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "enum": [
              401
            ]
          },
          "trace_id": {
            "type": "string",
            "description": "The TrueLayer trace identifier for the request",
            "example": "96ce50247f87f540bb2d86771b3728b8"
          },
          "detail": {
            "type": "string",
            "description": "A human readable explanation specific to this occurrence of the\nproblem.\n",
            "example": "A Bearer token must be provided in the Authorization header."
          }
        }
      },
      "ProblemDetailsForbidden": {
        "title": "Forbidden",
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "trace_id",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "https://docs.truelayer.com/docs/payments-api-errors#forbidden"
            ]
          },
          "title": {
            "type": "string",
            "enum": [
              "Forbidden"
            ]
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "enum": [
              403
            ]
          },
          "trace_id": {
            "type": "string",
            "description": "The TrueLayer trace identifier for the request",
            "example": "96ce50247f87f540bb2d86771b3728b8"
          },
          "detail": {
            "type": "string",
            "description": "A human readable explanation specific to this occurrence of the\nproblem.\n",
            "example": "The token used for Authorization is not authorized to perform the request."
          }
        }
      },
      "ProblemDetailsRateLimitExceeded": {
        "title": "Rate Limit Exceeded",
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "trace_id",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "https://docs.truelayer.com/docs/payments-api-errors#rate-limit-exceeded"
            ]
          },
          "title": {
            "type": "string",
            "enum": [
              "Rate Limit Exceeded"
            ]
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "enum": [
              429
            ]
          },
          "trace_id": {
            "type": "string",
            "description": "The TrueLayer trace identifier for the request",
            "example": "96ce50247f87f540bb2d86771b3728b8"
          },
          "detail": {
            "type": "string",
            "description": "A human readable explanation specific to this occurrence of the\nproblem.\n",
            "example": "Too many API requests have been received within the allowed time frame."
          }
        }
      },
      "ProblemDetailsUnknownError": {
        "title": "Unknown Error",
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "trace_id",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "https://docs.truelayer.com/docs/payments-api-errors#unknown-error"
            ]
          },
          "title": {
            "type": "string",
            "enum": [
              "Unknown Error"
            ]
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "enum": [
              500
            ]
          },
          "trace_id": {
            "type": "string",
            "description": "The TrueLayer trace identifier for the request",
            "example": "96ce50247f87f540bb2d86771b3728b8"
          },
          "detail": {
            "type": "string",
            "description": "A human readable explanation specific to this occurrence of the\nproblem.\n",
            "example": "An error occurred. Please contact customer support."
          }
        }
      },
      "PaymentId": {
        "type": "string",
        "description": "Unique ID for the Payment",
        "example": "0afd1f6a-f611-48ce-9488-321129bb3a70"
      },
      "RetryStandard": {
        "title": "Standard",
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Standard retry feature increases payment conversion by automatically retrying payments that failed due to a provider error.\n\nThis feature must be enabled for clients, otherwise the request will fail with a 403 Forbidden status code.\n",
            "enum": [
              "standard"
            ]
          },
          "for": {
            "type": "string",
            "description": "How long to retry this payment for (between `30m` - `6h`).\n\nThis should be the number followed by a unit (e.g `m`, `h` or `d` for minute, hour or day respectively).\n",
            "example": "30m",
            "default": "30m"
          }
        },
        "required": [
          "type"
        ]
      },
      "RetrySmart": {
        "title": "Smart",
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Smart retry feature increases payment conversion by automatically retrying failed payments based on various criteria.\n\nThis feature must be enabled for clients, otherwise the request fails with the 403 Forbidden status code.\n",
            "enum": [
              "smart"
            ]
          },
          "for": {
            "type": "string",
            "description": "How long to retry this payment for (between `30m` - `90d`).\n\nThis should be the number followed by a unit (e.g `m`, `h` or `d` for minute, hour or day respectively).\n",
            "example": "1h",
            "default": "24h"
          },
          "ensure_minimum_balance_in_minor": {
            "type": "number",
            "minimum": 1,
            "description": "The payment is attempted only if the remaining balance in the account is at least this amount.\n\nThis should be 'cent' value, e.g. 100 = 1GBP.\n\nPayment will only be attempted if the available balance (including any overdrafts) is at least `ensure_minimum_balance_in_minor` + `amount_in_minor`.\n"
          }
        },
        "required": [
          "type"
        ]
      },
      "Retry": {
        "title": "Retry",
        "type": "object",
        "description": "> 🚧 This is an opt-in feature.\n> \n> Please Contact us to enable this feature.\n\nOptional field to enable Retry for this payment.\n\nRetry is performed as frequently as possible based on the nature of the error in order to maximise conversion.\nRead more about [retry here](doc:create-a-payment-on-a-mandate#optional-enable-retries-for-failed-payments).\n",
        "oneOf": [
          {
            "$ref": "#/components/schemas/RetryStandard"
          },
          {
            "$ref": "#/components/schemas/RetrySmart"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "standard": "#/components/schemas/RetryStandard",
            "smart": "#/components/schemas/RetrySmart"
          }
        }
      },
      "PaymentMethodMandate": {
        "title": "Mandate",
        "type": "object",
        "required": [
          "type",
          "mandate_id"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of payment method.",
            "enum": [
              "mandate"
            ]
          },
          "user_interaction": {
            "type": "string",
            "description": "It indicates whether the user is present at the moment this payment is created or not. \nThis field can have a value only if the mandate is commercial.\nIt's required when the commercial mandate was created with the `use_case` field set.\n",
            "enum": [
              "present",
              "not_present"
            ]
          },
          "mandate_id": {
            "type": "string",
            "description": "The identifier of the mandate.\n"
          },
          "reference": {
            "type": "string",
            "description": "Useful for reconciliation needs, it can only be set for mandates with a `beneficiary` type of `external_account`. Recommended max 18 alphanumeric characters.\n"
          },
          "retry": {
            "$ref": "#/components/schemas/Retry"
          }
        }
      },
      "Icon": {
        "title": "Icon",
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Configuration for the type of icon. Available options are:\n- `default`: Default icon with no background (SVG).\n- `extended`: Extended as a square with an appropriate background colour (SVG).\n- `extended_small`: Extended icon with a 192x192 pixel resolution (JPEG).\n- `extended_medium`: Extended icon with a 432x432 pixel resolution (JPEG).\n- `extended_large`: Extended icon with an 864x864 pixel resolution (JPEG).\n",
            "enum": [
              "default",
              "extended",
              "extended_small",
              "extended_medium",
              "extended_large"
            ]
          }
        }
      },
      "BranchesAuthorizationFlow": {
        "title": "Branches",
        "type": "object"
      },
      "AdditionalInputType": {
        "type": "string",
        "enum": [
          "text",
          "text_with_image",
          "select"
        ],
        "description": "Possible input types for the `form` action:\n * `text` - The end user must enter some text\n * `text_with_image` - The end user must enter some text with an accompanying image (e.g. QR code)\n * `select` - The end user must select an option\n"
      },
      "ConsentSupportedPis": {
        "type": "object",
        "title": "PIS Consent"
      },
      "AisScope": {
        "type": "string",
        "title": "AIS Scope",
        "enum": [
          "accounts",
          "balance"
        ]
      },
      "ConsentSupportedAis": {
        "type": "object",
        "title": "AIS Consent",
        "properties": {
          "scopes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AisScope"
            },
            "minItems": 1,
            "uniqueItems": true
          }
        },
        "required": [
          "scopes"
        ]
      },
      "ConsentSupported": {
        "type": "object",
        "title": "Consent Requirements",
        "description": "The details of the consents supported to be captured from the user.",
        "properties": {
          "pis": {
            "$ref": "#/components/schemas/ConsentSupportedPis"
          },
          "ais": {
            "$ref": "#/components/schemas/ConsentSupportedAis"
          }
        },
        "required": [
          "pis"
        ]
      },
      "PaymentUser": {
        "title": "User",
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/UserId"
          }
        }
      },
      "ProviderId": {
        "type": "string",
        "description": "Unique ID for the Provider",
        "example": "ob-bank-name"
      },
      "SchemeId": {
        "type": "string",
        "description": "The unique identifier for the scheme.",
        "example": "faster_payments_service"
      },
      "ProviderStatus": {
        "type": "string",
        "enum": [
          "healthy",
          "unhealthy"
        ]
      },
      "ProviderAvailability": {
        "type": "object",
        "title": "Provider Availability",
        "description": "Whether the provider is currently available.\n> 🚧 This feature is in beta\n",
        "properties": {
          "recommended_status": {
            "$ref": "#/components/schemas/ProviderStatus"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The point in time when this data was collected. Value is in UTC."
          }
        },
        "required": [
          "recommended_status",
          "updated_at"
        ]
      },
      "BranchId": {
        "type": "string",
        "description": "Unique ID for the branch",
        "example": "xs2a-branch-id"
      },
      "Branch": {
        "type": "object",
        "title": "Branch",
        "description": "A specific branch of a provider.",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/BranchId"
          },
          "display_name": {
            "type": "string",
            "description": "The display name of the branch.",
            "example": "Branch Name"
          },
          "search_aliases": {
            "type": "array",
            "description": "Alternative search terms that should be used to help users find this branch.",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "display_name"
        ]
      },
      "PaymentFailureStage": {
        "type": "string",
        "enum": [
          "authorization_required",
          "authorizing",
          "authorized",
          "executed"
        ],
        "description": "The status the payment was in when it failed.\n",
        "example": "authorizing"
      },
      "PaymentFailureReason": {
        "type": "string",
        "description": "The <a href=\"https://docs.truelayer.com/docs/single-payment-statuses#failure-reasons\" target=\"_blank\">reason</a> that the payment failed.\n",
        "example": "provider_rejected"
      },
      "AccountIdentifier": {
        "title": "Account Identifier",
        "oneOf": [
          {
            "$ref": "#/components/schemas/AccountIdentifierScan"
          },
          {
            "$ref": "#/components/schemas/AccountIdentifierIban"
          },
          {
            "$ref": "#/components/schemas/AccountIdentifierNrb"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "sort_code_account_number": "#/components/schemas/AccountIdentifierScan",
            "iban": "#/components/schemas/AccountIdentifierIban",
            "nrb": "#/components/schemas/AccountIdentifierNrb"
          }
        },
        "description": "A unique scheme identifier for an external account.\n"
      },
      "PaymentSource": {
        "title": "Payment source",
        "type": "object",
        "description": "Information about the source of funds,  if available from the remitter's bank. Account identifiers will be those provided by the bank.",
        "properties": {
          "account_holder_name": {
            "type": "string"
          },
          "account_identifiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountIdentifier"
            }
          }
        },
        "required": [
          "account_holder_name",
          "account_identifiers"
        ]
      },
      "CreditableAt": {
        "type": "string",
        "description": "The date and time that TrueLayer determined that the payment was ready to be credited.",
        "format": "datetime",
        "example": "2023-06-13T15:00:00.000Z"
      },
      "SettlementStalledAt": {
        "type": "string",
        "description": "The date and time at which TrueLayer determined that the payment's settlement was stalled based on the client's chosen delay or the default one.\n",
        "format": "datetime",
        "example": "2023-06-13T15:00:00.000Z"
      },
      "DisputedAt": {
        "type": "string",
        "description": "The date and time that TrueLayer received an indemnity claim for the payment.",
        "format": "datetime",
        "example": "2023-06-13T15:00:00.000Z"
      },
      "DisputedReason": {
        "type": "string",
        "description": "The reason that the indemnity claim was made against the payment."
      },
      "SettledPaymentSource": {
        "title": "Settled Payment source",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "e2b41c9d-176k-67aa-b2da-fe1a2b97253c"
          },
          "account_holder_name": {
            "type": "string"
          },
          "account_identifiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountIdentifier"
            }
          }
        },
        "required": [
          "id",
          "account_holder_name",
          "account_identifiers"
        ]
      },
      "ReversedAt": {
        "type": "string",
        "description": "Date and time the payment was reversed.",
        "format": "datetime",
        "example": "2023-06-13T15:00:00.000Z"
      },
      "ReversalReason": {
        "type": "string",
        "enum": [
          "corrected",
          "failed",
          "disputed"
        ],
        "description": "The reason for the payment reversal.\n",
        "example": "corrected"
      },
      "PaymentFailureFundsStage": {
        "type": "string",
        "enum": [
          "received",
          "not_received"
        ],
        "description": "The status of the funds when the payment failed.\n",
        "example": "received"
      },
      "MerchantAccountCurrencyCode": {
        "type": "string",
        "enum": [
          "GBP",
          "EUR",
          "PLN"
        ],
        "example": "GBP"
      },
      "MandateVrpCommercialUseCase": {
        "type": "string",
        "enum": [
          "charity",
          "financial_services",
          "government",
          "utilities"
        ],
        "description": "The use case for which the cVRP mandate is used for.\n",
        "example": "charity"
      },
      "SearchProviderCapabilities": {
        "type": "object",
        "description": "Options for capabilities of the providers.",
        "properties": {
          "payments": {
            "description": "Only providers with `payments` capabilities will be returned.",
            "type": "object",
            "properties": {
              "bank_transfer": {
                "description": "Only providers with `bank transfer` capability will be returned.",
                "type": "object"
              }
            }
          },
          "mandates": {
            "description": "Only providers with `mandates` capabilities will be returned.",
            "type": "object",
            "properties": {
              "vrp_sweeping": {
                "description": "Only returns providers with the `sweeping` capability.",
                "type": "object"
              },
              "vrp_commercial": {
                "description": "Only returns providers with the `commercial` capability.",
                "type": "object",
                "properties": {
                  "use_cases": {
                    "description": "Only returns providers that support all the specified use cases.",
                    "type": "array",
                    "uniqueItems": true,
                    "minItems": 1,
                    "items": {
                      "$ref": "#/components/schemas/MandateVrpCommercialUseCase"
                    }
                  }
                }
              },
              "direct_debit": {
                "description": "Only returns providers with the `direct_debit` capability",
                "type": "object"
              }
            }
          }
        }
      },
      "SearchPaymentsProvidersAuthorizationFlow": {
        "title": "Direct Integration",
        "type": "object",
        "required": [
          "configuration"
        ],
        "properties": {
          "configuration": {
            "type": "object",
            "description": "Options for the authorization flow configuration of the customized UI.\nThis should be the same object you use in the start authorization flow request body.\n",
            "properties": {
              "provider_selection": {
                "type": "object",
                "description": "Can your UI render a provider selection screen?\n\nIn payments where you set `provider_selection` as `user_selected`, your UI must be able to render a screen where the user can select their payments provider. This parameter is required for payments with `user_selected` provider selection. For preselected provider selection, it's optional.\n\nUse the `provider_selection.filter` parameter at payment creation to determine the list of providers you can choose to display in your UI.\n",
                "properties": {
                  "branches": {
                    "$ref": "#/components/schemas/BranchesAuthorizationFlow"
                  },
                  "icon": {
                    "$ref": "#/components/schemas/Icon"
                  }
                }
              },
              "redirect": {
                "type": "object",
                "description": "Can the UI redirect the end user to a third-party page?\n\nFor most providers, payment authorization is achieved by redirecting the user to their chosen provider's page, where they can sign in with their credentials and approve the payment.\nThis field declares whether the UI is able to perform such a redirect.\n"
              },
              "form": {
                "required": [
                  "input_types"
                ],
                "type": "object",
                "description": "Can the UI render form inputs for the end user to interact with?\n\nSome providers require additional inputs, such as the remitter name and account details, to be provided before or during payment authorization.\nTo facilitate this, the API may return a `form` action as part of the authorization flow, prompting the UI to collect the required inputs.\n\nThis field declares whether the UI supports the `form` action.\nIf it is omitted, only providers that do not require additional inputs will be returned. \nIf the provider has been preselected and requires additional inputs, this field is considered mandatory.\n",
                "properties": {
                  "input_types": {
                    "type": "array",
                    "description": "The types of input that the UI is able to render",
                    "items": {
                      "$ref": "#/components/schemas/AdditionalInputType"
                    },
                    "uniqueItems": true,
                    "minItems": 1,
                    "example": [
                      "text"
                    ]
                  }
                }
              },
              "consent": {
                "type": "object",
                "description": "Can the UI capture the user's consent?\n\nThis field declares whether the UI supports explicitly capturing and reporting the end user's consent for initiating the payment.\nIf it is omitted, the providers available may be restricted if explicit consent is required.\n",
                "properties": {
                  "requirements": {
                    "$ref": "#/components/schemas/ConsentSupported"
                  }
                }
              }
            }
          }
        }
      },
      "SearchPaymentsProvidersRequest": {
        "type": "object",
        "title": "Search payment providers",
        "required": [
          "authorization_flow"
        ],
        "properties": {
          "countries": {
            "type": "array",
            "description": "Only providers from the specified countries will be returned.",
            "items": {
              "$ref": "#/components/schemas/CountryCode"
            },
            "uniqueItems": true,
            "minItems": 1,
            "example": [
              "GB"
            ]
          },
          "currencies": {
            "description": "Only schemes that support at least one of the specified currencies will be returned.",
            "type": "array",
            "uniqueItems": true,
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/MerchantAccountCurrencyCode"
            }
          },
          "release_channel": {
            "type": "string",
            "description": "Only capabilities that are at least on the specified release channel will be returned.\n\nNote that many European providers are in `public_beta` or `private_beta`.\n",
            "default": "general_availability",
            "enum": [
              "general_availability",
              "public_beta",
              "private_beta"
            ],
            "example": "general_availability"
          },
          "customer_segments": {
            "type": "array",
            "description": "Only providers that cater to at least one of the specified customer segments will be returned.",
            "items": {
              "type": "string",
              "enum": [
                "retail",
                "business",
                "corporate"
              ]
            },
            "uniqueItems": true,
            "minItems": 1,
            "example": [
              "retail"
            ]
          },
          "capabilities": {
            "$ref": "#/components/schemas/SearchProviderCapabilities"
          },
          "authorization_flow": {
            "$ref": "#/components/schemas/SearchPaymentsProvidersAuthorizationFlow"
          }
        }
      },
      "ProviderReleaseChannel": {
        "type": "string",
        "enum": [
          "general_availability",
          "public_beta",
          "private_beta",
          "alpha"
        ]
      },
      "PaymentsProvidersSchemeRequirements": {
        "title": "Requirement",
        "type": "object",
        "properties": {
          "currencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CurrencyCode"
            }
          },
          "account_identifier_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "iban",
                "bban",
                "sort_code_account_number",
                "nrb"
              ]
            }
          }
        },
        "required": [
          "account_identifier_types",
          "currencies"
        ]
      },
      "PaymentsProvidersScheme": {
        "title": "Scheme",
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/SchemeId"
          },
          "requirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentsProvidersSchemeRequirements"
            }
          }
        },
        "required": [
          "id",
          "requirements"
        ]
      },
      "PaymentsProvidersCapabilities": {
        "type": "object",
        "description": "Describes the capabilities of this provider.\nBy default, will only display capabilities in `general_availability` or `public beta`.\nIf `client_id` is available, will display capabilities available to the client.\n",
        "properties": {
          "payments": {
            "description": "Single payment initiation capabilities.",
            "type": "object",
            "properties": {
              "bank_transfer": {
                "description": "Bank transfer capability.",
                "type": "object",
                "properties": {
                  "release_channel": {
                    "description": "Release channel of the provider and capability.",
                    "$ref": "#/components/schemas/ProviderReleaseChannel"
                  },
                  "availability": {
                    "$ref": "#/components/schemas/ProviderAvailability",
                    "description": "Provider availability"
                  },
                  "schemes": {
                    "description": "List of payment schemes supported by this provider.",
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/PaymentsProvidersScheme"
                    }
                  }
                },
                "required": [
                  "release_channel",
                  "schemes"
                ]
              }
            }
          },
          "mandates": {
            "description": "Recurring payment mandate creation capabilities.",
            "type": "object",
            "properties": {
              "vrp_sweeping": {
                "description": "Mandates for the sweeping use case.",
                "type": "object",
                "properties": {
                  "release_channel": {
                    "description": "Release channel of the provider and capability.",
                    "$ref": "#/components/schemas/ProviderReleaseChannel"
                  },
                  "availability": {
                    "$ref": "#/components/schemas/ProviderAvailability",
                    "description": "Provider availability"
                  }
                },
                "required": [
                  "release_channel"
                ]
              },
              "vrp_commercial": {
                "description": "Mandates for the commercial use case.",
                "type": "object",
                "properties": {
                  "release_channel": {
                    "description": "Release channel of the provider and capability.",
                    "$ref": "#/components/schemas/ProviderReleaseChannel"
                  },
                  "availability": {
                    "$ref": "#/components/schemas/ProviderAvailability",
                    "description": "Provider availability"
                  },
                  "use_cases": {
                    "description": "List of use cases supported by this provider.",
                    "type": "array",
                    "uniqueItems": true,
                    "minItems": 1,
                    "items": {
                      "$ref": "#/components/schemas/MandateVrpCommercialUseCase"
                    }
                  }
                },
                "required": [
                  "release_channel",
                  "use_cases"
                ]
              },
              "direct_debit": {
                "description": "Direct Debit mandates.",
                "type": "object",
                "properties": {
                  "release_channel": {
                    "description": "Release channel of the provider and capability.",
                    "$ref": "#/components/schemas/ProviderReleaseChannel"
                  }
                },
                "required": [
                  "release_channel"
                ]
              }
            }
          }
        }
      },
      "ProviderBins": {
        "type": "array",
        "description": "A list of BIN (Bank Identification Numbers) ranges supported by the provider.\nBased on the ISO/IEC 7812-1:2017 BIN refers to the first eight numbers on a payment card, identifying the financial institution that issues the card.\n",
        "items": {
          "type": "object",
          "description": "A range of valid BINs that determine the inclusive starting and ending numbers.\n",
          "properties": {
            "from": {
              "description": "The starting number of the BIN range (inclusive).\nA valid integer must represent the first eight digits of a payment card number.\n",
              "type": "integer",
              "format": "int32",
              "example": 51685900
            },
            "to": {
              "description": "The ending number of the BIN range (inclusive).\nA valid integer must represent the first eight digits of a payment card number.\n",
              "type": "integer",
              "format": "int32",
              "example": 51685999
            }
          },
          "required": [
            "from",
            "to"
          ]
        }
      },
      "PaymentsProvidersProvider": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/ProviderId"
          },
          "display_name": {
            "type": "string",
            "example": "Bank Name"
          },
          "icon_uri": {
            "type": "string",
            "format": "uri",
            "example": "https://truelayer-provider-assets.s3.amazonaws.com/global/icon/generic.svg"
          },
          "logo_uri": {
            "type": "string",
            "format": "uri",
            "example": "https://truelayer-provider-assets.s3.amazonaws.com/global/logos/generic.svg"
          },
          "bg_color": {
            "type": "string",
            "description": "pattern: `^#[A-F0-9]{6}$`",
            "pattern": "^#[A-F0-9]{6}$",
            "example": "#000000"
          },
          "country_code": {
            "$ref": "#/components/schemas/CountryCode"
          },
          "swift_code": {
            "type": "string",
            "description": "ISO 9362 international standard for Business Identifier Codes (BIC)",
            "pattern": "^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$",
            "example": "MOCKGB01XXX"
          },
          "capabilities": {
            "$ref": "#/components/schemas/PaymentsProvidersCapabilities"
          },
          "bin_ranges": {
            "$ref": "#/components/schemas/ProviderBins"
          },
          "branches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Branch"
            }
          }
        },
        "required": [
          "id",
          "capabilities"
        ]
      },
      "SearchPaymentsProviders": {
        "type": "object",
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentsProvidersProvider"
            }
          }
        }
      },
      "PaymentRefundId": {
        "type": "string",
        "description": "Unique ID for the refund",
        "example": "43d12d0f-d775-410f-aaff-482200c17017"
      },
      "OutboundPaymentFailureReason": {
        "type": "string",
        "description": "The reason the outbound payment failed.\nExample values to expect:\n- `insufficient_funds`\n- `scheme_error`\n- `server_error`\n- `blocked`\n- `returned`\n- `account_not_valid`: the bank accounts associated with the given AIS consent are not valid. Note that this error is only relevant for `user_determined` beneficiaries.\n- `expired`: the user did not authorize the payout within the required timeframe. This error applies only to `user_determined` beneficiaries.\n- `verification_name_mismatch`: the name provided as part of a payout verification does not match the one available on the connected bank account\n- `verification_transaction_not_found`: the transaction details provided as part of a payout verification are not found within the associated bank account's transactions\n- `invalid_iban`: the beneficiary IBAN is invalid\n- `invalid_scan`: the beneficiary SCAN is invalid\n- `reversed`: the payment was reversed after settling\n- `unknown`: the failure could not be classified into a more specific reason\n\nClients should handle unexpected values gracefully as a unknown failure.\n",
        "example": "insufficient_funds"
      },
      "PayoutId": {
        "type": "string",
        "description": "Unique ID for the Payout",
        "example": "0cd1b0f7-71bc-4d24-b209-95259dadcc20"
      },
      "AccountHolderVerificationMatch": {
        "title": "Match",
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "match"
            ],
            "description": "Type `match` - Name and IBAN match the bank records."
          }
        },
        "required": [
          "type"
        ]
      },
      "AccountHolderVerificationPartialMatch": {
        "title": "Partial Match",
        "type": "object",
        "description": "The provided name partially matches the account holder name on record with the bank.",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "partial_match"
            ],
            "description": "Type `partial_match` - Name is similar, but not an exact match."
          },
          "account_holder_name": {
            "type": "string",
            "description": "The actual account holder name returned by the bank."
          }
        },
        "required": [
          "type",
          "account_holder_name"
        ]
      },
      "AccountHolderVerificationNoMatch": {
        "title": "No Match",
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "no_match"
            ],
            "description": "Type `no_match` - The name and IBAN do not match the bank’s records."
          }
        },
        "required": [
          "type"
        ]
      },
      "AccountHolderVerificationMatchNotPossible": {
        "title": "Match Not Possible",
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "match_not_possible"
            ],
            "description": "Type `match_not_possible` - The VoP scheme was unable to perform a match."
          },
          "reason": {
            "type": "string",
            "description": "The reason why account holder name verification could not be performed.\n\nThere can be many reasons for this, for example:\n\n- `Bank unable to match`: Account closed, couldn't be found or similar.\n- `Party agent not part of scheme`: Bank not part of the VoP scheme.\n"
          }
        },
        "required": [
          "type",
          "reason"
        ]
      },
      "AccountHolderVerificationMatchResult": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/AccountHolderVerificationMatch"
          },
          {
            "$ref": "#/components/schemas/AccountHolderVerificationPartialMatch"
          },
          {
            "$ref": "#/components/schemas/AccountHolderVerificationNoMatch"
          },
          {
            "$ref": "#/components/schemas/AccountHolderVerificationMatchNotPossible"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "match": "#/components/schemas/AccountHolderVerificationMatch",
            "partial_match": "#/components/schemas/AccountHolderVerificationPartialMatch",
            "no_match": "#/components/schemas/AccountHolderVerificationNoMatch",
            "match_not_possible": "#/components/schemas/AccountHolderVerificationMatchNotPossible"
          }
        }
      },
      "AccountHolderVerificationCompleted": {
        "title": "Completed",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "completed"
            ],
            "description": "A match result was returned."
          },
          "match_result": {
            "$ref": "#/components/schemas/AccountHolderVerificationMatchResult"
          }
        },
        "required": [
          "id",
          "status",
          "match_result"
        ]
      },
      "AccountHolderVerificationFailed": {
        "title": "Failed",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "failed"
            ],
            "description": "A match result was not returned."
          },
          "failure_reason": {
            "type": "string",
            "description": "The reason why the verification failed.\n\nThere can be many reasons for this, for example:\n\n- `VoP scheme provider error`: Failure with one of the providers in the scheme - likely to be transitory.\n- `Internal error`: An internal error occurred while processing the request.\n"
          }
        },
        "required": [
          "id",
          "status",
          "failure_reason"
        ]
      },
      "AccountHolderVerification": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/AccountHolderVerificationCompleted"
          },
          {
            "$ref": "#/components/schemas/AccountHolderVerificationFailed"
          }
        ],
        "discriminator": {
          "propertyName": "status",
          "mapping": {
            "completed": "#/components/schemas/AccountHolderVerificationCompleted",
            "failed": "#/components/schemas/AccountHolderVerificationFailed"
          }
        }
      },
      "AvailableBalance": {
        "type": "integer",
        "description": "The balance immediately available to perform payouts and transfers, expressed in the smallest denomination of the account's currency.\n\nThe available balance does also take into consideration transactions that are not yet in a final state.\n"
      },
      "CurrentBalance": {
        "type": "integer",
        "description": "The current balance, expressed in the smallest denomination of the account's currency.\n\nThe current balance does not take into consideration transactions that are not yet in a final state.\n"
      },
      "TransactionId": {
        "type": "string",
        "description": "Unique ID for the Transaction"
      },
      "MandateId": {
        "type": "string",
        "description": "Unique ID for the mandate",
        "example": "be6db706-68f1-4e9c-ab09-b83d8e3ea60d"
      },
      "MandateFailureStage": {
        "type": "string",
        "enum": [
          "authorization_required",
          "authorized",
          "authorizing",
          "revoked"
        ],
        "description": "The status the mandate was in when it failed.\n",
        "example": "authorizing"
      },
      "MandateFailureReason": {
        "type": "string",
        "description": "A readable detail for why the mandate failed.\nExample values to expect:\n- `authorization_failed`\n- `provider_error`\n- `provider_rejected`\n- `internal_server_error`\n- `invalid_sort_code`\n- `invalid_request`\n- `expired`\n- `unknown_error`\n",
        "example": "authorization_failed"
      },
      "RevocationSource": {
        "type": "string",
        "description": "Source for the revocation",
        "enum": [
          "client",
          "provider"
        ]
      },
      "WebhookCommon": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "event_version": {
            "description": "The version of the event schema.\n",
            "type": "integer"
          },
          "event_id": {
            "description": "Unique ID of the event.\n",
            "type": "string",
            "example": "b8d4dda0-ff2c-4d77-a6da-4615e4bad941"
          }
        },
        "required": [
          "type",
          "event_version",
          "event_id"
        ]
      },
      "WebhookPaymentLinkPaymentCreated": {
        "title": "Payment Link Payment Created",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "payment_link_payment_created"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "payment_link_id": {
                "$ref": "#/components/schemas/PaymentLinkId"
              },
              "payment": {
                "type": "object",
                "required": [
                  "id",
                  "created_at"
                ],
                "properties": {
                  "id": {
                    "$ref": "#/components/schemas/PaymentId"
                  },
                  "created_at": {
                    "type": "string",
                    "description": "Date and time the payment got created from the payment link",
                    "format": "datetime",
                    "example": "2021-12-25T15:00:00.000Z"
                  }
                }
              }
            },
            "required": [
              "payment_link_id",
              "payment"
            ]
          }
        ]
      },
      "WebhookPaymentLinkDisabled": {
        "title": "Payment Link Disabled",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "payment_link_disabled"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "payment_link_id": {
                "$ref": "#/components/schemas/PaymentLinkId"
              },
              "disabled_reason": {
                "enum": [
                  "expired",
                  "cancelled",
                  "fulfilled"
                ]
              },
              "disabled_at": {
                "type": "string",
                "description": "Date and time the payment link was disabled",
                "format": "datetime",
                "example": "2021-12-25T15:00:00.000Z"
              }
            },
            "required": [
              "payment_link_id",
              "disabled_reason",
              "disabled_at"
            ]
          }
        ]
      },
      "PaymentMethodBankTransferWebhook": {
        "title": "Bank Transfer",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of payment method.",
            "enum": [
              "bank_transfer"
            ]
          },
          "provider_id": {
            "type": "string",
            "description": "The provider ID the end user will use for this payment. Can be `null` if the payment failed before successful provider selection.",
            "example": [
              "eg-provider"
            ]
          },
          "branch_id": {
            "type": "string",
            "description": "The branch ID the end user will use for this payment. Can be `null` if the payment failed before successful provider selection.",
            "example": [
              "eg-branch"
            ]
          },
          "scheme_id": {
            "type": "string",
            "description": "The ID of the scheme to make the payment over. Can be `null` if the payment failed before successful provider selection.",
            "example": [
              "payment_scheme"
            ]
          }
        }
      },
      "PaymentMethodWebhook": {
        "title": "Payment Method",
        "type": "object",
        "oneOf": [
          {
            "$ref": "#/components/schemas/PaymentMethodBankTransferWebhook"
          },
          {
            "$ref": "#/components/schemas/PaymentMethodMandate"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "bank_transfer": "#/components/schemas/PaymentMethodBankTransferWebhook",
            "mandate": "#/components/schemas/PaymentMethodMandate"
          }
        }
      },
      "WebhookPaymentAuthorized": {
        "title": "Authorized",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "payment_authorized"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "payment_id": {
                "$ref": "#/components/schemas/PaymentId"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              },
              "payment_method": {
                "$ref": "#/components/schemas/PaymentMethodWebhook"
              },
              "authorized_at": {
                "type": "string",
                "description": "Date and time the payment was authorized",
                "format": "datetime",
                "example": "2021-12-25T15:00:00.000Z"
              },
              "payment_source": {
                "$ref": "#/components/schemas/PaymentSource"
              }
            },
            "required": [
              "payment_id",
              "payment_method",
              "authorized_at"
            ]
          }
        ]
      },
      "WebhookPaymentExecuted": {
        "title": "Executed",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "payment_executed"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "payment_id": {
                "$ref": "#/components/schemas/PaymentId"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              },
              "payment_method": {
                "$ref": "#/components/schemas/PaymentMethodWebhook"
              },
              "executed_at": {
                "type": "string",
                "description": "Date and time the payment executed",
                "format": "datetime",
                "example": "2021-12-25T15:00:00.000Z"
              },
              "payment_source": {
                "$ref": "#/components/schemas/PaymentSource"
              }
            },
            "required": [
              "payment_id",
              "payment_method",
              "executed_at"
            ]
          }
        ]
      },
      "WebhookPaymentFailed": {
        "title": "Failed",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "payment_failed"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "payment_id": {
                "$ref": "#/components/schemas/PaymentId"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              },
              "payment_method": {
                "$ref": "#/components/schemas/PaymentMethodWebhook"
              },
              "failed_at": {
                "type": "string",
                "description": "Date and time the payment failed",
                "format": "datetime",
                "example": "2021-12-25T15:00:00.000Z"
              },
              "failure_stage": {
                "$ref": "#/components/schemas/PaymentFailureStage"
              },
              "failure_reason": {
                "$ref": "#/components/schemas/PaymentFailureReason"
              },
              "failure_funds_stage": {
                "$ref": "#/components/schemas/PaymentFailureFundsStage",
                "description": "This is populated for Direct Debit payments only."
              },
              "payment_source": {
                "$ref": "#/components/schemas/PaymentSource"
              }
            },
            "required": [
              "payment_id",
              "payment_method",
              "failed_at",
              "failure_stage",
              "failure_reason"
            ]
          }
        ]
      },
      "WebhookPaymentSettled": {
        "title": "Settled",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "payment_settled"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "payment_id": {
                "$ref": "#/components/schemas/PaymentId"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              },
              "payment_method": {
                "$ref": "#/components/schemas/PaymentMethodWebhook"
              },
              "settled_at": {
                "type": "string",
                "description": "Date and time the payment settled",
                "format": "datetime",
                "example": "2021-12-25T15:00:00.000Z"
              },
              "payment_source": {
                "$ref": "#/components/schemas/SettledPaymentSource"
              },
              "user_id": {
                "$ref": "#/components/schemas/UserId"
              }
            },
            "required": [
              "payment_id",
              "payment_method",
              "settled_at",
              "payment_source",
              "user_id"
            ]
          }
        ]
      },
      "WebhookPaymentCreditable": {
        "title": "Payment creditable",
        "description": "Sent when the payment is ready to be credited to the user, and the services the user has paid for\nbe granted. Either the payment has settled, or any settlement risk has been accepted.\n\nThis webhook is optional, by default it is enabled and it will be sent on payment settlement. [Learn more about the configuration options](/docs/payment-risk-and-credit-notifications), and contact us if you would like this webhook to be disabled or to have a different behavior.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "payment_creditable"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "payment_id": {
                "$ref": "#/components/schemas/PaymentId"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              },
              "creditable_at": {
                "$ref": "#/components/schemas/CreditableAt"
              }
            },
            "required": [
              "payment_id",
              "creditable_at"
            ]
          }
        ]
      },
      "WebhookPaymentSettlementStalled": {
        "title": "Settlement Stalled",
        "description": "Sent when the payment doesn't reach settled status after a certain amount of time.\n\nThis webhook is optional, and is disabled by default. Contact us if you would like this webhook to\nbe enabled.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "payment_settlement_stalled"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "payment_id": {
                "$ref": "#/components/schemas/PaymentId"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              },
              "settlement_stalled_at": {
                "$ref": "#/components/schemas/SettlementStalledAt"
              }
            },
            "required": [
              "payment_id",
              "settlement_stalled_at"
            ]
          }
        ]
      },
      "WebhookPaymentDisputed": {
        "title": "Payment disputed",
        "description": "Sent when a indemnity claim has been made against a payment. This currently only applies to payments made via direct debit mandates.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "payment_disputed"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "payment_id": {
                "$ref": "#/components/schemas/PaymentId"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              },
              "disputed_at": {
                "$ref": "#/components/schemas/DisputedAt"
              },
              "disputed_reason": {
                "$ref": "#/components/schemas/DisputedReason"
              },
              "expires_at": {
                "type": "string",
                "description": "The date and time that the dispute will expire and, by default, be resolved in favour of the end-user.",
                "format": "datetime",
                "example": "2025-09-02T00:00:00.000Z"
              }
            },
            "required": [
              "payment_id",
              "disputed_at",
              "expires_at"
            ]
          }
        ]
      },
      "WebhookPaymentReversed": {
        "title": "Payment Reversed",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "payment_reversed"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "payment_id": {
                "$ref": "#/components/schemas/PaymentId"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              },
              "reversed_at": {
                "$ref": "#/components/schemas/ReversedAt"
              },
              "reversal_reason": {
                "$ref": "#/components/schemas/ReversalReason"
              }
            },
            "required": [
              "payment_id",
              "reversed_at",
              "reversal_reason"
            ]
          }
        ]
      },
      "WebhookPaymentFundsReceived": {
        "title": "Payment Funds Received",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "payment_funds_received"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "payment_id": {
                "$ref": "#/components/schemas/PaymentId"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              },
              "funds_received_at": {
                "type": "string",
                "description": "The date and time that the Direct Debit payment arrived in the merchant account. The payment can still be reversed at this stage.",
                "format": "datetime",
                "example": "2021-12-25T15:00:00.000Z"
              }
            },
            "required": [
              "payment_id",
              "funds_received_at"
            ]
          }
        ]
      },
      "WebhookRefundExecuted": {
        "title": "Executed",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "refund_executed"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "refund_id": {
                "$ref": "#/components/schemas/PaymentRefundId"
              },
              "payment_id": {
                "$ref": "#/components/schemas/PaymentId"
              },
              "executed_at": {
                "type": "string",
                "description": "Date and time the refund executed",
                "format": "datetime",
                "example": "2021-12-25T15:00:00.000Z"
              },
              "scheme_id": {
                "$ref": "#/components/schemas/SchemeId"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              }
            },
            "required": [
              "refund_id",
              "payment_id",
              "executed_at"
            ]
          }
        ],
        "example": {
          "type": "refund_executed",
          "event_version": 1,
          "event_id": "b8d4dda0-ff2c-4d77-a6da-4615e4bad941",
          "refund_id": "43d12d0f-d775-410f-aaff-482200c17017",
          "payment_id": "0afd1f6a-f611-48ce-9488-321129bb3a70",
          "executed_at": "2021-12-25T15:00:00.000Z",
          "scheme_id": "faster_payments_service",
          "metadata": {
            "prop1": "value1",
            "prop2": "value2"
          }
        }
      },
      "WebhookRefundFailed": {
        "title": "Failed",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "refund_failed"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "refund_id": {
                "$ref": "#/components/schemas/PaymentRefundId"
              },
              "payment_id": {
                "$ref": "#/components/schemas/PaymentId"
              },
              "failed_at": {
                "type": "string",
                "description": "Date and time the refund failed",
                "format": "datetime",
                "example": "2021-12-25T15:00:00.000Z"
              },
              "failure_reason": {
                "$ref": "#/components/schemas/OutboundPaymentFailureReason"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              }
            },
            "required": [
              "refund_id",
              "payment_id",
              "failed_at",
              "failure_reason"
            ]
          }
        ],
        "example": {
          "type": "refund_failed",
          "event_version": 1,
          "event_id": "c9e5eeb1-aa3d-5e88-b7eb-5726f5e5c052",
          "refund_id": "54e23e1a-a886-521a-bbaa-593311cc4b81",
          "payment_id": "1bae2a7b-a722-59dd-a599-432240dd4b81",
          "failed_at": "2021-12-25T15:30:00.000Z",
          "failure_reason": "insufficient_funds",
          "metadata": {
            "prop1": "value1",
            "prop2": "value2"
          }
        }
      },
      "WebhookPayoutBeneficiaryPaymentSource": {
        "title": "Payment source",
        "type": "object",
        "required": [
          "type",
          "payment_source_id"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Type `payment_source`",
            "enum": [
              "payment_source"
            ]
          },
          "payment_source_id": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          }
        }
      },
      "WebhookPayoutBeneficiaryBusinessAccount": {
        "title": "Business account",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Type `business_account`",
            "enum": [
              "business_account"
            ]
          }
        }
      },
      "WebhookPayoutBeneficiaryExternalAccount": {
        "title": "External account",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Type `external_account`",
            "enum": [
              "external_account"
            ]
          },
          "account_holder_verification": {
            "$ref": "#/components/schemas/AccountHolderVerification"
          }
        }
      },
      "WebhookPayoutBeneficiaryVerifiedExternalAccount": {
        "title": "Verified External Account",
        "type": "object",
        "required": [
          "type",
          "account_holder_verification_id"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Type `verified_external_account`",
            "enum": [
              "verified_external_account"
            ]
          },
          "account_holder_verification_id": {
            "type": "string",
            "format": "uuid",
            "description": "The ID of the account holder verification"
          }
        }
      },
      "WebhookPayoutExecutedBeneficiaryUserDetermined": {
        "title": "User determined",
        "type": "object",
        "required": [
          "type",
          "user",
          "provider_id",
          "account_holder_name",
          "account_identifiers"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Type `user_determined`",
            "enum": [
              "user_determined"
            ]
          },
          "user": {
            "$ref": "#/components/schemas/PaymentUser"
          },
          "provider_id": {
            "description": "The ID of the banking provider associated to the account identifiers present in this object.\n",
            "type": "string"
          },
          "account_holder_name": {
            "description": "The name of the account holder.\n",
            "type": "string"
          },
          "account_identifiers": {
            "type": "array",
            "description": "Account routing information associated to the beneficiary of the payout.\n",
            "items": {
              "$ref": "#/components/schemas/AccountIdentifier"
            }
          }
        }
      },
      "WebhookPayoutBeneficiaryServiceProvider": {
        "title": "Service Provider",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Type `service_provider`",
            "enum": [
              "service_provider"
            ]
          }
        }
      },
      "WebhookPayoutExecutedBeneficiary": {
        "type": "object",
        "oneOf": [
          {
            "$ref": "#/components/schemas/WebhookPayoutBeneficiaryPaymentSource"
          },
          {
            "$ref": "#/components/schemas/WebhookPayoutBeneficiaryBusinessAccount"
          },
          {
            "$ref": "#/components/schemas/WebhookPayoutBeneficiaryExternalAccount"
          },
          {
            "$ref": "#/components/schemas/WebhookPayoutBeneficiaryVerifiedExternalAccount"
          },
          {
            "$ref": "#/components/schemas/WebhookPayoutExecutedBeneficiaryUserDetermined"
          },
          {
            "$ref": "#/components/schemas/WebhookPayoutBeneficiaryServiceProvider"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "payment_source": "#/components/schemas/WebhookPayoutBeneficiaryPaymentSource",
            "business_account": "#/components/schemas/WebhookPayoutBeneficiaryBusinessAccount",
            "external_account": "#/components/schemas/WebhookPayoutBeneficiaryExternalAccount",
            "verified_external_account": "#/components/schemas/WebhookPayoutBeneficiaryVerifiedExternalAccount",
            "user_determined": "#/components/schemas/WebhookPayoutExecutedBeneficiaryUserDetermined",
            "service_provider": "#/components/schemas/WebhookPayoutBeneficiaryServiceProvider"
          }
        }
      },
      "WebhookPayoutTriggerAutomatedFeeCollection": {
        "title": "Automated Fee Collection",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Type `automated_fee_collection`",
            "enum": [
              "automated_fee_collection"
            ]
          }
        }
      },
      "WebhookPayoutTrigger": {
        "title": "Trigger",
        "type": "object",
        "description": "Optional field that shows what triggered the payout.\n",
        "oneOf": [
          {
            "$ref": "#/components/schemas/WebhookPayoutTriggerAutomatedFeeCollection"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "automated_fee_collection": "#/components/schemas/WebhookPayoutTriggerAutomatedFeeCollection"
          }
        }
      },
      "WebhookPayoutExecuted": {
        "title": "Executed",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "payout_executed"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "payout_id": {
                "$ref": "#/components/schemas/PayoutId"
              },
              "executed_at": {
                "type": "string",
                "description": "Date and time the payout was executed",
                "format": "datetime",
                "example": "2021-12-25T15:00:00.000Z"
              },
              "beneficiary": {
                "$ref": "#/components/schemas/WebhookPayoutExecutedBeneficiary"
              },
              "scheme_id": {
                "$ref": "#/components/schemas/SchemeId"
              },
              "trigger": {
                "$ref": "#/components/schemas/WebhookPayoutTrigger"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              }
            },
            "required": [
              "payout_id",
              "executed_at",
              "beneficiary",
              "scheme_id"
            ]
          }
        ]
      },
      "WebhookPayoutFailedBeneficiaryUserDetermined": {
        "title": "User determined",
        "type": "object",
        "required": [
          "type",
          "user"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Type `user_determined`",
            "enum": [
              "user_determined"
            ]
          },
          "user": {
            "$ref": "#/components/schemas/PaymentUser"
          },
          "provider_id": {
            "description": "The ID of the banking provider associated to the account identifiers present in this object.\n\nNot available if the payout failed during authorization or verification.\n",
            "type": "string"
          },
          "account_holder_name": {
            "description": "The name of the account holder.\n\nNot available if the payout failed during authorization or verification.\n",
            "type": "string"
          },
          "account_identifiers": {
            "type": "array",
            "description": "Account routing information associated to the beneficiary of the payout.\n\nNot available if the payout failed during authorization or verification.\n",
            "items": {
              "$ref": "#/components/schemas/AccountIdentifier"
            }
          }
        }
      },
      "WebhookPayoutFailedBeneficiary": {
        "type": "object",
        "oneOf": [
          {
            "$ref": "#/components/schemas/WebhookPayoutBeneficiaryPaymentSource"
          },
          {
            "$ref": "#/components/schemas/WebhookPayoutBeneficiaryBusinessAccount"
          },
          {
            "$ref": "#/components/schemas/WebhookPayoutBeneficiaryExternalAccount"
          },
          {
            "$ref": "#/components/schemas/WebhookPayoutBeneficiaryVerifiedExternalAccount"
          },
          {
            "$ref": "#/components/schemas/WebhookPayoutFailedBeneficiaryUserDetermined"
          },
          {
            "$ref": "#/components/schemas/WebhookPayoutBeneficiaryServiceProvider"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "payment_source": "#/components/schemas/WebhookPayoutBeneficiaryPaymentSource",
            "business_account": "#/components/schemas/WebhookPayoutBeneficiaryBusinessAccount",
            "external_account": "#/components/schemas/WebhookPayoutBeneficiaryExternalAccount",
            "verified_external_account": "#/components/schemas/WebhookPayoutBeneficiaryVerifiedExternalAccount",
            "user_determined": "#/components/schemas/WebhookPayoutFailedBeneficiaryUserDetermined",
            "service_provider": "#/components/schemas/WebhookPayoutBeneficiaryServiceProvider"
          }
        }
      },
      "WebhookPayoutFailed": {
        "title": "Failed",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "payout_failed"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "payout_id": {
                "$ref": "#/components/schemas/PayoutId"
              },
              "failed_at": {
                "type": "string",
                "description": "Date and time the payout failed",
                "format": "datetime",
                "example": "2021-12-25T15:00:00.000Z"
              },
              "failure_reason": {
                "$ref": "#/components/schemas/OutboundPaymentFailureReason"
              },
              "beneficiary": {
                "$ref": "#/components/schemas/WebhookPayoutFailedBeneficiary"
              },
              "trigger": {
                "$ref": "#/components/schemas/WebhookPayoutTrigger"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              }
            },
            "required": [
              "payout_id",
              "failed_at",
              "failure_reason",
              "beneficiary"
            ]
          }
        ]
      },
      "WebhookPayoutAttemptFailed": {
        "title": "Attempt Failed",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "payout_attempt_failed"
                ]
              },
              "payout_id": {
                "$ref": "#/components/schemas/PayoutId"
              },
              "failed_at": {
                "type": "string",
                "description": "Date and time the payout attempt failed",
                "format": "datetime",
                "example": "2021-12-25T15:00:00.000Z"
              },
              "failure_reason": {
                "$ref": "#/components/schemas/OutboundPaymentFailureReason"
              },
              "beneficiary": {
                "$ref": "#/components/schemas/WebhookPayoutExecutedBeneficiary"
              },
              "scheme_id": {
                "$ref": "#/components/schemas/SchemeId"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              },
              "retry": {
                "type": "object",
                "description": "Details about the retry attempt",
                "properties": {
                  "attempts_made": {
                    "type": "integer",
                    "description": "Number of retry attempts that have been made so far.",
                    "example": 2
                  },
                  "attempts_remaining": {
                    "type": "integer",
                    "description": "Number of retry attempts remaining",
                    "example": 3
                  },
                  "scheduled_for_rerouting": {
                    "type": "boolean",
                    "description": "Whether the payout is scheduled for rerouting to a different scheme",
                    "example": false
                  },
                  "next_attempt_at": {
                    "type": "string",
                    "description": "Date and time of the next retry attempt",
                    "format": "datetime",
                    "example": "2021-12-25T16:00:00.000Z"
                  }
                },
                "required": [
                  "attempts_made",
                  "attempts_remaining",
                  "scheduled_for_rerouting",
                  "next_attempt_at"
                ]
              }
            },
            "required": [
              "payout_id",
              "failed_at",
              "failure_reason",
              "beneficiary",
              "scheme_id",
              "retry"
            ]
          }
        ]
      },
      "WebhookMandateAuthorized": {
        "title": "Mandate Authorized",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "mandate_authorized"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "mandate_id": {
                "$ref": "#/components/schemas/MandateId"
              },
              "authorized_at": {
                "type": "string",
                "description": "Date and time the mandate became authorized",
                "format": "datetime",
                "example": "2021-12-25T15:00:00.000Z"
              },
              "statement_reference": {
                "type": "string",
                "description": "Statement reference for the mandate"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              }
            },
            "required": [
              "mandate_id",
              "authorized_at",
              "statement_reference"
            ]
          }
        ]
      },
      "WebhookMandateFailed": {
        "title": "Mandate Failed",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "mandate_failed"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "mandate_id": {
                "$ref": "#/components/schemas/MandateId"
              },
              "failed_at": {
                "type": "string",
                "description": "Date and time the mandate failed",
                "format": "datetime",
                "example": "2021-12-25T15:00:00.000Z"
              },
              "failure_stage": {
                "$ref": "#/components/schemas/MandateFailureStage"
              },
              "failure_reason": {
                "$ref": "#/components/schemas/MandateFailureReason"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              }
            },
            "required": [
              "mandate_id",
              "failure_reason",
              "failure_stage",
              "failed_at"
            ]
          }
        ]
      },
      "WebhookMandateRevoked": {
        "title": "Mandate Revoked",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "mandate_revoked"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "mandate_id": {
                "$ref": "#/components/schemas/MandateId"
              },
              "revoked_at": {
                "type": "string",
                "description": "Date and time the mandate became revoked",
                "format": "datetime",
                "example": "2021-12-25T15:00:00.000Z"
              },
              "revocation_source": {
                "$ref": "#/components/schemas/RevocationSource"
              },
              "revocation_reason": {
                "type": "string",
                "description": "The reason why the mandate was revoked. This is currently only available for direct debit mandates."
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              }
            },
            "required": [
              "mandate_id",
              "revoked_at",
              "revocation_source"
            ]
          }
        ]
      },
      "WebhookMandateRemitterChanged": {
        "title": "Mandate Remitter Changed",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "mandate_remitter_changed"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "mandate_id": {
                "$ref": "#/components/schemas/MandateId"
              },
              "remitter_changed_at": {
                "type": "string",
                "description": "Date and time the remitter details of the mandate were changed.",
                "format": "datetime",
                "example": "2021-12-25T15:00:00.000Z"
              },
              "account_holder_name": {
                "type": "string",
                "description": "The name associated to the new remitter account."
              },
              "account_identifier": {
                "$ref": "#/components/schemas/PaymentAccountIdentifier",
                "description": "The account ID of the new remitter account."
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              }
            },
            "required": [
              "mandate_id",
              "remitter_changed_at",
              "account_holder_name",
              "account_identifier"
            ]
          }
        ]
      },
      "MandateInitialPayment": {
        "title": "Initial Payment",
        "type": "object",
        "required": [
          "id",
          "created_at"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique ID of the payment",
            "example": "be6db706-68f1-4e9c-ab09-b83d8e3ea60d"
          },
          "created_at": {
            "type": "string",
            "description": "Date and time the payment was created",
            "format": "datetime",
            "example": "2021-12-25T15:00:00.000Z"
          }
        }
      },
      "WebhookMandateInitialPaymentCreated": {
        "title": "Mandate Initial Payment Created",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "mandate_initial_payment_created"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "mandate_id": {
                "$ref": "#/components/schemas/MandateId"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              },
              "payment": {
                "$ref": "#/components/schemas/MandateInitialPayment"
              }
            },
            "required": [
              "mandate_id",
              "payment"
            ]
          }
        ]
      },
      "WebhookExternalPaymentReceived": {
        "title": "External Payment",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "external_payment_received"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "transaction_id": {
                "$ref": "#/components/schemas/TransactionId"
              },
              "currency": {
                "$ref": "#/components/schemas/MerchantAccountCurrencyCode"
              },
              "amount_in_minor": {
                "type": "integer",
                "minimum": 1
              },
              "settled_at": {
                "type": "string",
                "description": "Date and time the transaction settled",
                "format": "datetime",
                "example": "2021-12-25T15:00:00.000Z"
              },
              "merchant_account_id": {
                "$ref": "#/components/schemas/MerchantAccountId"
              },
              "remitter": {
                "type": "object",
                "properties": {
                  "account_holder_name": {
                    "description": "The name of the external account holder.\n",
                    "type": "string"
                  },
                  "account_identifiers": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/AccountIdentifier"
                    }
                  },
                  "reference": {
                    "type": "string",
                    "description": "The reference for the external payment."
                  }
                },
                "required": [
                  "account_holder_name",
                  "account_identifiers"
                ]
              }
            },
            "required": [
              "transaction_id",
              "settled_at",
              "currency",
              "amount_in_minor",
              "remitter",
              "merchant_account_id"
            ]
          }
        ]
      },
      "WebhookBalanceNotification": {
        "title": "Balance Notification",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "enum": [
                  "balance_notification"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "merchant_account_id": {
                "$ref": "#/components/schemas/MerchantAccountId"
              },
              "current_balance_in_minor": {
                "$ref": "#/components/schemas/CurrentBalance"
              },
              "available_balance_in_minor": {
                "$ref": "#/components/schemas/AvailableBalance"
              },
              "threshold_in_minor": {
                "description": "The balance threshold, expressed in the smallest denomination of the account's currency.\n",
                "type": "integer"
              },
              "status": {
                "type": "string",
                "description": "Whether the balance is approaching the threshold, below the threshold, or has recovered.",
                "enum": [
                  "approaching_threshold",
                  "below_threshold",
                  "recovered"
                ]
              }
            },
            "required": [
              "merchant_account_id",
              "current_balance_in_minor",
              "available_balance_in_minor",
              "status"
            ]
          }
        ]
      }
    },
    "headers": {
      "Tl-Trace-Id": {
        "schema": {
          "type": "string"
        },
        "description": "Unique ID per request.\nWe recommend logging this to share with us when investigating any issues.\n"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "shell",
      "java",
      "csharp",
      "php"
    ]
  }
}
```