{
  "openapi": "3.0.4",
  "info": {
    "title": "dhango",
    "termsOfService": "http://dhango.com/terms",
    "contact": {
      "name": "dhango",
      "url": "http://dhango.com/"
    },
    "version": "1.0"
  },
  "paths": {
    "/v1/accounts/{accountKey}/metadata/flex": {
      "put": {
        "tags": [
          "AccountMetadata"
        ],
        "summary": "Sets (replaces) the Flex-domain metadata for the specified property account.\r\nPreserves all other metadata entries on the account.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "path",
            "description": "The dhango-assigned account key (Account.Key) -- the same identifier the existing Payments API uses to reference accounts.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The Flex property metadata to store.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/FlexPropertyModel"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/FlexPropertyModel"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/FlexPropertyModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "AccountMetadata"
        ],
        "summary": "Gets the Flex-domain metadata for the specified property account.\r\nReturns 404 if no Flex metadata has been set.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "path",
            "description": "The dhango-assigned account key (Account.Key).",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/FlexPropertyModel"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/FlexPropertyModel"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/FlexPropertyModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "AccountMetadata"
        ],
        "summary": "Removes the Flex-domain metadata from the specified property account.\r\nPreserves all other metadata entries on the account.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "path",
            "description": "The dhango-assigned account key (Account.Key).",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/accounts/{key}": {
      "get": {
        "tags": [
          "Accounts"
        ],
        "summary": "Gets the status of an account. (Deprecated)",
        "description": "This endpoint is deprecated. Please use the other version of this endpoint.\r\nThis endpoint can be called two different ways - \r\n1. Server-side with a key and secret to get details of each account individually. This would be used server-side to synchronize data between this API and the platform.\r\n2. Client-side with only the accountKey in the header and route. This would be used client-side to dynamically generate a payment form.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "The unique key for the account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "description": "The unique key for the account.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetAccountResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetAccountResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetAccountResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        },
        "deprecated": true
      }
    },
    "/v1/accounts": {
      "get": {
        "tags": [
          "Accounts"
        ],
        "summary": "Gets the status of an account.",
        "description": "This endpoint can be called two different ways - \r\n1. Server-side with a key and secret to get details of each account individually. This would be used server-side to synchronize data between this API and the platform.\r\n2. Client-side with only the accountKey in the header and route. This would be used client-side to dynamically generate a payment form.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "The unique key for the account.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetAccountResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetAccountResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetAccountResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/v1/accountValidations": {
      "post": {
        "tags": [
          "AccountValidations"
        ],
        "summary": "Validates a payment method's account details.",
        "description": "Validation runs a paid account check on the account's behalf, so it requires an API key and secret.\r\nA request that carries only the public accountKey header is refused with 403.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Details of the account to be validated.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostAccountValidationRequest"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostAccountValidationRequest"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostAccountValidationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The payment method is valid.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/PostAccountValidationResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/PostAccountValidationResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/PostAccountValidationResponse"
                }
              }
            }
          },
          "403": {
            "description": "The caller holds only the public accountKey; an API key and secret are required.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/applicationSessions": {
      "post": {
        "tags": [
          "ApplicationSessions"
        ],
        "summary": "Creates a application session.",
        "requestBody": {
          "description": "Details to pre-fill the sign up form.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostApplicationSessionRequest"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostApplicationSessionRequest"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostApplicationSessionRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The application session was created.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/PostApplicationSessionResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/PostApplicationSessionResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/PostApplicationSessionResponse"
                }
              }
            }
          },
          "400": {
            "description": "The application session was not created. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/batches/{id}": {
      "get": {
        "tags": [
          "Batches"
        ],
        "summary": "Gets the summary details of a single batch.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of the batch.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The batch was found and the details are in the response body.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetBatchResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetBatchResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetBatchResponse"
                }
              }
            }
          },
          "403": {
            "description": "The caller holds only the public accountKey; an API key and secret are required.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "The batch could not be found."
          }
        }
      }
    },
    "/v1/batches": {
      "get": {
        "tags": [
          "Batches"
        ],
        "summary": "Returns a list of batches.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "The current page of the search results starting at 1.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The number of records per page. The default is 25 and the maximum is 50.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The page of batches.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetBatchResponseSearchResults"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetBatchResponseSearchResults"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetBatchResponseSearchResults"
                }
              }
            }
          },
          "403": {
            "description": "The caller holds only the public accountKey; an API key and secret are required.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/checks/files/{transactionFileCategory}": {
      "post": {
        "tags": [
          "Checks"
        ],
        "summary": "Accepts a check file (typically in the form of an image) to be used in validation and further processing.",
        "parameters": [
          {
            "name": "transactionFileCategory",
            "in": "path",
            "description": "The category of file being uploaded: CheckFront or CheckBack.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/TransactionFileCategory"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data; x-api-version=1.0": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "description": "The byte array of the file being uploaded.",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The response represents the newly created check file identifier.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/PostCheckFileResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/PostCheckFileResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/PostCheckFileResponse"
                }
              }
            }
          },
          "400": {
            "description": "The file was not created successfully (including a category other than CheckFront or CheckBack). Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/checks/validate": {
      "post": {
        "tags": [
          "Checks"
        ],
        "summary": "Validates the previously uploaded files.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Contains the list of file identifiers to be validated. The front and back images of the check must be included in this request.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostCheckValidateRequest"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostCheckValidateRequest"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostCheckValidateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The validation was successful and the response contains details from the scanned check.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/PostCheckValidateResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/PostCheckValidateResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/PostCheckValidateResponse"
                }
              }
            }
          },
          "400": {
            "description": "The session was not created successfully. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/customers/{id}/metadata/flex": {
      "put": {
        "tags": [
          "CustomerMetadata"
        ],
        "summary": "Sets the Flex domain metadata for a customer.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The customer identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The Flex tenant metadata to store.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/FlexTenantModel"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/FlexTenantModel"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/FlexTenantModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "The metadata was saved."
          },
          "400": {
            "description": "The request body is invalid.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "The customer does not belong to the caller's scope.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "CustomerMetadata"
        ],
        "summary": "Gets the Flex domain metadata for a customer.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The customer identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The Flex metadata for the customer.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/FlexTenantModel"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/FlexTenantModel"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/FlexTenantModel"
                }
              }
            }
          },
          "404": {
            "description": "No Flex metadata exists for the customer, or the customer does not exist.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "CustomerMetadata"
        ],
        "summary": "Removes the Flex domain metadata for a customer.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The customer identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The metadata was removed (or did not exist)."
          }
        }
      }
    },
    "/v1/customers": {
      "put": {
        "tags": [
          "Customers"
        ],
        "summary": "Performs a full replacement of customers for this account.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Contains a collection of customers.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Customer"
                }
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Customer"
                }
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Customer"
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The customers were accepted for storage."
          },
          "400": {
            "description": "The customers were not saved successfully. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Customers"
        ],
        "summary": "Saves customers to the data store using inserts and updates based on the Id property of each customer. No deletions occur as a part of this operation.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Contains a collection of customers.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Customer"
                }
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Customer"
                }
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Customer"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customers were processed for updates and inserts."
          },
          "400": {
            "description": "The customers were not saved successfully. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/customers/{id}": {
      "delete": {
        "tags": [
          "Customers"
        ],
        "summary": "Deletes an individual customer.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier for the customer.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The customer was deleted."
          }
        }
      }
    },
    "/v1/groups/{groupKey}/metadata/flex": {
      "put": {
        "tags": [
          "GroupMetadata"
        ],
        "summary": "Replaces the Flex-domain metadata for a group (PMC).",
        "parameters": [
          {
            "name": "groupKey",
            "in": "path",
            "description": "The dhango-assigned group key (Group.Key). Stable across renames.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The Flex PMC metadata to store.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/FlexPmcModel"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/FlexPmcModel"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/FlexPmcModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "GroupMetadata"
        ],
        "summary": "Reads the Flex-domain metadata for a group (PMC).",
        "parameters": [
          {
            "name": "groupKey",
            "in": "path",
            "description": "The dhango-assigned group key (Group.Key).",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/FlexPmcModel"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/FlexPmcModel"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/FlexPmcModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "GroupMetadata"
        ],
        "summary": "Removes the Flex-domain metadata for a group (PMC).",
        "parameters": [
          {
            "name": "groupKey",
            "in": "path",
            "description": "The dhango-assigned group key (Group.Key).",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/invoices/{invoiceId}/metadata/flex": {
      "put": {
        "tags": [
          "InvoiceMetadata"
        ],
        "summary": "Sets (replaces) the Flex-domain metadata for an invoice. Preserves all other metadata entries.",
        "parameters": [
          {
            "name": "invoiceId",
            "in": "path",
            "description": "The invoice identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The Flex invoice (ledger) metadata to store.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/FlexInvoiceModel"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/FlexInvoiceModel"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/FlexInvoiceModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "The metadata was saved."
          },
          "400": {
            "description": "The request body is invalid.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "The invoice does not belong to the caller's scope.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "InvoiceMetadata"
        ],
        "summary": "Gets the Flex-domain metadata for an invoice. Returns 404 if no Flex metadata has been set.",
        "parameters": [
          {
            "name": "invoiceId",
            "in": "path",
            "description": "The invoice identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The Flex metadata for the invoice.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/FlexInvoiceModel"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/FlexInvoiceModel"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/FlexInvoiceModel"
                }
              }
            }
          },
          "404": {
            "description": "No Flex metadata exists for the invoice, or the invoice does not exist.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "InvoiceMetadata"
        ],
        "summary": "Removes the Flex-domain metadata from an invoice. Preserves all other metadata entries.",
        "parameters": [
          {
            "name": "invoiceId",
            "in": "path",
            "description": "The invoice identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The metadata was removed (or did not exist)."
          }
        }
      }
    },
    "/v1/invoices": {
      "put": {
        "tags": [
          "Invoices"
        ],
        "summary": "Performs a full replacement of invoices for this account.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Contains a collection of invoices.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The invoices were accepted for storage."
          },
          "400": {
            "description": "The invoices were not saved successfully. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Invoices"
        ],
        "summary": "Saves invoices to the data store using inserts and updates based on the Id property of each invoice. No deletions occur as a part of this operation.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Contains a collection of invoices.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The invoices were processed for updates and inserts."
          },
          "400": {
            "description": "The invoices were not saved successfully. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/invoices/{id}": {
      "delete": {
        "tags": [
          "Invoices"
        ],
        "summary": "Deletes an individual invoice.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier for the invoice.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The invoice was deleted."
          }
        }
      }
    },
    "/v1/locations": {
      "get": {
        "tags": [
          "Locations"
        ],
        "summary": "Returns the list of locations of the account. Deleted locations are not included.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "The current page of the search results starting at 1.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The number of records per page. The default is 25 and the maximum is 50.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The page of locations.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetLocationResponseSearchResults"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetLocationResponseSearchResults"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetLocationResponseSearchResults"
                }
              }
            }
          },
          "403": {
            "description": "The credential may not read locations.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Locations"
        ],
        "summary": "Creates a location for the account.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The name and address of the location.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostLocationRequest"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostLocationRequest"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostLocationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The location was created.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetLocationResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetLocationResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetLocationResponse"
                }
              }
            }
          },
          "400": {
            "description": "The name or address is missing or invalid. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "The credential may not manage locations (a merchant's own credential, or a platform credential without accountKey).",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/locations/{id}": {
      "get": {
        "tags": [
          "Locations"
        ],
        "summary": "Gets a single location of the account.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of the location.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The location.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetLocationResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetLocationResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetLocationResponse"
                }
              }
            }
          },
          "403": {
            "description": "The credential may not read locations.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "The location does not exist for the account or was deleted."
          }
        }
      },
      "patch": {
        "tags": [
          "Locations"
        ],
        "summary": "Updates a location: its name, its full address, or both.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of the location.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The new name and/or the full replacement address.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PatchLocationRequest"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PatchLocationRequest"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PatchLocationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated location.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetLocationResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetLocationResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetLocationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Neither a name nor an address was sent, or the address is partial or invalid.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "The credential may not manage locations.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "The location does not exist for the account or was deleted."
          }
        }
      },
      "delete": {
        "tags": [
          "Locations"
        ],
        "summary": "Deletes a location that has no terminal at it (active or deactivated; move them with PATCH first).\r\nAfterwards the location is not found by any endpoint and cannot be restored through the API.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of the location.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The location was deleted."
          },
          "403": {
            "description": "The credential may not manage locations.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "The location does not exist for the account or was already deleted."
          },
          "409": {
            "description": "A terminal is still at the location.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/payerFees": {
      "get": {
        "tags": [
          "PayerFees"
        ],
        "summary": "Calculates the payer fees so the fees can be displayed to a user prior to payment.",
        "parameters": [
          {
            "name": "amount",
            "in": "query",
            "description": "The amount of the payment from which to calculate the payer fees.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "cardNumber",
            "in": "query",
            "description": "The card number to calculate the payer fees. This is useful when calculating payer fees based on compliant surcharging rules. The card token Id should be null if this value is passed in.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tokenId",
            "in": "query",
            "description": "The token identifier for the card. The card number should be null if this value is passed in.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The payer fees were calculated and are in the response body.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetPayerFeesResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetPayerFeesResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetPayerFeesResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/terminals": {
      "get": {
        "tags": [
          "Terminals"
        ],
        "summary": "Returns the list of terminals, active ones only unless includeInactive is set.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "The current page of the search results starting at 1.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The number of records per page. The default is 25 and the maximum is 50.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          },
          {
            "name": "includeInactive",
            "in": "query",
            "description": "Set to true to include deactivated terminals.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The page of terminals.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponseSearchResults"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponseSearchResults"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponseSearchResults"
                }
              }
            }
          },
          "403": {
            "description": "The credential may not read terminals.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Terminals"
        ],
        "summary": "Registers a terminal for the account at one of its locations. Registration is local: no call is\r\nmade to the processor. A terminal is identified by its processor credential and processor terminal\r\nid, so repeating the request for an active terminal at the same location returns the existing\r\nterminal. A deactivated terminal is not re-registered; activate it instead.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The processor, the processor's terminal id, the location and an optional name.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostTerminalRequest"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostTerminalRequest"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostTerminalRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The terminal was registered.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              }
            }
          },
          "200": {
            "description": "The terminal was already registered at that location.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid: the account does not have exactly one credential for the processor, or the location is not a location of the account. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "The credential may not manage terminals (a merchant's own credential, or a platform credential without accountKey).",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "The terminal is registered at another location (move it with PATCH), or it is deactivated (activate it with POST /v1/terminals/{id}/activate).",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/terminals/{id}": {
      "get": {
        "tags": [
          "Terminals"
        ],
        "summary": "Gets a single terminal of the account. A deactivated terminal is returned with isActive = false.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of the terminal.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The terminal.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              }
            }
          },
          "403": {
            "description": "The credential may not read terminals.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "The terminal does not exist for the account."
          }
        }
      },
      "patch": {
        "tags": [
          "Terminals"
        ],
        "summary": "Updates a terminal, active or deactivated: its name and/or the location of the account it sits at.\r\nThe processor and processor terminal id cannot be changed.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of the terminal.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The new name and/or location.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PatchTerminalRequest"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PatchTerminalRequest"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PatchTerminalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated terminal.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              }
            }
          },
          "400": {
            "description": "Neither a name nor a location was sent, the location is not a location of the account, or the body names the processor or processor terminal id.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "The credential may not manage terminals.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "The terminal does not exist for the account."
          }
        }
      }
    },
    "/v1/terminals/{id}/deactivate": {
      "post": {
        "tags": [
          "Terminals"
        ],
        "summary": "Deactivates a terminal. The terminal is kept with its session and transaction history and can no\r\nlonger start terminal sessions until it is activated again. Deactivating an already deactivated\r\nterminal changes nothing.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of the terminal.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The terminal, with isActive = false.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              }
            }
          },
          "403": {
            "description": "The credential may not manage terminals.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "The terminal does not exist for the account."
          }
        }
      }
    },
    "/v1/terminals/{id}/activate": {
      "post": {
        "tags": [
          "Terminals"
        ],
        "summary": "Activates a deactivated terminal at its current location, keeping its name. Activating an active\r\nterminal changes nothing. A terminal whose location no longer exists must first be moved to another\r\nlocation with PATCH.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of the terminal.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The terminal, with isActive = true.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalResponse"
                }
              }
            }
          },
          "403": {
            "description": "The credential may not manage terminals.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "The terminal does not exist for the account."
          },
          "409": {
            "description": "The terminal's location was deleted; move the terminal with PATCH first.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/terminalSessions": {
      "post": {
        "tags": [
          "TerminalSessions"
        ],
        "summary": "Initiates a terminal session for the payer to complete a payment.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Contains the information for the payer to be presented with a payment.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostTerminalSessionRequest"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostTerminalSessionRequest"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostTerminalSessionRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The response represents the newly created request to the terminal with an identifier to the new terminal session. Any error, if any, will be in the error message property."
          },
          "400": {
            "description": "The payment was not created successfully. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "The account is not active (problem details with the localized message), or the credential lacks the permission (empty body).",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/terminalSessions/{id}/cancel": {
      "post": {
        "tags": [
          "TerminalSessions"
        ],
        "summary": "Cancels the terminal session.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier for the session.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "The session has been cancelled successfully."
          },
          "400": {
            "description": "The payment was not created successfully. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/terminalSessions/{id}": {
      "get": {
        "tags": [
          "TerminalSessions"
        ],
        "summary": "Gets detailed information on a single terminal session.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of the terminal session.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The terminal session was found and the details are in the response body. All account numbers will be masked.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalSessionResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalSessionResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTerminalSessionResponse"
                }
              }
            }
          },
          "404": {
            "description": "The terminal session could not be found."
          }
        }
      }
    },
    "/v1/tokens/{id}": {
      "get": {
        "tags": [
          "Tokens"
        ],
        "summary": "Gets the masked details of a saved payment token.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of the token.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The token was found and the details are in the response body. All account numbers will be masked.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTokenResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTokenResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTokenResponse"
                }
              }
            }
          },
          "404": {
            "description": "The token could not be found."
          }
        }
      },
      "delete": {
        "tags": [
          "Tokens"
        ],
        "summary": "Deletes a saved payment method. This will not impact any transactions that are already in process with this token.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of the token.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The token was deleted successfully."
          },
          "404": {
            "description": "The token could not be found."
          }
        }
      }
    },
    "/v1/tokens": {
      "post": {
        "tags": [
          "Tokens"
        ],
        "summary": "Saves a payment method as a token for later use.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Contains payment information to be stored.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostTokenRequest"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostTokenRequest"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostTokenRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The token was created successfully. The Id for the new token is in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTokenResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTokenResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "The token was not created successfully. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/transactions/{id}": {
      "get": {
        "tags": [
          "Transactions"
        ],
        "summary": "Gets detailed information on a single transaction.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of the transaction.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The transaction was found and the details are in the response body. All account numbers will be masked.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              }
            }
          },
          "404": {
            "description": "The transaction could not be found."
          }
        }
      }
    },
    "/v1/transactions": {
      "get": {
        "tags": [
          "Transactions"
        ],
        "summary": "Returns a list of transactions that match the search criteria.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "batchId",
            "in": "query",
            "description": "Filter for transactions in a given batch.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "transactionEventType",
            "in": "query",
            "description": "Filter by the type of event that initiated the transaction. If used in \r\n            conjunction with the begin date and/or end date, this will filter by the date associated with that event. For example,\r\n            specifying an event type of Refund as well as dates would filter for transactions that were refunded in that date range.",
            "schema": {
              "$ref": "#/components/schemas/TransactionEventType"
            }
          },
          {
            "name": "paymentMethodType",
            "in": "query",
            "description": "Filter by payment method type.",
            "schema": {
              "$ref": "#/components/schemas/PaymentMethodType"
            }
          },
          {
            "name": "beginDate",
            "in": "query",
            "description": "The first date by which to filter.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "description": "The last date by which to filter.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "The current page of the search results starting at 1.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The number of records per page. The default is 25 and the maximum is 50.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponseSearchResults"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponseSearchResults"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponseSearchResults"
                }
              }
            }
          }
        }
      }
    },
    "/v1/transactions/pay": {
      "post": {
        "tags": [
          "Transactions"
        ],
        "summary": "Attempts to initiate a payment using a specified payment method. This operation runs an authorization and capture on card transactions.",
        "description": "Supply the optional `Idempotency-Key` header to make this call safely retryable. Repeating the request with the same key and the same payload returns the transaction this key originally created, in its current state, and sets the `Idempotent-Replayed` response header to true, instead of creating a second transaction. If the account has become inactive since, the repeat is refused with the same 403 as any other request from an inactive account, and the transaction is returned again once it is active.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional. An opaque, caller-generated key (a UUID is recommended) of up to 200 characters that makes this request safely retryable. Keys are scoped to the acting account and are never reused across accounts. Retrying with the same key and the same request does not create a second transaction: it returns the transaction this key originally created, in its current state, and sets the Idempotent-Replayed response header to true. Reusing the key with a different request returns 422, and retrying while the original request is still being processed returns 409. If idempotency processing is temporarily unavailable the request is not processed and 503 is returned; retry later with the same key. Keys are retained for 7 days after the original request's outcome is known; after that the same key is treated as new. Omitting the header leaves the request's behaviour unchanged.",
            "schema": {
              "maxLength": 200,
              "type": "string"
            },
            "example": "019c9c75-a58d-7ee1-bcf8-ce4574db78de"
          }
        ],
        "requestBody": {
          "description": "The payment details required to initiate the transaction.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostPayRequest"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostPayRequest"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostPayRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The response represents the newly created transaction. Any error, if any, will be in the error message property.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              }
            }
          },
          "400": {
            "description": "The payment was not created successfully. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "The account is not active (problem details with the localized message), including on a repeat of a request made with the same Idempotency-Key while it was active; or the credential lacks the permission, or the account's processor configuration cannot pay the requested splits (empty body).",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "A request with the supplied Idempotency-Key is already being processed, or its outcome is not yet known. Retry later with the same key.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "The supplied Idempotency-Key was already used for a different request payload.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Idempotency processing is temporarily unavailable; the request was not processed. Retry later with the same Idempotency-Key.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/transactions/payout": {
      "post": {
        "tags": [
          "Transactions"
        ],
        "summary": "Attempts to initiate a payout to a recipient's bank account.",
        "description": "Supply the optional `Idempotency-Key` header to make this call safely retryable. Repeating the request with the same key and the same payload returns the transaction this key originally created, in its current state, and sets the `Idempotent-Replayed` response header to true, instead of creating a second transaction. If the paying account has become inactive since, the repeat is refused with the same 403 as any other request from an inactive account, and the transaction is returned again once it is active.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional. An opaque, caller-generated key (a UUID is recommended) of up to 200 characters that makes this request safely retryable. Keys are scoped to the acting account and are never reused across accounts. Retrying with the same key and the same request does not create a second transaction: it returns the transaction this key originally created, in its current state, and sets the Idempotent-Replayed response header to true. Reusing the key with a different request returns 422, and retrying while the original request is still being processed returns 409. If idempotency processing is temporarily unavailable the request is not processed and 503 is returned; retry later with the same key. Keys are retained for 7 days after the original request's outcome is known; after that the same key is treated as new. Omitting the header leaves the request's behaviour unchanged.",
            "schema": {
              "maxLength": 200,
              "type": "string"
            },
            "example": "019c9c75-a58d-7ee1-bcf8-ce4574db78de"
          }
        ],
        "requestBody": {
          "description": "The banking details required to initiate the payout.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostPayoutRequest"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostPayoutRequest"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostPayoutRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The response represents the newly created transaction. Any error, if any, will be in the error message property.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              }
            }
          },
          "400": {
            "description": "The payout was not created successfully. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "The paying account is not active (problem details with the localized message), including on a repeat of a request made with the same Idempotency-Key while it was active, or the credential lacks the permission (empty body).",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "A request with the supplied Idempotency-Key is already being processed, or its outcome is not yet known. Retry later with the same key.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "The supplied Idempotency-Key was already used for a different request payload.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Idempotency processing is temporarily unavailable; the request was not processed. Retry later with the same Idempotency-Key.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/transactions/authorize": {
      "post": {
        "tags": [
          "Transactions"
        ],
        "summary": "Attempts to authorize a payment using on a card.",
        "description": "Supply the optional `Idempotency-Key` header to make this call safely retryable. Repeating the request with the same key and the same payload returns the transaction this key originally created, in its current state, and sets the `Idempotent-Replayed` response header to true, instead of creating a second transaction. If the account has become inactive since, the repeat is refused with the same 403 as any other request from an inactive account, and the transaction is returned again once it is active.",
        "parameters": [
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional. An opaque, caller-generated key (a UUID is recommended) of up to 200 characters that makes this request safely retryable. Keys are scoped to the acting account and are never reused across accounts. Retrying with the same key and the same request does not create a second transaction: it returns the transaction this key originally created, in its current state, and sets the Idempotent-Replayed response header to true. Reusing the key with a different request returns 422, and retrying while the original request is still being processed returns 409. If idempotency processing is temporarily unavailable the request is not processed and 503 is returned; retry later with the same key. Keys are retained for 7 days after the original request's outcome is known; after that the same key is treated as new. Omitting the header leaves the request's behaviour unchanged.",
            "schema": {
              "maxLength": 200,
              "type": "string"
            },
            "example": "019c9c75-a58d-7ee1-bcf8-ce4574db78de"
          }
        ],
        "requestBody": {
          "description": "The payment details required to authorize the transaction.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostAuthorizeRequest"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostAuthorizeRequest"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostAuthorizeRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The response represents the newly created transaction. Any error, if any, will be in the error message property.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              }
            }
          },
          "400": {
            "description": "The authorization was not created successfully. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "The account is not active (problem details with the localized message), including on a repeat of a request made with the same Idempotency-Key while it was active; or the credential lacks the permission, or the account's processor configuration cannot pay the requested splits (empty body).",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "A request with the supplied Idempotency-Key is already being processed, or its outcome is not yet known. Retry later with the same key.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "The supplied Idempotency-Key was already used for a different request payload.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Idempotency processing is temporarily unavailable; the request was not processed. Retry later with the same Idempotency-Key.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/transactions/{id}/capture": {
      "post": {
        "tags": [
          "Transactions"
        ],
        "summary": "Attempts to capture a payment from a previously authorized transaction.",
        "description": "Supply the optional `Idempotency-Key` header to make this call safely retryable. Repeating the request with the same key and the same payload returns the transaction this key originally created, in its current state, and sets the `Idempotent-Replayed` response header to true, instead of creating a second transaction.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The identifier of the previously authorized transaction.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional. An opaque, caller-generated key (a UUID is recommended) of up to 200 characters that makes this request safely retryable. Keys are scoped to the acting account and are never reused across accounts. Retrying with the same key and the same request does not create a second transaction: it returns the transaction this key originally created, in its current state, and sets the Idempotent-Replayed response header to true. Reusing the key with a different request returns 422, and retrying while the original request is still being processed returns 409. If idempotency processing is temporarily unavailable the request is not processed and 503 is returned; retry later with the same key. Keys are retained for 7 days after the original request's outcome is known; after that the same key is treated as new. Omitting the header leaves the request's behaviour unchanged.",
            "schema": {
              "maxLength": 200,
              "type": "string"
            },
            "example": "019c9c75-a58d-7ee1-bcf8-ce4574db78de"
          }
        ],
        "requestBody": {
          "description": "The details of the amount to be captured.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostCaptureRequest"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostCaptureRequest"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostCaptureRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The response represents the newly created transaction. Any error, if any, will be in the error message property.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              }
            }
          },
          "400": {
            "description": "The capture transaction was not created successfully. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "The credential lacks the permission, or the account's processor configuration cannot pay the requested splits (empty body)."
          },
          "409": {
            "description": "A request with the supplied Idempotency-Key is already being processed, or its outcome is not yet known. Retry later with the same key.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "The supplied Idempotency-Key was already used for a different request payload.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Idempotency processing is temporarily unavailable; the request was not processed. Retry later with the same Idempotency-Key.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/transactions/{id}/void": {
      "post": {
        "tags": [
          "Transactions"
        ],
        "summary": "Attempts to void a payment. Note that voiding is only allowed on new transactions where the movement of \r\nfunds has not yet occurred.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The identifier of the transaction.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The transaction was voided created successfully."
          },
          "400": {
            "description": "The transaction was not voided successfully. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/transactions/{id}/refund": {
      "post": {
        "tags": [
          "Transactions"
        ],
        "summary": "Attempts to refund a successful payment.",
        "description": "Supply the optional `Idempotency-Key` header to make this call safely retryable. Repeating the request with the same key and the same payload returns the transaction this key originally created, in its current state, and sets the `Idempotent-Replayed` response header to true, instead of creating a second transaction. A refund the processor declined is answered again with the same 400 it first received.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The identifier of the transaction to be refunded.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional. An opaque, caller-generated key (a UUID is recommended) of up to 200 characters that makes this request safely retryable. Keys are scoped to the acting account and are never reused across accounts. Retrying with the same key and the same request does not create a second transaction: it returns the transaction this key originally created, in its current state, and sets the Idempotent-Replayed response header to true. Reusing the key with a different request returns 422, and retrying while the original request is still being processed returns 409. If idempotency processing is temporarily unavailable the request is not processed and 503 is returned; retry later with the same key. Keys are retained for 7 days after the original request's outcome is known; after that the same key is treated as new. Omitting the header leaves the request's behaviour unchanged.",
            "schema": {
              "maxLength": 200,
              "type": "string"
            },
            "example": "019c9c75-a58d-7ee1-bcf8-ce4574db78de"
          }
        ],
        "requestBody": {
          "description": "The details of the amount to be refunded.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostRefundRequest"
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostRefundRequest"
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "$ref": "#/components/schemas/PostRefundRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The response represents the newly created transaction. Any error, if any, will be in the error message property.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponse"
                }
              }
            }
          },
          "400": {
            "description": "The refund transaction was not created successfully. Error messages can be found in the body of the response.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "A request with the supplied Idempotency-Key is already being processed, or its outcome is not yet known. Retry later with the same key.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "The supplied Idempotency-Key was already used for a different request payload.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Idempotency processing is temporarily unavailable; the request was not processed. Retry later with the same Idempotency-Key.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/transactions/{id}/metadata": {
      "patch": {
        "tags": [
          "Transactions"
        ],
        "summary": "Upserts metadata values. This is only allowed for a limited time after the initial creation of the transaction record.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The identifier of the transaction to be updated.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "accountKey",
            "in": "header",
            "description": "Used to make API calls on behalf of another account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "culture",
            "in": "header",
            "description": "The culture to be used when setting the language for error messages.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Dictionary of values to be upserted. Any value of null will remove a previously saved key.",
          "content": {
            "application/json; x-api-version=1.0": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "text/json; x-api-version=1.0": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "application/*+json; x-api-version=1.0": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The response represents the newly updated transaction.",
            "content": {
              "text/plain; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponseSearchResults"
                }
              },
              "application/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponseSearchResults"
                }
              },
              "text/json; x-api-version=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/GetTransactionResponseSearchResults"
                }
              }
            }
          },
          "400": {
            "description": "The transaction was not updated successfully. Error messages can be found in the body of the response."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountProcessorCredentialStatus": {
        "enum": [
          "Active",
          "Rejected",
          "UnderReview",
          "InformationRequired",
          "Closed",
          "ReceivePaymentsNotAllowed",
          "ReceivePaymentsPendingVerification",
          "Other"
        ],
        "type": "string"
      },
      "AccountValidationMethod": {
        "enum": [
          "AccountNumber",
          "AccountNumberAndName"
        ],
        "type": "string"
      },
      "Ach": {
        "required": [
          "accountNumber",
          "bankAccountHolder",
          "routingNumber"
        ],
        "type": "object",
        "properties": {
          "bankAccountHolder": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string",
            "description": "The name of the bank account holder.",
            "example": "Acme Corporation"
          },
          "routingNumber": {
            "maxLength": 9,
            "minLength": 9,
            "type": "string",
            "description": "The 9 digit routing number.",
            "example": "021000021"
          },
          "bankAccountType": {
            "$ref": "#/components/schemas/BankAccountType"
          },
          "accountNumber": {
            "maxLength": 17,
            "minLength": 4,
            "type": "string",
            "description": "The full account number.",
            "example": "08292983191"
          }
        },
        "additionalProperties": false,
        "description": "The banking information used to process an ACH payment."
      },
      "Acss": {
        "required": [
          "accountHolder",
          "accountNumber",
          "institutionNumber",
          "transitNumber"
        ],
        "type": "object",
        "properties": {
          "accountHolder": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string",
            "description": "The name of the account holder.",
            "example": "Acme Corporation"
          },
          "bankAccountType": {
            "$ref": "#/components/schemas/BankAccountType"
          },
          "institutionNumber": {
            "maxLength": 3,
            "minLength": 3,
            "type": "string",
            "description": "The 3 digit institution number.",
            "example": "001"
          },
          "transitNumber": {
            "maxLength": 5,
            "minLength": 5,
            "type": "string",
            "description": "The 5 digit transit number.",
            "example": "00114"
          },
          "accountNumber": {
            "maxLength": 12,
            "minLength": 7,
            "type": "string",
            "description": "The full account number.",
            "example": "08292983191"
          }
        },
        "additionalProperties": false,
        "description": "The banking information used to process a Canadian bank transaction."
      },
      "Address": {
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 150,
            "type": "string",
            "description": "The name at the address",
            "nullable": true,
            "example": "Acme Corporation"
          },
          "streetAddress": {
            "maxLength": 250,
            "type": "string",
            "description": "The street address including the street and unit number.",
            "nullable": true,
            "example": "1234 Main Street"
          },
          "city": {
            "maxLength": 100,
            "type": "string",
            "description": "The city of the address.",
            "nullable": true,
            "example": "Austin"
          },
          "stateOrProvince": {
            "maxLength": 100,
            "type": "string",
            "description": "The abbreviated state or province of the address.",
            "nullable": true,
            "example": "TX"
          },
          "postalCode": {
            "maxLength": 15,
            "type": "string",
            "description": "The postal code of the address.",
            "nullable": true,
            "example": "78701"
          },
          "country": {
            "maxLength": 2,
            "type": "string",
            "description": "The two character country code.",
            "nullable": true,
            "example": "US"
          },
          "phoneNumber": {
            "type": "string",
            "description": "The phone number.",
            "nullable": true,
            "example": "512-555-1234"
          }
        },
        "additionalProperties": false,
        "description": "Full address information."
      },
      "ApplicationSessionAutoOnboarding": {
        "type": "object",
        "properties": {
          "backgroundChecks": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The background checks to run automatically once the applicant completes sign-up.\r\nSupported values: `BankAccountAndName` (bank account validation with\r\naccount-holder name matching) and `TinOnly` (TIN verification). Names are\r\nmatched case-insensitively and repeats are ignored; the canonical list is returned\r\nin the response. A non-empty list is the switch for automatic onboarding; omit the\r\n`autoOnboarding` object for the standard manual onboarding flow.",
            "nullable": true,
            "example": [
              "BankAccountAndName",
              "TinOnly"
            ]
          },
          "processors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApplicationSessionAutoOnboardingProcessor"
            },
            "description": "The processor to onboard the applicant to once the background checks pass.\r\nAt most one entry; it requires a non-empty `backgroundChecks` list. An empty list is the same as\r\nomitting it. As for\r\n`backgroundChecks`, the processor name is matched case-insensitively and the region trimmed and\r\nmatched case-insensitively; the response echoes the canonical processor name and the trimmed region.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Automatic onboarding configuration for an application session (work item 2768).\r\nSupplied by the platform when creating the session; the object is the extension point\r\nfor later processor onboarding, so only the members documented here are accepted and\r\nany other member is rejected rather than silently ignored."
      },
      "ApplicationSessionAutoOnboardingProcessor": {
        "required": [
          "processor",
          "region"
        ],
        "type": "object",
        "properties": {
          "processor": {
            "type": "string",
            "description": "The processor to onboard to. Required. Supported value: `StripeRecipient`, matched\r\ncase-insensitively and echoed in that canonical spelling.",
            "example": "StripeRecipient"
          },
          "region": {
            "type": "string",
            "description": "The region of the platform's Stripe Platform credential to create the recipient under. Required and\r\nnot blank. Trimmed and matched case-insensitively against the calling platform's own Stripe Platform\r\ncredentials that have credits and debits enabled; echoed trimmed, in the caller's casing.\r\nIt is not the shop's country.",
            "example": "US"
          }
        },
        "additionalProperties": false,
        "description": "A processor to onboard the applicant to automatically once the background checks pass.\r\nOnly `StripeRecipient` is supported; the region picks which of the platform's Stripe Platform\r\ncredentials the recipient is created under. Members other than `processor` and `region` are\r\nrejected."
      },
      "ApplicationSessionEmbedConfig": {
        "type": "object",
        "properties": {
          "readOnlyFields": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Field keys the sign-up form must render read-only.",
            "nullable": true,
            "example": [
              "contact.email",
              "organization.taxId"
            ]
          },
          "skipSteps": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Sign-up step ids (1 = Contact, 2 = Organization, 3 = Controllers and Officers,\r\n4 = Financial) the flow may skip. The confirmation step can never be skipped.",
            "nullable": true,
            "example": [
              3,
              4
            ]
          },
          "theme": {
            "$ref": "#/components/schemas/ApplicationSessionEmbedTheme"
          }
        },
        "additionalProperties": false,
        "description": "Embedded (iframe) sign-up configuration for an application session. Supplied by the\r\nplatform when creating the session and echoed back to the sign-up form, whose copy of\r\nthis configuration is authoritative over anything the host page supplies client-side."
      },
      "ApplicationSessionEmbedTheme": {
        "type": "object",
        "properties": {
          "backgroundColor": {
            "type": "string",
            "description": "The page surface behind the card.",
            "nullable": true,
            "example": "#f8fafc"
          },
          "cardColor": {
            "type": "string",
            "description": "The card/panel surface.",
            "nullable": true,
            "example": "#ffffff"
          },
          "textColor": {
            "type": "string",
            "description": "Headings, labels, and body text.",
            "nullable": true,
            "example": "#0f172a"
          },
          "mutedTextColor": {
            "type": "string",
            "description": "Secondary/help text.",
            "nullable": true,
            "example": "#64748b"
          },
          "primaryColor": {
            "type": "string",
            "description": "Buttons, links, active step, and focus rings.",
            "nullable": true,
            "example": "#fe890f"
          },
          "borderColor": {
            "type": "string",
            "description": "Card and input borders.",
            "nullable": true,
            "example": "#e2e8f0"
          },
          "fontFamily": {
            "type": "string",
            "description": "A system font or any Google Fonts family name.",
            "nullable": true,
            "example": "Poppins"
          },
          "fontSizeBase": {
            "maximum": 20,
            "minimum": 12,
            "type": "integer",
            "description": "Base font size in pixels (12-20); scales the whole flow.",
            "format": "int32",
            "nullable": true,
            "example": 16
          },
          "borderRadius": {
            "maximum": 24,
            "minimum": 0,
            "type": "integer",
            "description": "Corner radius in pixels (0-24) for cards, inputs, and buttons.",
            "format": "int32",
            "nullable": true,
            "example": 8
          }
        },
        "additionalProperties": false,
        "description": "Visual theme for the embedded sign-up flow. Colors are hex (\"#rgb\", \"#rgba\",\r\n\"#rrggbb\", or \"#rrggbbaa\") or rgb()/rgba() (legacy comma or modern space/slash\r\nsyntax; integer channels 0-255; alpha 0-1 or 0%-100%); values are validated\r\nbecause the sign-up form applies them as CSS."
      },
      "AuDirectDebit": {
        "required": [
          "accountNumber",
          "bankAccountHolder",
          "bsb"
        ],
        "type": "object",
        "properties": {
          "bankAccountHolder": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string",
            "description": "The name of the account holder.",
            "example": "Acme Corporation"
          },
          "bsb": {
            "maxLength": 7,
            "minLength": 7,
            "type": "string",
            "description": "The BSB",
            "example": "123-456"
          },
          "accountNumber": {
            "maxLength": 17,
            "minLength": 5,
            "type": "string",
            "description": "The full account number.",
            "example": "08292983191"
          }
        },
        "additionalProperties": false,
        "description": "Australian direct debit."
      },
      "Bacs": {
        "required": [
          "accountNumber",
          "bankAccountHolder",
          "sortCode"
        ],
        "type": "object",
        "properties": {
          "bankAccountHolder": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string",
            "description": "The name of the account holder.",
            "example": "Acme Corporation"
          },
          "sortCode": {
            "maxLength": 6,
            "minLength": 6,
            "type": "string",
            "description": "The sort code.",
            "example": "102030"
          },
          "accountNumber": {
            "maxLength": 8,
            "minLength": 8,
            "type": "string",
            "description": "The full account number.",
            "example": "12345678"
          }
        },
        "additionalProperties": false,
        "description": "United Kingdom direct debit."
      },
      "BankAccountType": {
        "enum": [
          "PersonalSavings",
          "PersonalChecking",
          "CorporateSavings",
          "CorporateChecking"
        ],
        "type": "string"
      },
      "BatchFundAttempt": {
        "type": "object",
        "properties": {
          "createDate": {
            "type": "string",
            "description": "The date the fund attempt was created.",
            "format": "date-time"
          },
          "estimatedSettlementDate": {
            "type": "string",
            "description": "The estimated date of the settlement of funds.",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/BatchFundAttemptStatus"
          },
          "returnDate": {
            "type": "string",
            "description": "The return date in the event of a failure.",
            "format": "date-time",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "description": "The error message in the event of a failure.",
            "nullable": true
          },
          "errorCode": {
            "type": "string",
            "description": "The specific error code in the event of a failure.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Contains status of a batch fund attempt."
      },
      "BatchFundAttemptStatus": {
        "enum": [
          "New",
          "InProcess",
          "Sent",
          "Failed"
        ],
        "type": "string"
      },
      "BrowserInformation": {
        "type": "object",
        "properties": {
          "userAgent": {
            "type": "string",
            "description": "The User-Agent request header value.",
            "nullable": true,
            "example": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
          }
        },
        "additionalProperties": false,
        "description": "The information on the user's browser."
      },
      "Card": {
        "required": [
          "cardHolder",
          "cardNumber",
          "expirationMonth",
          "expirationYear"
        ],
        "type": "object",
        "properties": {
          "cardHolder": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string",
            "description": "The name of the card holder.",
            "example": "John Smith"
          },
          "cardNumber": {
            "maxLength": 16,
            "minLength": 14,
            "type": "string",
            "description": "The card number.",
            "format": "credit-card",
            "example": "4895379980003055"
          },
          "cardBrand": {
            "$ref": "#/components/schemas/CardBrand"
          },
          "expirationMonth": {
            "maximum": 12,
            "minimum": 1,
            "type": "integer",
            "description": "The expiration month.",
            "format": "int32",
            "example": 12
          },
          "expirationYear": {
            "type": "integer",
            "description": "The two or four digit expiration year.",
            "format": "int32",
            "example": 2025
          },
          "securityCode": {
            "type": "string",
            "description": "The CVV/security code for the card.",
            "nullable": true,
            "example": "123"
          }
        },
        "additionalProperties": false,
        "description": "The card details used to process a payment."
      },
      "CardBrand": {
        "enum": [
          "Visa",
          "Mastercard",
          "AmericanExpress",
          "Discover",
          "DinersClub"
        ],
        "type": "string"
      },
      "Channel": {
        "enum": [
          "API",
          "Terminal",
          "Automated",
          "Scan",
          "Bank",
          "Web"
        ],
        "type": "string"
      },
      "Check": {
        "required": [
          "fileIds"
        ],
        "type": "object",
        "properties": {
          "checkNumber": {
            "maxLength": 150,
            "type": "string",
            "description": "The check number.",
            "nullable": true,
            "example": "012345"
          },
          "routingNumber": {
            "maxLength": 9,
            "minLength": 9,
            "type": "string",
            "description": "The 9 digit routing number.",
            "nullable": true,
            "example": "021000021"
          },
          "accountNumber": {
            "maxLength": 17,
            "minLength": 4,
            "type": "string",
            "description": "The full account number.",
            "nullable": true,
            "example": "08292983191"
          },
          "fileIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The file Ids that were used for validation."
          }
        },
        "additionalProperties": false,
        "description": "Paper check."
      },
      "Currency": {
        "enum": [
          "USD",
          "CAD",
          "EUR",
          "AUD",
          "GBP",
          "NZD",
          "DKK",
          "NOK",
          "SEK",
          "CHF"
        ],
        "type": "string"
      },
      "Customer": {
        "required": [
          "amountDue",
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string",
            "description": "The unique identifier for the customer.",
            "example": "jsmith123"
          },
          "name": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string",
            "description": "The name of the customer.",
            "example": "John Smith"
          },
          "phoneNumber": {
            "maxLength": 50,
            "type": "string",
            "description": "The phone number.",
            "nullable": true,
            "example": "512-555-1234"
          },
          "emailAddress": {
            "maxLength": 150,
            "type": "string",
            "description": "The email address.",
            "nullable": true,
            "example": "johnsmith@gmail.com"
          },
          "billingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "dueDate": {
            "type": "string",
            "description": "The due date.",
            "format": "date-time",
            "nullable": true,
            "example": "2050-02-28"
          },
          "amountDue": {
            "minimum": 0,
            "type": "number",
            "description": "The amount due.",
            "format": "double",
            "example": 123.45
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "A  <string, string>  dictionary of any application-specific metadata to have stored with the customer.",
            "nullable": true,
            "example": {
              "userId": "jsmith",
              "accountId": "123"
            }
          }
        },
        "additionalProperties": false,
        "description": "The customer data for specifying the the amount due on account."
      },
      "CustomerInitiatedEntry": {
        "required": [
          "bankAccountHolder"
        ],
        "type": "object",
        "properties": {
          "bankAccountHolder": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string",
            "description": "The name of the bank account holder.",
            "example": "Acme Corporation"
          }
        },
        "additionalProperties": false,
        "description": "Customer initiated entry. This serves as a placeholder since there is no detailed account information that comes in on the payment record."
      },
      "FlexEntityStatus": {
        "enum": [
          "Active",
          "Inactive",
          "Other"
        ],
        "type": "string",
        "description": "The enrollment or operational status of a Flex entity (PMC or property)."
      },
      "FlexInvoiceModel": {
        "type": "object",
        "properties": {
          "code": {
            "$ref": "#/components/schemas/FlexLedgerCode"
          },
          "codeDetails": {
            "type": "string",
            "description": "Free-text detail when dhango.Flex.Contracts.Models.FlexInvoiceModel.Code is dhango.Flex.Contracts.Enums.FlexLedgerCode.Other.",
            "nullable": true
          },
          "isRentDebit": {
            "type": "boolean",
            "description": "Indicates whether this entry represents the main rental cost of the lease (Flex `is_rent_debit`)."
          },
          "balanceDueInCents": {
            "type": "integer",
            "description": "The remaining balance due for this charge, in cents (Flex `balance_due_in_cents`). dhango\r\ndoes not track running balances, so the partner supplies it when known.",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The Flex-domain metadata model for an invoice (a tenant-ledger charge)."
      },
      "FlexLease": {
        "type": "object",
        "properties": {
          "startDate": {
            "type": "string",
            "description": "The start date of the lease (Flex `start_date`).",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "description": "The end date of the lease, or null if open-ended (Flex `end_date`, nullable).",
            "format": "date",
            "nullable": true
          },
          "moveInDate": {
            "type": "string",
            "description": "The date the tenant moved in (Flex `move_in_date`).",
            "format": "date"
          },
          "moveOutDate": {
            "type": "string",
            "description": "The date the tenant moved out, or null if no move-out notice (Flex `move_out_date`, nullable).",
            "format": "date",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Lease terms for a Flex tenant. Sourced entirely from the platform partner; dhango does not model\r\nleases."
      },
      "FlexLedgerCode": {
        "enum": [
          "Rent",
          "Security_Deposit",
          "Subsidized_Rent",
          "Utilities",
          "Other"
        ],
        "type": "string",
        "description": "The Flex tenant-ledger entry code. Mirrors the Flex ledger `code` allowed values."
      },
      "FlexOccupancy": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The occupancy identifier provided by the platform partner (the Flex `occupancy.id`).",
            "nullable": true
          },
          "totalRentInCents": {
            "type": "integer",
            "description": "The monthly total rent amount, in cents (Flex `total_rent_in_cents`).",
            "format": "int64"
          },
          "allowOnlinePayments": {
            "type": "boolean",
            "description": "If false, Flex blocks online payments for this occupancy."
          },
          "allowOverpayments": {
            "type": "boolean",
            "description": "Resident-level override for overpayments; null inherits the property-level setting.",
            "nullable": true
          },
          "allowPartialPayments": {
            "type": "boolean",
            "description": "Resident-level override for partial payments; null inherits the property-level setting.",
            "nullable": true
          },
          "isHeadOfHousehold": {
            "type": "boolean",
            "description": "Indicates whether this resident is the head of household.",
            "nullable": true
          },
          "isMinor": {
            "type": "boolean",
            "description": "Indicates whether this resident is a minor.",
            "nullable": true
          },
          "lateDate": {
            "type": "integer",
            "description": "The day of the month on which rent is considered late (e.g. 5 = the 5th).",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The Flex occupancy for a tenant — the resident-level payment configuration and rent. Sourced\r\nfrom the platform partner; dhango does not model occupancy or monthly rent\r\n(`Customer.AmountDue` is a balance, not rent)."
      },
      "FlexPmcModel": {
        "type": "object",
        "properties": {
          "flexEnabled": {
            "type": "boolean",
            "description": "Indicates whether Flex is enabled for the PMC. Maps to the Flex `flex_enabled` field."
          }
        },
        "additionalProperties": false,
        "description": "The Flex-domain metadata model for a property management company (PMC)."
      },
      "FlexPropertyModel": {
        "type": "object",
        "properties": {
          "allowOnlinePayments": {
            "type": "boolean",
            "description": "If false, Flex blocks online payments for this property. Required by Flex; no dhango source."
          },
          "allowOverpayments": {
            "type": "boolean",
            "description": "Indicates whether overpayments are allowed. Required by Flex; no dhango source."
          },
          "allowPartialPayments": {
            "type": "boolean",
            "description": "Indicates whether partial payments are allowed. Required by Flex; no dhango source."
          },
          "partialPaymentCutoffDate": {
            "type": "string",
            "description": "The date after which partial payments are no longer accepted. Drives the Flex\r\n`PARTIAL_PAYMENT_CUTOFF_DATE_PASSED` rejection on tenant payments.",
            "format": "date",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/FlexPropertyType"
          },
          "typeDetails": {
            "type": "string",
            "description": "Free-text detail when dhango.Flex.Contracts.Models.FlexPropertyModel.Type is dhango.Flex.Contracts.Enums.FlexPropertyType.Other.",
            "nullable": true
          },
          "statusOverride": {
            "$ref": "#/components/schemas/FlexEntityStatus"
          },
          "statusDetails": {
            "type": "string",
            "description": "Free-text detail when the property status is `other`.",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "description": "The second line of the property address. dhango stores only a single street line.",
            "nullable": true
          },
          "units": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlexUnit"
            },
            "description": "The rentable units at this property. dhango has no Unit entity, so units are collected here.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The Flex-domain metadata model for a property."
      },
      "FlexPropertyType": {
        "enum": [
          "Commercial",
          "Residential",
          "Student_Housing",
          "Other"
        ],
        "type": "string",
        "description": "The Flex property type. Mirrors the Flex property `type` allowed values."
      },
      "FlexTenantModel": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "description": "The tenant's first name. `Customer.Name` is a single field, so the split is collected here.",
            "nullable": true
          },
          "middleName": {
            "type": "string",
            "description": "The tenant's middle name.",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "The tenant's last name.",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/FlexTenantStatus"
          },
          "statusDetails": {
            "type": "string",
            "description": "Free-text detail when dhango.Flex.Contracts.Models.FlexTenantModel.Status is dhango.Flex.Contracts.Enums.FlexTenantStatus.Other.",
            "nullable": true
          },
          "unitId": {
            "type": "string",
            "description": "The identifier of the dhango.Flex.Contracts.Models.FlexUnit (on the owning property) this tenant occupies.",
            "nullable": true
          },
          "lease": {
            "$ref": "#/components/schemas/FlexLease"
          },
          "occupancy": {
            "$ref": "#/components/schemas/FlexOccupancy"
          }
        },
        "additionalProperties": false,
        "description": "The Flex-domain metadata model for a tenant."
      },
      "FlexTenantStatus": {
        "enum": [
          "Applicant",
          "Collections",
          "Current",
          "Eviction",
          "Former",
          "Future",
          "Other"
        ],
        "type": "string",
        "description": "The residency status of a Flex tenant. Mirrors the Flex tenant `status` allowed values."
      },
      "FlexUnit": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unit identifier provided by the platform partner (the Flex `id`).",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "The unit name or number (e.g. \"204\", \"B-12\"). Nullable per the Flex spec.",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "description": "The first line of the unit address. When null, the property address is used.",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "description": "The second line of the unit address.",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "The city of the unit address. When null, the property city is used.",
            "nullable": true
          },
          "state": {
            "type": "string",
            "description": "The state of the unit address. When null, the property state is used.",
            "nullable": true
          },
          "postalCode": {
            "type": "string",
            "description": "The postal code of the unit address. When null, the property postal code is used.",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "description": "The two-letter country code of the unit address. When null, the property country code is used.",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/FlexUnitStatus"
          },
          "statusDetails": {
            "type": "string",
            "description": "Free-text detail when dhango.Flex.Contracts.Models.FlexUnit.Status is dhango.Flex.Contracts.Enums.FlexUnitStatus.Other.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A rentable unit at a Flex property. dhango has no Unit entity, so units are collected from the\r\nplatform partner and stored on the owning `Account`'s Flex metadata."
      },
      "FlexUnitStatus": {
        "enum": [
          "Occupied",
          "Notice",
          "Notice_Rented",
          "Vacant",
          "Vacant_Rented",
          "Other"
        ],
        "type": "string",
        "description": "The occupancy status of a rentable unit."
      },
      "GetAccountResponse": {
        "type": "object",
        "properties": {
          "doingBusinessAs": {
            "type": "string",
            "description": "The name of the account.",
            "nullable": true,
            "example": "Acme Corporation"
          },
          "platformIdentifier": {
            "type": "string",
            "description": "This is used to crosswalk from dhango to the platform's system.",
            "nullable": true,
            "example": "abcdef123456"
          },
          "isActive": {
            "type": "boolean",
            "description": "True if processing is turned on for the account. Otherwise; false.",
            "example": true
          },
          "processorCredentialStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProcessorCredentialStatus"
            },
            "description": "The list of processors for this account as well as the status of each one.",
            "nullable": true
          },
          "paymentMethodProcessors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentMethodProcessor"
            },
            "description": "The list of payment methods that are activated along with the payment processor.",
            "nullable": true
          },
          "defaultCurrency": {
            "$ref": "#/components/schemas/Currency"
          },
          "supportedPaymentMethods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentMethodType"
            },
            "description": "The supported payment methods on the account.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Contains the status of an account."
      },
      "GetBatchResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The unique identifier of the batch.",
            "format": "int64",
            "example": 12345
          },
          "grossAmount": {
            "type": "number",
            "description": "The total gross amount of the batch. This will be different than the net amount if transactions in the batch were net funded.",
            "format": "double",
            "example": 7873.3
          },
          "netAmount": {
            "type": "number",
            "description": "The total net amount deposited to or debited from the bank account.",
            "format": "double",
            "example": 7870.1
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "createDate": {
            "type": "string",
            "description": "The date the batch was created (GMT).",
            "format": "date-time",
            "example": "6/1/2023"
          },
          "transactionCount": {
            "type": "integer",
            "description": "The number of transactions in the batch.",
            "format": "int32",
            "example": 123
          },
          "batchFundAttempts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchFundAttempt"
            },
            "description": "The funding attempts for the current batch.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The summary details of a batch."
      },
      "GetBatchResponseSearchResults": {
        "type": "object",
        "properties": {
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetBatchResponse"
            },
            "description": "The list of records to display in the search results.",
            "nullable": true
          },
          "totalRecords": {
            "type": "integer",
            "description": "The total number of records in the search results.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Represents search results to display on a page."
      },
      "GetLocationResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The unique identifier for the location.",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "description": "The name of the location.",
            "nullable": true,
            "example": "Main Street Store"
          },
          "address": {
            "$ref": "#/components/schemas/LocationAddress"
          }
        },
        "additionalProperties": false,
        "description": "Details of a location."
      },
      "GetLocationResponseSearchResults": {
        "type": "object",
        "properties": {
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetLocationResponse"
            },
            "description": "The list of records to display in the search results.",
            "nullable": true
          },
          "totalRecords": {
            "type": "integer",
            "description": "The total number of records in the search results.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Represents search results to display on a page."
      },
      "GetPayerFeesResponse": {
        "type": "object",
        "properties": {
          "achFee": {
            "type": "number",
            "description": "The calculated fee for an ACH payment.",
            "format": "double",
            "readOnly": true,
            "example": 5.12,
            "deprecated": true
          },
          "cardFee": {
            "type": "number",
            "description": "The calculated fee for a card payment.",
            "format": "double",
            "readOnly": true,
            "example": 5.12,
            "deprecated": true
          },
          "payerFees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PayerFee"
            },
            "description": "The payer fees by payment method type.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The response payload after calculating the payer fees that would be associated with a payment."
      },
      "GetTerminalResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The unique identifier for the terminal.",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "description": "The friendly name for the terminal.",
            "nullable": true
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "processor": {
            "$ref": "#/components/schemas/Processor"
          },
          "processorTerminalId": {
            "type": "string",
            "description": "The identifier the processor uses for this terminal: the reader id for Stripe, the POIID for Adyen.\r\nUse it to confirm which physical device the terminal is.",
            "nullable": true,
            "example": "tmr_FAKE0001"
          },
          "locationId": {
            "type": "integer",
            "description": "The identifier of the location the terminal is registered at.",
            "format": "int64",
            "example": 12
          },
          "isActive": {
            "type": "boolean",
            "description": "False once the terminal has been unregistered. Unregistered terminals are hidden from the list by\r\ndefault and cannot start terminal sessions."
          }
        },
        "additionalProperties": false,
        "description": "Details of a terminal."
      },
      "GetTerminalResponseSearchResults": {
        "type": "object",
        "properties": {
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetTerminalResponse"
            },
            "description": "The list of records to display in the search results.",
            "nullable": true
          },
          "totalRecords": {
            "type": "integer",
            "description": "The total number of records in the search results.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Represents search results to display on a page."
      },
      "GetTerminalSessionResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the terminal session.",
            "nullable": true,
            "example": "abcdef123456"
          },
          "payer": {
            "type": "string",
            "description": "The name of the payer. This is not necessarily the same name as the card or bank account holder name.",
            "nullable": true,
            "example": "John Smith"
          },
          "userId": {
            "type": "string",
            "description": "The user Id from the application that represents the user tied to this transaction.",
            "nullable": true,
            "example": "jsmith12345"
          },
          "emailAddress": {
            "type": "string",
            "description": "The email address of the user.",
            "nullable": true,
            "example": "jsmith@example.com"
          },
          "customerId": {
            "type": "string",
            "description": "The customer identifier for the entity making the payment.",
            "nullable": true,
            "example": "1234567890"
          },
          "orderId": {
            "type": "string",
            "description": "The unique order identifier for this transaction.",
            "nullable": true,
            "example": "abcdefghi"
          },
          "terminalId": {
            "type": "integer",
            "description": "The identifier for the terminal.",
            "format": "int64",
            "example": 67890
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "A  <string, string>  dictionary of any application-specific metadata to have stored with the payment record.",
            "nullable": true,
            "example": {
              "userId": "jsmith",
              "accountId": "123"
            }
          },
          "billingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "shippingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "amount": {
            "type": "number",
            "description": "The total amount of the transaction. This is inclusive all fees, if any. This will be a negative amount in the\r\ncase of refunds, ACH returns, chargebacks, etc.",
            "format": "double",
            "example": 787.33
          },
          "payerFee": {
            "type": "number",
            "description": "The amount the payer was charged to initiate this transaction, if any. This would be a non-zero amount when\r\nthe payer is charged a fee (e.g. a convenience fee or surcharge).",
            "format": "double",
            "nullable": true,
            "example": 5.12
          },
          "platformFees": {
            "$ref": "#/components/schemas/PlatformFees"
          },
          "shippingAmount": {
            "type": "number",
            "description": "The amount charged for shipping, if any.",
            "format": "double",
            "nullable": true,
            "example": 7.87
          },
          "taxAmount": {
            "type": "number",
            "description": "The amount charged for tax, if any.",
            "format": "double",
            "nullable": true,
            "example": 78.73
          },
          "lineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionLineItem"
            },
            "description": "Line items needed for Level 2/3 qualification.",
            "nullable": true
          },
          "paidCustomers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionPaidCustomer"
            },
            "description": "The list of customers tied to this transaction.",
            "nullable": true
          },
          "paidInvoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionPaidInvoice"
            },
            "description": "The list of paid invoices on this transaction.",
            "nullable": true
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "comments": {
            "type": "string",
            "description": "Additional comments tied to the transaction.",
            "nullable": true,
            "example": "We are so excited about this purchase!"
          },
          "transactionId": {
            "type": "integer",
            "description": "Points to the transaction if a payment was made from this session.",
            "format": "int64",
            "nullable": true,
            "example": 12345
          }
        },
        "additionalProperties": false,
        "description": "The details of a terminal session."
      },
      "GetTokenResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the token.",
            "nullable": true,
            "example": "123"
          },
          "userId": {
            "type": "string",
            "description": "The user Id from the application that represents the user that owns this payment method.",
            "nullable": true,
            "example": "jsmith12345"
          },
          "emailAddress": {
            "type": "string",
            "description": "The email address of the owner of this payment method.",
            "nullable": true,
            "example": "jsmith@example.com"
          },
          "card": {
            "$ref": "#/components/schemas/Card"
          },
          "ach": {
            "$ref": "#/components/schemas/Ach"
          },
          "acss": {
            "$ref": "#/components/schemas/Acss"
          },
          "auDirectDebit": {
            "$ref": "#/components/schemas/AuDirectDebit"
          },
          "bacs": {
            "$ref": "#/components/schemas/Bacs"
          },
          "nzDirectDebit": {
            "$ref": "#/components/schemas/NzDirectDebit"
          },
          "sepa": {
            "$ref": "#/components/schemas/Sepa"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "A  <string, string>  dictionary of any application-specific metadata to have stored with the token record.",
            "nullable": true,
            "example": {
              "userId": "jsmith",
              "accountId": "123"
            }
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "status": {
            "$ref": "#/components/schemas/TokenStatus"
          }
        },
        "additionalProperties": false,
        "description": "The masked payment method that has been tokenized."
      },
      "GetTransactionResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The unique identifier of the transaction.",
            "format": "int64",
            "example": 12345
          },
          "payer": {
            "type": "string",
            "description": "The name of the payer (the party the funds come from). This is not necessarily the same name as the\r\ncard or bank account holder name. For a payout this is the merchant/account sending the funds; for all\r\nother transactions this is the customer being charged.",
            "nullable": true,
            "example": "John Smith"
          },
          "payee": {
            "type": "string",
            "description": "The name of the payee (the party the funds go to). For a payout this is the recipient receiving the\r\nfunds; for all other transactions this is the merchant/account being paid.",
            "nullable": true,
            "example": "Acme Corporation"
          },
          "userId": {
            "type": "string",
            "description": "The user Id from the application that represents the user tied to this transaction.",
            "nullable": true,
            "example": "jsmith12345"
          },
          "emailAddress": {
            "type": "string",
            "description": "The email address of the user.",
            "nullable": true,
            "example": "jsmith@example.com"
          },
          "customerId": {
            "type": "string",
            "description": "The customer identifier for the entity making the payment.",
            "nullable": true,
            "example": "1234567890"
          },
          "orderId": {
            "type": "string",
            "description": "The unique order identifier for this transaction.",
            "nullable": true,
            "example": "abcdefghi"
          },
          "ach": {
            "$ref": "#/components/schemas/Ach"
          },
          "acss": {
            "$ref": "#/components/schemas/Acss"
          },
          "auDirectDebit": {
            "$ref": "#/components/schemas/AuDirectDebit"
          },
          "bacs": {
            "$ref": "#/components/schemas/Bacs"
          },
          "card": {
            "$ref": "#/components/schemas/Card"
          },
          "check": {
            "$ref": "#/components/schemas/Check"
          },
          "customerInitiatedEntry": {
            "$ref": "#/components/schemas/CustomerInitiatedEntry"
          },
          "nzDirectDebit": {
            "$ref": "#/components/schemas/NzDirectDebit"
          },
          "sepa": {
            "$ref": "#/components/schemas/Sepa"
          },
          "terminalId": {
            "type": "integer",
            "description": "The identifier for the terminal if the transaction was through a point of sale device.",
            "format": "int64",
            "nullable": true,
            "example": 67890
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "A  <string, string>  dictionary of any application-specific metadata to have stored with the payment record.",
            "nullable": true,
            "example": {
              "userId": "jsmith",
              "accountId": "123"
            }
          },
          "billingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "shippingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "amount": {
            "type": "number",
            "description": "The total amount of the transaction. This is inclusive all fees, if any. This will be a negative amount in the\r\ncase of refunds, ACH returns, chargebacks, etc. A payout to an in-system payee is presented from the\r\ncaller's perspective: negative (outbound) to the payer, positive (inbound) to the payee.",
            "format": "double",
            "example": 787.33
          },
          "payerFee": {
            "type": "number",
            "description": "The amount the payer was charged to initiate this transaction, if any. This would be a non-zero amount when\r\nthe payer is charged a fee (e.g. a convenience fee or surcharge).",
            "format": "double",
            "nullable": true,
            "example": 5.12
          },
          "platformFees": {
            "$ref": "#/components/schemas/PlatformFees"
          },
          "splits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SplitResponse"
            },
            "description": "The collection of splits.",
            "nullable": true
          },
          "shippingAmount": {
            "type": "number",
            "description": "The amount charged for shipping, if any.",
            "format": "double",
            "nullable": true,
            "example": 7.87
          },
          "taxAmount": {
            "type": "number",
            "description": "The amount charged for tax, if any.",
            "format": "double",
            "nullable": true,
            "example": 78.73
          },
          "lineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionLineItem"
            },
            "description": "Line items needed for Level 2/3 qualification.",
            "nullable": true
          },
          "paidCustomers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionPaidCustomer"
            },
            "description": "The list of customers tied to this transaction.",
            "nullable": true
          },
          "paidInvoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionPaidInvoice"
            },
            "description": "The list of paid invoices on this transaction.",
            "nullable": true
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "comments": {
            "type": "string",
            "description": "Additional comments tied to the transaction.",
            "nullable": true,
            "example": "We are so excited about this purchase!"
          },
          "errorMessage": {
            "type": "string",
            "description": "The translated error message, if any.",
            "nullable": true
          },
          "transactionEventType": {
            "$ref": "#/components/schemas/TransactionEventType"
          },
          "originalTransactionId": {
            "type": "integer",
            "description": "Points back to the original transaction. For example, if this is a refund, the original transaction Id would\r\nbe a reference to the original payment record.",
            "format": "int64",
            "nullable": true,
            "example": null
          },
          "processorTransactionId": {
            "type": "string",
            "description": "The identifier for the transaction at the underlying processor.",
            "nullable": true,
            "example": null,
            "deprecated": true
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionEvent"
            },
            "description": "The list of events that occurred on this transaction.",
            "nullable": true,
            "example": [
              {
                "EventDate": "1/1/2023",
                "TransactionEventType": "Payment"
              }
            ]
          },
          "channel": {
            "$ref": "#/components/schemas/Channel"
          },
          "isVoidable": {
            "type": "boolean",
            "description": "True if the transaction is voidable. Otherwise, this is false."
          },
          "nextAction": {
            "$ref": "#/components/schemas/NextAction"
          },
          "processorTransaction": {
            "$ref": "#/components/schemas/ProcessorTransaction"
          },
          "batchId": {
            "type": "integer",
            "description": "The identifier for the batch this transaction belongs to, if any. For a payout to an in-system\r\npayee, this is resolved from the caller's perspective: the payee retrieving the payout sees its\r\nown settlement batch, while the payer sees the batch that debited it.",
            "format": "int64",
            "nullable": true,
            "example": 54321
          }
        },
        "additionalProperties": false,
        "description": "The details of a transaction. This could represent a payment, refund, chargeback, etc."
      },
      "GetTransactionResponseSearchResults": {
        "type": "object",
        "properties": {
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetTransactionResponse"
            },
            "description": "The list of records to display in the search results.",
            "nullable": true
          },
          "totalRecords": {
            "type": "integer",
            "description": "The total number of records in the search results.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Represents search results to display on a page."
      },
      "Invoice": {
        "required": [
          "amountDue",
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string",
            "description": "The unique identifier for the invoice.",
            "example": "abcde12345"
          },
          "customerId": {
            "maxLength": 200,
            "type": "string",
            "description": "The identifier for the customer.",
            "nullable": true,
            "example": "jsmith123"
          },
          "name": {
            "maxLength": 150,
            "type": "string",
            "description": "The name of the entity to which the invoice is addressed.",
            "nullable": true,
            "example": "John Smith"
          },
          "invoiceDate": {
            "type": "string",
            "description": "The date the invoice was created.",
            "format": "date-time",
            "nullable": true,
            "example": "2050-02-28"
          },
          "dueDate": {
            "type": "string",
            "description": "The due date for the invoice.",
            "format": "date-time",
            "nullable": true,
            "example": "2050-02-28"
          },
          "amountDue": {
            "minimum": 0,
            "type": "number",
            "description": "The amount due on the invoice.",
            "format": "double",
            "example": 123.45
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "A  <string, string>  dictionary of any application-specific metadata to have stored with the invoice.",
            "nullable": true,
            "example": {
              "userId": "jsmith",
              "accountId": "123"
            }
          }
        },
        "additionalProperties": false,
        "description": "The invoice data."
      },
      "LegalEntityType": {
        "enum": [
          "PrivateOrganization",
          "GovernmentEntity",
          "NonProfit",
          "SoleProprietorship",
          "Trust",
          "Individual",
          "PublicOrganization"
        ],
        "type": "string"
      },
      "LocationAddress": {
        "required": [
          "city",
          "country",
          "streetAddress"
        ],
        "type": "object",
        "properties": {
          "streetAddress": {
            "maxLength": 250,
            "type": "string",
            "description": "The street address including the street and unit number. Required.",
            "example": "1234 Main Street"
          },
          "city": {
            "maxLength": 100,
            "type": "string",
            "description": "The city of the address. Required.",
            "example": "Austin"
          },
          "stateOrProvince": {
            "maxLength": 100,
            "type": "string",
            "description": "The abbreviated state or province of the address.",
            "nullable": true,
            "example": "TX"
          },
          "postalCode": {
            "maxLength": 15,
            "type": "string",
            "description": "The postal code of the address.",
            "nullable": true,
            "example": "78701"
          },
          "country": {
            "maxLength": 2,
            "type": "string",
            "description": "The two character country code. Required; must be a country the system supports.",
            "example": "US"
          }
        },
        "additionalProperties": false,
        "description": "The address of a location. The location's name is a separate field on the location itself.\r\nStreet address, city and country are required (enforced by the domain with localized 400s and published\r\nas required in the OpenAPI schema); state/province and postal code are optional."
      },
      "NextAction": {
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/NextActionType"
          },
          "url": {
            "type": "string",
            "description": "The URL to redirect the user to complete the payment.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The next action to take after a payment is made."
      },
      "NextActionType": {
        "enum": [
          "Redirect"
        ],
        "type": "string"
      },
      "NzDirectDebit": {
        "required": [
          "accountNumber",
          "bankAccountHolder",
          "bankCode",
          "branchCode",
          "suffix"
        ],
        "type": "object",
        "properties": {
          "bankAccountHolder": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string",
            "description": "The name of the bank account holder.",
            "example": "Acme Corporation"
          },
          "bankCode": {
            "maxLength": 2,
            "minLength": 2,
            "type": "string",
            "description": "The bank code.",
            "example": "01"
          },
          "branchCode": {
            "maxLength": 4,
            "minLength": 4,
            "type": "string",
            "description": "The branch code.",
            "example": "1234"
          },
          "suffix": {
            "maxLength": 3,
            "minLength": 2,
            "type": "string",
            "description": "The suffix.",
            "example": "123"
          },
          "accountNumber": {
            "maxLength": 7,
            "minLength": 7,
            "type": "string",
            "description": "The full account number.",
            "example": "1234567"
          }
        },
        "additionalProperties": false,
        "description": "New Zealand direct debit."
      },
      "PatchLocationRequest": {
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 150,
            "type": "string",
            "description": "The new name of the location. Omit to keep the current name.",
            "nullable": true,
            "example": "Main Street Store"
          },
          "address": {
            "$ref": "#/components/schemas/LocationAddress"
          }
        },
        "additionalProperties": false,
        "description": "The model to update a location. Send `name` to rename it, `address` (the full address, validated\r\nas on create) to replace its address, or both. A body with neither is rejected."
      },
      "PatchTerminalRequest": {
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 100,
            "type": "string",
            "description": "The new friendly name of the terminal. Omit to keep the current name.",
            "nullable": true,
            "example": "Front Desk"
          },
          "locationId": {
            "type": "integer",
            "description": "The identifier of an active location of the account to move the terminal to. Omit to keep the current location.",
            "format": "int64",
            "nullable": true,
            "example": 12
          }
        },
        "additionalProperties": false,
        "description": "The model to update a registered terminal: its name and/or the location it sits at. The processor and\r\nprocessor terminal id are the terminal's identity and cannot be changed; a body naming them is rejected."
      },
      "PayerFee": {
        "type": "object",
        "properties": {
          "paymentMethodType": {
            "$ref": "#/components/schemas/PaymentMethodType"
          },
          "percentageFee": {
            "type": "number",
            "description": "The percentage fee, if any.",
            "format": "double"
          },
          "flatFee": {
            "type": "number",
            "description": "The flat fee, if any.",
            "format": "double"
          },
          "total": {
            "type": "number",
            "description": "The total payer fee.",
            "format": "double",
            "readOnly": true
          }
        },
        "additionalProperties": false,
        "description": "The payer fee breakdown by payment method type."
      },
      "PaymentMethodProcessor": {
        "type": "object",
        "properties": {
          "processor": {
            "$ref": "#/components/schemas/Processor"
          },
          "identifier": {
            "type": "string",
            "description": "The unique identifier for the credential.",
            "nullable": true
          },
          "paymentMethodType": {
            "$ref": "#/components/schemas/PaymentMethodType"
          }
        },
        "additionalProperties": false,
        "description": "The payment method and processor for an account."
      },
      "PaymentMethodType": {
        "enum": [
          "Card",
          "ACH",
          "ACSS",
          "Check",
          "AuDirectDebit",
          "NzDirectDebit",
          "BACS",
          "SEPA",
          "CustomerInitiatedEntry",
          "BNPL",
          "CreditsAndDebits"
        ],
        "type": "string"
      },
      "PlatformFees": {
        "type": "object",
        "properties": {
          "flatFee": {
            "type": "number",
            "description": "The flat fee.",
            "format": "double",
            "nullable": true,
            "example": 5
          },
          "percentageFee": {
            "type": "number",
            "description": "The percentage fee.",
            "format": "double",
            "nullable": true,
            "example": 0.12
          },
          "total": {
            "type": "number",
            "description": "The total fee.",
            "format": "double",
            "nullable": true,
            "example": 5.12
          }
        },
        "additionalProperties": false,
        "description": "The construct to hold the platform fees."
      },
      "PostAccountValidationRequest": {
        "type": "object",
        "properties": {
          "ach": {
            "$ref": "#/components/schemas/Ach"
          },
          "accountValidationMethod": {
            "$ref": "#/components/schemas/AccountValidationMethod"
          }
        },
        "additionalProperties": false,
        "description": "Requests validation of a payment method."
      },
      "PostAccountValidationResponse": {
        "type": "object",
        "properties": {
          "isValid": {
            "type": "boolean",
            "description": "True if the account is valid; otherwise, false."
          },
          "errorMessage": {
            "type": "string",
            "description": "The error message, if any, from the validation. This will be null if the account is valid.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Response to validation of a payment method."
      },
      "PostApplicationSessionRequest": {
        "type": "object",
        "properties": {
          "platformIdentifier": {
            "maxLength": 150,
            "type": "string",
            "description": "The identifier for the applicant from the platform's system. Use a stable key that belongs to\r\none applicant: a session whose identifier matches an unsubmitted application for the same\r\nplatform continues that application, so applicants sharing an identifier would share it.",
            "nullable": true,
            "example": "abcde12345"
          },
          "contactFirstName": {
            "maxLength": 100,
            "type": "string",
            "description": "The first name of the person filling out the application.",
            "nullable": true,
            "example": "John"
          },
          "contactLastName": {
            "maxLength": 100,
            "type": "string",
            "description": "The last name of the person filling out the application.",
            "nullable": true,
            "example": "Smith"
          },
          "contactEmailAddress": {
            "maxLength": 150,
            "type": "string",
            "description": "The email address of the person filling out the application.",
            "format": "email",
            "nullable": true,
            "example": "jsmith@example.com"
          },
          "contactPhoneNumber": {
            "maxLength": 50,
            "type": "string",
            "description": "The phone number of the person filling out the application.",
            "nullable": true,
            "example": "512-555-1234"
          },
          "organizationName": {
            "maxLength": 150,
            "type": "string",
            "description": "The legal name of the organization.",
            "nullable": true,
            "example": "Acme Corporation"
          },
          "doingBusinessAs": {
            "maxLength": 150,
            "type": "string",
            "description": "The name of the DBA.",
            "nullable": true,
            "example": "Acme"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "websiteUri": {
            "maxLength": 250,
            "type": "string",
            "description": "The URL of the website.",
            "format": "uri",
            "nullable": true,
            "example": "www.example.com"
          },
          "taxId": {
            "maxLength": 25,
            "type": "string",
            "description": "The tax id of the organization.",
            "nullable": true,
            "example": "12-3456789"
          },
          "legalEntityType": {
            "$ref": "#/components/schemas/LegalEntityType"
          },
          "merchantCategoryCode": {
            "maxLength": 10,
            "type": "string",
            "description": "The merchant category code (MCC) describing the organization's industry.",
            "nullable": true,
            "example": "5812"
          },
          "supportPhoneNumber": {
            "maxLength": 50,
            "type": "string",
            "description": "The phone number of the organization's support team.",
            "nullable": true,
            "example": "512-555-1234"
          },
          "supportEmailAddress": {
            "maxLength": 150,
            "type": "string",
            "description": "The email address of the organization's support team.",
            "format": "email",
            "nullable": true,
            "example": "support@example.com"
          },
          "offeringDescription": {
            "maxLength": 500,
            "type": "string",
            "description": "A description of the organization's products and services.",
            "nullable": true,
            "example": "Restaurant and catering services"
          },
          "embedConfig": {
            "$ref": "#/components/schemas/ApplicationSessionEmbedConfig"
          },
          "autoOnboarding": {
            "$ref": "#/components/schemas/ApplicationSessionAutoOnboarding"
          }
        },
        "additionalProperties": false,
        "description": "A request object to create an application session for pre-populating the sign up form."
      },
      "PostApplicationSessionResponse": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string",
            "description": "The session Id to be used when sending the applicant to the sign up application.",
            "nullable": true,
            "example": "abcdefghi123456789"
          },
          "autoOnboarding": {
            "$ref": "#/components/schemas/ApplicationSessionAutoOnboarding"
          }
        },
        "additionalProperties": false,
        "description": "The response from creating an application session."
      },
      "PostAuthorizeRequest": {
        "required": [
          "amount",
          "payer"
        ],
        "type": "object",
        "properties": {
          "payer": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string",
            "description": "The name of the payer. This is not necessarily the same name as the card or bank account holder name.",
            "example": "John Smith"
          },
          "userId": {
            "maxLength": 150,
            "type": "string",
            "description": "The user Id from the application that represents the user that owns this payment method.",
            "nullable": true,
            "example": "jsmith12345"
          },
          "emailAddress": {
            "maxLength": 150,
            "type": "string",
            "description": "The email address of the user.",
            "format": "email",
            "nullable": true,
            "example": "jsmith@example.com"
          },
          "customerId": {
            "maxLength": 25,
            "type": "string",
            "description": "The customer identifier for the entity making the payment.",
            "nullable": true,
            "example": "1234567890",
            "deprecated": true
          },
          "orderId": {
            "maxLength": 25,
            "type": "string",
            "description": "The unique order identifier for this transaction.",
            "nullable": true,
            "example": "abcdefghij"
          },
          "tokenId": {
            "type": "string",
            "description": "The token identifier for a previously saved payment method. If this is supplied, the other payment\r\noptions can be left as null.",
            "nullable": true,
            "example": "12345"
          },
          "card": {
            "$ref": "#/components/schemas/Card"
          },
          "processorToken": {
            "$ref": "#/components/schemas/ProcessorToken"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "A  <string, string>  dictionary of any application-specific metadata to have stored with the payment record.",
            "nullable": true,
            "example": {
              "userId": "jsmith",
              "accountId": "123"
            }
          },
          "billingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "shippingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "amount": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The total amount being paid. This is inclusive of the payer fee, if any.",
            "format": "double",
            "example": 787.33
          },
          "shippingAmount": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The amount charged for shipping, if any.",
            "format": "double",
            "nullable": true,
            "example": 7.87
          },
          "taxAmount": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The amount charged for tax, if any.",
            "format": "double",
            "nullable": true,
            "example": 78.73
          },
          "lineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionLineItem"
            },
            "description": "Line items needed for Level 2/3 qualification.",
            "nullable": true
          },
          "paidCustomers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionPaidCustomer"
            },
            "description": "The list of customers tied to this transaction.",
            "nullable": true
          },
          "paidInvoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionPaidInvoice"
            },
            "description": "The list of paid invoices on this transaction.",
            "nullable": true
          },
          "splits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SplitRequest"
            },
            "description": "The collection of splits representing additional accounts that should receive a portion of\r\nthe amount. Supplied at authorization time so the charge is created on the correct model\r\n(Separate Charges and Transfers — on_behalf_of, no transfer_data — when splits are present);\r\nthe actual split fan-out happens at capture. The presence of splits here must match capture.",
            "nullable": true
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "comments": {
            "type": "string",
            "description": "Additional comments entered in by the payer.",
            "nullable": true,
            "example": "We are so excited about this purchase!"
          },
          "ipAddress": {
            "type": "string",
            "description": "The IP address of the payer.",
            "format": "string",
            "nullable": true
          },
          "browserInformation": {
            "$ref": "#/components/schemas/BrowserInformation"
          },
          "returnUrl": {
            "type": "string",
            "description": "The return URL to be used if an authorization flow is supported by the integrating application (e.g. 3DS).",
            "format": "uri",
            "nullable": true,
            "example": null
          },
          "sendPayerReceipt": {
            "type": "boolean",
            "description": "If true, the payer will receive e-receipts on this transaction and any related returns, refunds, or voids. This value will be overridden by the \r\nsetting at the account left if it's null.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The model to generate a card authorization."
      },
      "PostCaptureRequest": {
        "required": [
          "payerFee"
        ],
        "type": "object",
        "properties": {
          "amount": {
            "maximum": 2147483647,
            "minimum": 0.01,
            "type": "number",
            "description": "The amount of the previously authorized transaction that is being captured.",
            "format": "double",
            "example": 51.2
          },
          "payerFee": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The amount the payer is being charged to initiate this transaction. This should only be a non-zero amount when\r\nyou are charging the payer a fee (e.g. a convenience fee or surcharge).",
            "format": "double",
            "example": 5.12
          },
          "platformFee": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The amount the platform is charging the account for this transaction. If left null, the fee will be calculated \r\nautomatically based on the fee settings on the account. This is only used as an override to that calculation.\r\nOnly the platform can set this fee.",
            "format": "double",
            "nullable": true,
            "example": 5.12
          },
          "splits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SplitRequest"
            },
            "description": "The collection of splits representing additional accounts that should receive a portion of the amount.",
            "nullable": true
          },
          "shippingAmount": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The amount charged for shipping, if any.",
            "format": "double",
            "nullable": true,
            "example": 7.87
          },
          "taxAmount": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The amount charged for tax, if any.",
            "format": "double",
            "nullable": true,
            "example": 78.73
          },
          "lineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionLineItem"
            },
            "description": "Line items needed for Level 2/3 qualification.",
            "nullable": true
          },
          "paidCustomers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionPaidCustomer"
            },
            "description": "The list of customers tied to this transaction.",
            "nullable": true
          },
          "paidInvoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionPaidInvoice"
            },
            "description": "The list of paid invoices on this transaction.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The model to capture a previously authorized transaction."
      },
      "PostCheckFileResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The file Id that was successfully uploaded.",
            "nullable": true,
            "example": "abcdefghi123456789"
          }
        },
        "additionalProperties": false,
        "description": "The response from creating a file that is associated with a check payment."
      },
      "PostCheckValidateRequest": {
        "type": "object",
        "properties": {
          "fileIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A collection of file identifiers to be used for check processing.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Validates the check using at least a front image and back image identifiers obtained from the file submission process."
      },
      "PostCheckValidateResponse": {
        "type": "object",
        "properties": {
          "checkNumber": {
            "type": "string",
            "description": "The check number.",
            "nullable": true,
            "example": "12345"
          },
          "routingNumber": {
            "type": "string",
            "description": "The routing number, if available.",
            "nullable": true,
            "example": "021000021"
          },
          "accountNumber": {
            "type": "string",
            "description": "The account number, if available.",
            "nullable": true,
            "example": "1234567890"
          },
          "amount": {
            "type": "number",
            "description": "The amount.",
            "format": "double",
            "nullable": true,
            "example": 123.45
          }
        },
        "additionalProperties": false,
        "description": "Contains the details of a check validation if successful."
      },
      "PostLocationRequest": {
        "required": [
          "address",
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string",
            "description": "The name of the location.",
            "example": "Main Street Store"
          },
          "address": {
            "$ref": "#/components/schemas/LocationAddress"
          }
        },
        "additionalProperties": false,
        "description": "The model to create a location for the account the call acts on."
      },
      "PostPayRequest": {
        "required": [
          "amount",
          "payer",
          "payerFee"
        ],
        "type": "object",
        "properties": {
          "payer": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string",
            "description": "The name of the payer. This is not necessarily the same name as the card or bank account holder name.",
            "example": "John Smith"
          },
          "userId": {
            "type": "string",
            "description": "The user Id from the application that represents the user that owns this payment method.",
            "nullable": true,
            "example": "jsmith12345"
          },
          "emailAddress": {
            "maxLength": 150,
            "type": "string",
            "description": "The email address of the user.",
            "format": "email",
            "nullable": true,
            "example": "jsmith@example.com"
          },
          "customerId": {
            "maxLength": 25,
            "type": "string",
            "description": "The customer identifier for the entity making the payment.",
            "nullable": true,
            "example": "1234567890",
            "deprecated": true
          },
          "orderId": {
            "maxLength": 25,
            "type": "string",
            "description": "The unique order identifier for this transaction.",
            "nullable": true,
            "example": "abcdefghi"
          },
          "tokenId": {
            "type": "string",
            "description": "The token identifier for a previously saved payment method. If this is supplied, the other payment\r\noptions can be left as null.",
            "nullable": true,
            "example": "12345"
          },
          "ach": {
            "$ref": "#/components/schemas/Ach"
          },
          "acss": {
            "$ref": "#/components/schemas/Acss"
          },
          "auDirectDebit": {
            "$ref": "#/components/schemas/AuDirectDebit"
          },
          "bacs": {
            "$ref": "#/components/schemas/Bacs"
          },
          "card": {
            "$ref": "#/components/schemas/Card"
          },
          "check": {
            "$ref": "#/components/schemas/Check"
          },
          "nzDirectDebit": {
            "$ref": "#/components/schemas/NzDirectDebit"
          },
          "sepa": {
            "$ref": "#/components/schemas/Sepa"
          },
          "processorToken": {
            "$ref": "#/components/schemas/ProcessorToken"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "A  <string, string>  dictionary of any application-specific metadata to have stored with the payment record.",
            "nullable": true,
            "example": {
              "userId": "jsmith",
              "accountId": "123"
            }
          },
          "billingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "shippingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "amount": {
            "maximum": 2147483647,
            "minimum": 0.01,
            "type": "number",
            "description": "The total amount being paid. This is inclusive of the payer fee, if any.",
            "format": "double",
            "example": 787.33
          },
          "payerFee": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The amount the payer is being charged to initiate this transaction. This should only be a non-zero amount when\r\nyou are charging the payer a fee (e.g. a convenience fee or surcharge).",
            "format": "double",
            "example": 5.12
          },
          "platformFee": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The amount the platform is charging the account for this transaction. If left null, the fee will be calculated \r\nautomatically based on the fee settings on the account. This is only used as an override to that calculation.\r\nOnly the platform can set this fee.",
            "format": "double",
            "nullable": true,
            "example": 5.12
          },
          "splits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SplitRequest"
            },
            "description": "The collection of splits representing all the accounts and amounts that each should receive as a portion of the total payment amount.",
            "nullable": true
          },
          "shippingAmount": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The amount charged for shipping, if any.",
            "format": "double",
            "nullable": true,
            "example": 7.87
          },
          "taxAmount": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The amount charged for tax, if any.",
            "format": "double",
            "nullable": true,
            "example": 78.73
          },
          "lineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionLineItem"
            },
            "description": "Line items needed for Level 2/3 qualification.",
            "nullable": true
          },
          "paidCustomers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionPaidCustomer"
            },
            "description": "The list of customers tied to this transaction.",
            "nullable": true
          },
          "paidInvoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionPaidInvoice"
            },
            "description": "The list of paid invoices on this transaction.",
            "nullable": true
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "comments": {
            "type": "string",
            "description": "Additional comments entered in by the payer.",
            "nullable": true,
            "example": "We are so excited about this purchase!"
          },
          "ipAddress": {
            "type": "string",
            "description": "The IP address of the payer.",
            "format": "string",
            "nullable": true,
            "example": "127.0.0.1"
          },
          "browserInformation": {
            "$ref": "#/components/schemas/BrowserInformation"
          },
          "returnUrl": {
            "type": "string",
            "description": "The return URL to be used if an authorization flow is supported by the integrating application (e.g. 3DS).",
            "format": "uri",
            "nullable": true,
            "example": null
          },
          "sendPayerReceipt": {
            "type": "boolean",
            "description": "If true, the payer will receive e-receipts on this transaction and any related returns, refunds, or voids. This value will be overridden by the\r\nsetting at the account left if it's null.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The model to generate a payment."
      },
      "PostPayoutRequest": {
        "required": [
          "amount"
        ],
        "type": "object",
        "properties": {
          "payee": {
            "maxLength": 150,
            "type": "string",
            "description": "The name of the payee receiving the payout. This is not necessarily the same name as the bank account holder name.",
            "nullable": true,
            "example": "John Smith"
          },
          "emailAddress": {
            "maxLength": 150,
            "type": "string",
            "description": "The email address of the recipient.",
            "format": "email",
            "nullable": true,
            "example": "jsmith@example.com"
          },
          "tokenId": {
            "type": "string",
            "description": "The token identifier for a previously saved bank account. If this is supplied, the ACH details can be left as null.",
            "nullable": true,
            "example": "12345"
          },
          "ach": {
            "$ref": "#/components/schemas/Ach"
          },
          "payeeAccountKey": {
            "maxLength": 50,
            "type": "string",
            "description": "The account key of an in-system payee (AB#2418). When supplied, the payout is sent to that\r\naccount's deposit bank without requiring dhango.Models.Api.PostPayoutRequest.TokenId or dhango.Models.Api.PostPayoutRequest.Ach details,\r\nthe payee name is taken definitively from the resolved account (supplying dhango.Models.Api.PostPayoutRequest.Payee\r\nalongside this is not allowed — they are mutually exclusive), and both the payer and payee\r\naccount ids are recorded on the transaction. The payee must be active and on the same platform\r\nas the payer.",
            "nullable": true,
            "example": "2a9f1c7e4b8d4f0aa1c3e5d7b9f10246"
          },
          "amount": {
            "maximum": 2147483647,
            "minimum": 0.01,
            "type": "number",
            "description": "The amount to be paid out. This is always a positive amount; the resulting transaction is recorded as a negative amount.",
            "format": "double",
            "example": 787.33
          },
          "platformFee": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The amount the platform is charging the account for this payout. If left null, the fee will be calculated\r\nautomatically based on the fee settings on the account. This is only used as an override to that calculation.\r\nOnly the platform can set this fee.",
            "format": "double",
            "nullable": true,
            "example": 5.12
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "comments": {
            "type": "string",
            "description": "Additional comments tied to the payout.",
            "nullable": true,
            "example": "Vendor payout for March."
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "A  <string, string>  dictionary of any application-specific metadata to have stored with the payout record.",
            "nullable": true,
            "example": {
              "userId": "jsmith",
              "accountId": "123"
            }
          },
          "paidInvoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionPaidInvoice"
            },
            "description": "The list of paid invoices on this payout.",
            "nullable": true
          },
          "sendReceipt": {
            "type": "boolean",
            "description": "If true, the recipient will receive an e-receipt for this payout. This value will be overridden by the\r\nsetting on the account if it's null.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The model to initiate a payout to a recipient's bank account."
      },
      "PostRefundRequest": {
        "type": "object",
        "properties": {
          "amount": {
            "maximum": 2147483647,
            "minimum": 0.01,
            "type": "number",
            "description": "The amount to be refunded.",
            "format": "double",
            "example": 51.2
          }
        },
        "additionalProperties": false,
        "description": "Requests the refund of a specific amount on a transaction."
      },
      "PostTerminalRequest": {
        "required": [
          "locationId",
          "processor",
          "processorTerminalId"
        ],
        "type": "object",
        "properties": {
          "processor": {
            "$ref": "#/components/schemas/Processor"
          },
          "processorTerminalId": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string",
            "description": "The identifier the processor uses for this terminal: the reader id for Stripe, the POIID for Adyen.\r\nMatched case-insensitively against terminals already registered under the credential.",
            "example": "tmr_FAKE0001"
          },
          "locationId": {
            "type": "integer",
            "description": "The identifier of an active location of the account at which the terminal sits.",
            "format": "int64",
            "example": 12
          },
          "name": {
            "maxLength": 100,
            "type": "string",
            "description": "The friendly name for the terminal. Defaults to the processor terminal id for a new terminal; an\r\nomitted name keeps the existing name when a previously unregistered terminal is re-registered.",
            "nullable": true,
            "example": "Front Desk"
          }
        },
        "additionalProperties": false,
        "description": "The model to register a terminal for the account the call acts on. Registration is local: no call is\r\nmade to the processor; the row maps a dhango terminal to the identifier the processor uses for it."
      },
      "PostTerminalSessionRequest": {
        "required": [
          "amount",
          "payer",
          "payerFee"
        ],
        "type": "object",
        "properties": {
          "terminalId": {
            "type": "integer",
            "description": "The unique identifier for the terminal.",
            "format": "int64",
            "example": 12345
          },
          "payer": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string",
            "description": "The name of the payer. This is not necessarily the same name as the card or bank account holder name.",
            "example": "John Smith"
          },
          "userId": {
            "type": "string",
            "description": "The user Id from the application that represents the user that owns this payment method.",
            "nullable": true,
            "example": "jsmith12345"
          },
          "emailAddress": {
            "maxLength": 150,
            "type": "string",
            "description": "The email address of the user.",
            "format": "email",
            "nullable": true,
            "example": "jsmith@example.com"
          },
          "customerId": {
            "maxLength": 25,
            "type": "string",
            "description": "The customer identifier for the entity making the payment.",
            "nullable": true,
            "example": "1234567890",
            "deprecated": true
          },
          "orderId": {
            "maxLength": 25,
            "type": "string",
            "description": "The unique order identifier for this transaction.",
            "nullable": true,
            "example": "abcdefghi"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "A  <string, string>  dictionary of any application-specific metadata to have stored with the payment record.",
            "nullable": true,
            "example": {
              "userId": "jsmith",
              "accountId": "123"
            }
          },
          "billingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "shippingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "amount": {
            "maximum": 2147483647,
            "minimum": 0.01,
            "type": "number",
            "description": "The total amount being paid. This is inclusive of the payer fee, if any.",
            "format": "double",
            "example": 787.33
          },
          "payerFee": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The amount the payer is being charged to initiate this transaction. This should only be a non-zero amount when\r\nyou are charging the payer a fee (e.g. a convenience fee or surcharge).",
            "format": "double",
            "example": 5.12
          },
          "platformFee": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The amount the platform is charging the account for this transaction. If left null, the fee will be calculated \r\nautomatically based on the fee settings on the account. This is only used as an override to that calculation.\r\nOnly the platform can set this fee.",
            "format": "double",
            "nullable": true,
            "example": 5.12
          },
          "shippingAmount": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The amount charged for shipping, if any.",
            "format": "double",
            "nullable": true,
            "example": 7.87
          },
          "taxAmount": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The amount charged for tax, if any.",
            "format": "double",
            "nullable": true,
            "example": 78.73
          },
          "lineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionLineItem"
            },
            "description": "Line items needed for Level 2/3 qualification.",
            "nullable": true
          },
          "paidCustomers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionPaidCustomer"
            },
            "description": "The list of customers tied to this transaction.",
            "nullable": true
          },
          "paidInvoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionPaidInvoice"
            },
            "description": "The list of paid invoices on this transaction.",
            "nullable": true
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "comments": {
            "type": "string",
            "description": "Additional comments entered in by the payer.",
            "nullable": true,
            "example": "We are so excited about this purchase!"
          }
        },
        "additionalProperties": false,
        "description": "The model to initiate a session on a point of sale terminal."
      },
      "PostTokenRequest": {
        "type": "object",
        "properties": {
          "userId": {
            "maxLength": 150,
            "type": "string",
            "description": "The user Id from the application that represents the user that owns this payment method. This is required\r\nfor network tokenization.",
            "nullable": true,
            "example": "jsmith12345"
          },
          "emailAddress": {
            "maxLength": 150,
            "type": "string",
            "description": "The email address of the owner of this payment method. This is required to enable network tokenization.",
            "format": "email",
            "nullable": true,
            "example": "jsmith@example.com"
          },
          "ach": {
            "$ref": "#/components/schemas/Ach"
          },
          "acss": {
            "$ref": "#/components/schemas/Acss"
          },
          "auDirectDebit": {
            "$ref": "#/components/schemas/AuDirectDebit"
          },
          "bacs": {
            "$ref": "#/components/schemas/Bacs"
          },
          "card": {
            "$ref": "#/components/schemas/Card"
          },
          "nzDirectDebit": {
            "$ref": "#/components/schemas/NzDirectDebit"
          },
          "sepa": {
            "$ref": "#/components/schemas/Sepa"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "A  <string, string>  dictionary of any application-specific metadata to have stored with the token record.",
            "nullable": true,
            "example": {
              "userId": "jsmith",
              "accountId": "123"
            }
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "validateAccount": {
            "type": "boolean",
            "description": "True if the account validation should be run immediately before tokenization. Otherwise, this is false. This is currently only supported on ACH payments methods.",
            "example": false,
            "deprecated": true
          }
        },
        "additionalProperties": false,
        "description": "Used to save a payment method as a token. Only one of the payment methods should be supplied in the request."
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Processor": {
        "enum": [
          "Fake",
          "AdyenPlatform",
          "AdyenMerchant",
          "StripePlatform",
          "StripeMerchant",
          "TokenEx",
          "LegacyGatewaySupport",
          "NachaDirect",
          "NachaTpsFnboPlatform",
          "NachaTpsFnboMerchant",
          "NachaTpsFakePlatform",
          "NachaTpsFakeMerchant",
          "FtniPlatform",
          "FtniMerchant",
          "AmericanExpressPlatform",
          "AmericanExpressMerchant",
          "DeluxeMerchant",
          "Flex",
          "Payout",
          "StripeRecipient",
          "CyberSource",
          "AuthorizeDotNet",
          "TrustCommerce",
          "PayPalPayflowPro"
        ],
        "type": "string"
      },
      "ProcessorCredentialStatus": {
        "type": "object",
        "properties": {
          "processor": {
            "$ref": "#/components/schemas/Processor"
          },
          "identifier": {
            "type": "string",
            "description": "The unique identifier for the credential.",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/AccountProcessorCredentialStatus"
          },
          "statusReasons": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The reasons for the status, if any. This is typically null or empty if the status is Active.",
            "nullable": true,
            "example": [
              "Identification required",
              "Invalid mailing address"
            ]
          }
        },
        "additionalProperties": false,
        "description": "The processor for an account as well as the status of processing capabilities."
      },
      "ProcessorToken": {
        "required": [
          "maskedAccountNumber",
          "paymentMethodType",
          "tokenId"
        ],
        "type": "object",
        "properties": {
          "customerId": {
            "type": "string",
            "description": "The processor's customer identifier.",
            "nullable": true,
            "example": "1234567890"
          },
          "tokenId": {
            "minLength": 1,
            "type": "string",
            "description": "The processor's token identifier.",
            "example": "abcdefg"
          },
          "paymentMethodType": {
            "$ref": "#/components/schemas/PaymentMethodType"
          },
          "cardBrand": {
            "$ref": "#/components/schemas/CardBrand"
          },
          "maskedAccountNumber": {
            "minLength": 1,
            "type": "string",
            "description": "The masked account number.",
            "example": "XXXXXXXXXXXX4242"
          }
        },
        "additionalProperties": false,
        "description": "The processor token for backwards compatibility. This is used if the token is stored with the processor."
      },
      "ProcessorTransaction": {
        "type": "object",
        "properties": {
          "processor": {
            "$ref": "#/components/schemas/Processor"
          },
          "transactionId": {
            "type": "string",
            "description": "The processor's transaction identifier.",
            "nullable": true,
            "example": "abcdef123456"
          }
        },
        "additionalProperties": false,
        "description": "Transaction details from the processor."
      },
      "Sepa": {
        "required": [
          "accountHolder",
          "iban"
        ],
        "type": "object",
        "properties": {
          "accountHolder": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string",
            "description": "The name of the account holder.",
            "example": "Acme Corporation"
          },
          "iban": {
            "maxLength": 34,
            "minLength": 15,
            "type": "string",
            "description": "The IBAN number for the account.",
            "example": "DE87123456781234567890"
          }
        },
        "additionalProperties": false,
        "description": "The Single Euro Payments Area direct debit."
      },
      "SplitRequest": {
        "required": [
          "accountKey",
          "amount"
        ],
        "type": "object",
        "properties": {
          "accountKey": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string",
            "description": "The key for the account that should receive the split.",
            "example": "abcdef123456"
          },
          "amount": {
            "maximum": 2147483647,
            "minimum": 0.01,
            "type": "number",
            "description": "The amount to be split to the account.",
            "format": "double",
            "example": 123.45
          }
        },
        "additionalProperties": false,
        "description": "Represents a split on a transaction."
      },
      "SplitResponse": {
        "type": "object",
        "properties": {
          "transactionId": {
            "type": "integer",
            "description": "The unique identifier for the transaction.",
            "format": "int64"
          },
          "accountKey": {
            "type": "string",
            "description": "The account key for the account that owns the transaction.",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "description": "The amount of the transaction.",
            "format": "double"
          },
          "transactionEventType": {
            "$ref": "#/components/schemas/TransactionEventType"
          },
          "rejectDate": {
            "type": "string",
            "description": "The date/time when the processor rejected the transaction.",
            "format": "date-time",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "description": "The error message associated with the rejection of the transaction, if any.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Information on a split."
      },
      "TokenStatus": {
        "enum": [
          "Active",
          "Deleted",
          "Invalid"
        ],
        "type": "string"
      },
      "TransactionEvent": {
        "type": "object",
        "properties": {
          "eventName": {
            "type": "string",
            "description": "The user friendly name of the event.",
            "nullable": true
          },
          "eventDate": {
            "type": "string",
            "description": "The date of the event. The timestamp is in UTC.",
            "format": "date-time"
          },
          "transactionEventType": {
            "$ref": "#/components/schemas/TransactionEventType"
          }
        },
        "additionalProperties": false,
        "description": "Represents an event that occurred that is relevant to a transaction."
      },
      "TransactionEventType": {
        "enum": [
          "Payment",
          "Authorization",
          "Capture",
          "Refund",
          "Return",
          "Chargeback",
          "ChargebackReversal",
          "Dispute",
          "Settle",
          "Process",
          "Reject",
          "Void",
          "Hold",
          "HoldReleased",
          "InitiatePayment",
          "InitiateAuthorization",
          "Fee",
          "TopUp",
          "PaymentPreprocessing",
          "AuthorizationPreprocessing",
          "CapturePreprocessing",
          "RefundPreprocessing",
          "VoidPreprocessing",
          "Payout",
          "PayoutPreprocessing",
          "Credit",
          "Debit",
          "CreditPreprocessing",
          "DebitPreprocessing",
          "Transfer",
          "Batch"
        ],
        "type": "string"
      },
      "TransactionFileCategory": {
        "enum": [
          "Other",
          "CheckFront",
          "CheckBack",
          "CheckFrontIcl",
          "CheckBackIcl"
        ],
        "type": "string"
      },
      "TransactionLineItem": {
        "type": "object",
        "properties": {
          "productCode": {
            "maxLength": 15,
            "type": "string",
            "description": "The code for the product.",
            "nullable": true,
            "example": "widget123"
          },
          "productDescription": {
            "maxLength": 50,
            "type": "string",
            "description": "The description for the product.",
            "nullable": true,
            "example": "Shiny new widget. Great for all ages."
          },
          "unitPrice": {
            "maximum": 2147483647,
            "minimum": 0.01,
            "type": "number",
            "description": "The price per unit.",
            "format": "double",
            "nullable": true,
            "example": 51.2
          },
          "quantity": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "The number of units sold.",
            "format": "int32",
            "nullable": true,
            "example": 3
          },
          "taxAmount": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The total tax amount for this one line item.",
            "format": "double",
            "nullable": true,
            "example": 0.51
          },
          "discountAmount": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "number",
            "description": "The total discount amount for this one line item.",
            "format": "double",
            "nullable": true,
            "example": 7.87
          },
          "unitOfMeasure": {
            "maxLength": 15,
            "type": "string",
            "description": "The unit of measure.",
            "nullable": true,
            "example": "ea"
          },
          "commodityCode": {
            "maxLength": 15,
            "type": "string",
            "description": "The commodity code for this product as defined by https://www.unspsc.org/.",
            "nullable": true,
            "example": "44121709"
          }
        },
        "additionalProperties": false,
        "description": "Line item data that is typically needed for Level 2/3 qualification."
      },
      "TransactionPaidCustomer": {
        "required": [
          "amount",
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string",
            "description": "The unique identifier for the customer.",
            "example": "jsmith123"
          },
          "name": {
            "maxLength": 150,
            "minLength": 1,
            "type": "string",
            "description": "The name of the customer.",
            "example": "John Smith"
          },
          "amount": {
            "minimum": 0,
            "type": "number",
            "description": "The amount paid for this customer.",
            "format": "double",
            "example": 123.45
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "A  <string, string>  dictionary of any application-specific metadata to have stored with the customer.",
            "nullable": true,
            "example": {
              "userId": "jsmith",
              "accountId": "123"
            }
          }
        },
        "additionalProperties": false,
        "description": "Represents a customer record associated with a transaction."
      },
      "TransactionPaidInvoice": {
        "required": [
          "amount",
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string",
            "description": "The unique identifier for the invoice.",
            "example": "abcde12345"
          },
          "customerId": {
            "maxLength": 200,
            "type": "string",
            "description": "The name of the customer.",
            "nullable": true,
            "example": "jsmith123"
          },
          "amount": {
            "minimum": 0,
            "type": "number",
            "description": "The amount paid for this invoice.",
            "format": "double",
            "example": 123.45
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "A  <string, string>  dictionary of any application-specific metadata to have stored with the invoice.",
            "nullable": true,
            "example": {
              "userId": "jsmith",
              "accountId": "123"
            }
          }
        },
        "additionalProperties": false,
        "description": "Represents an invoice record associated with a transaction."
      },
      "ValidationProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "basic": {
        "type": "http",
        "description": "Basic Authorization header using the Bearer scheme.",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "basic": [ ]
    }
  ]
}