{
  "components": {
    "schemas": {
      "accounting__AccountingErrorDetails": {
        "properties": {
          "current_status": {
            "description": "Current status of the integration when the error occurred",
            "example": "DISABLED",
            "type": "string"
          },
          "duplicate_accounting_record_ids": {
            "description": "Accounting record IDs that triggered the error",
            "example": [
              "accr_abc123",
              "accr_def456"
            ],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "existing_integration_id": {
            "description": "ID of the existing active integration",
            "example": "int_abc123",
            "type": "string"
          },
          "existing_vendor": {
            "description": "Vendor of the existing integration",
            "example": "ERP_A",
            "type": "string"
          },
          "integration_id": {
            "description": "Integration ID associated with the error",
            "example": "int_abc123",
            "type": "string"
          },
          "not_found_export_entry_source_ids": {
            "description": "Accounting record IDs that could not be found",
            "example": [
              "accr_ghi789"
            ],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "not_ready_for_export_accounting_record_ids": {
            "description": "Accounting record IDs that are not ready for export",
            "example": [
              "accr_ghi789"
            ],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "requested_vendor": {
            "description": "Vendor that was requested to be created",
            "example": "ERP_B",
            "type": "string"
          }
        },
        "type": "object"
      },
      "accounting__AccountingErrorResponse": {
        "properties": {
          "details": {
            "additionalProperties": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__AccountingErrorDetails"
              }
            ],
            "description": "Additional error context",
            "nullable": true,
            "type": "object"
          },
          "error_code": {
            "description": "Machine-readable error code",
            "enum": [
              "ACTIVE_INTEGRATION_EXISTS",
              "FORBIDDEN",
              "INTEGRATION_NOT_ACTIVE",
              "INTERNAL_ERROR",
              "INVALID_REQUEST",
              "NOT_FOUND",
              "UNAUTHORIZED",
              "DUPLICATE_ACCOUNTING_RECORD_IDS",
              "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT",
              "VENDOR_ACCOUNT_ID_MISMATCH",
              "AMORTIZATION_PROVISIONING_FAILED"
            ],
            "example": "INVALID_REQUEST",
            "type": "string"
          },
          "message": {
            "description": "Human-readable error message",
            "example": "The request is malformed or contains invalid data.",
            "type": "string"
          }
        },
        "required": [
          "error_code",
          "message"
        ],
        "type": "object"
      },
      "accounting__AccountingFieldValue": {
        "properties": {
          "brex_field_id": {
            "description": "Brex internal field identifier",
            "example": "ef_123",
            "type": "string"
          },
          "brex_field_value_id": {
            "description": "Brex internal field value identifier. Set for IDENTIFIER (option/list) fields; null for typed (STRING/BOOL/DATE) fields.",
            "example": "efo_123",
            "nullable": true,
            "type": "string"
          },
          "field_name": {
            "description": "Brex field display name. Null only when the field has no display name.",
            "example": "Accounting Entity",
            "nullable": true,
            "type": "string"
          },
          "field_value_name": {
            "description": "Brex field value display name. Set for IDENTIFIER (option/list) fields; null for typed (STRING/BOOL/DATE) fields.",
            "example": "Test USA Inc.",
            "nullable": true,
            "type": "string"
          },
          "remote_field_id": {
            "description": "Remote system field identifier",
            "example": "1",
            "nullable": true,
            "type": "string"
          },
          "remote_field_value_id": {
            "description": "Remote system field value identifier",
            "example": "123",
            "nullable": true,
            "type": "string"
          },
          "set_by": {
            "description": "Who set the accounting field value: MANUAL (a user or API client), AUTOMATED (a rule, integration setting, or system default), AGENT (the Brex AI agent), or OCR (receipt or invoice extraction). Null when the source is unknown. Only returned when Automation API access is enabled.",
            "enum": [
              "MANUAL",
              "AUTOMATED",
              "AGENT",
              "OCR"
            ],
            "nullable": true,
            "type": "string"
          },
          "set_by_details": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/accounting__AccountingFieldValueCustomRuleSetByDetails"
              },
              {
                "$ref": "#/components/schemas/accounting__AccountingFieldValueMappingRuleSetByDetails"
              },
              {
                "$ref": "#/components/schemas/accounting__AccountingFieldValueIntegrationSettingsSetByDetails"
              },
              {
                "additionalProperties": false,
                "description": "Null when the value was not set by automation.",
                "maxProperties": 0,
                "nullable": true,
                "type": "object"
              }
            ],
            "description": "Details about the automation that set this accounting field value. Null unless set_by is AUTOMATED. Only returned when Automation API access is enabled."
          },
          "type": {
            "description": "The field's value type. IDENTIFIER for option/list fields (read brex_field_value_id / field_value_name); STRING, BOOL, or DATE for typed fields (read `value`, interpreting it per this type).",
            "enum": [
              "IDENTIFIER",
              "STRING",
              "BOOL",
              "DATE"
            ],
            "nullable": true,
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "nullable": true,
                "type": "string"
              },
              {
                "nullable": true,
                "type": "boolean"
              }
            ],
            "description": "The typed value for a STRING/BOOL/DATE field, interpreted according to `type`: a string for STRING, a boolean for BOOL (false is returned as false, never omitted), or an ISO 8601 date (YYYY-MM-DD) for DATE. Null for IDENTIFIER fields (read brex_field_value_id / field_value_name instead) and when unset."
          }
        },
        "required": [
          "brex_field_id",
          "remote_field_id",
          "brex_field_value_id",
          "remote_field_value_id",
          "field_name",
          "field_value_name"
        ],
        "type": "object"
      },
      "accounting__AccountingFieldValueCustomRuleSetByDetails": {
        "properties": {
          "rule_id": {
            "description": "Automation API custom rule ID.",
            "example": "rule_abc123",
            "type": "string"
          },
          "type": {
            "description": "The type of automation that set this accounting field value.",
            "enum": [
              "CUSTOM_RULE"
            ],
            "example": "CUSTOM_RULE",
            "type": "string"
          }
        },
        "required": [
          "type",
          "rule_id"
        ],
        "type": "object"
      },
      "accounting__AccountingFieldValueIntegrationSettingsSetByDetails": {
        "properties": {
          "type": {
            "description": "The type of automation that set this accounting field value.",
            "enum": [
              "INTEGRATION_SETTINGS"
            ],
            "example": "INTEGRATION_SETTINGS",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "accounting__AccountingFieldValueMappingRuleSetByDetails": {
        "properties": {
          "mapping_id": {
            "description": "Automation API value mapping ID.",
            "example": "mapping_abc123",
            "nullable": true,
            "type": "string"
          },
          "mapping_rule_id": {
            "description": "Automation API mapping rule ID.",
            "example": "mapping_class_abc123",
            "type": "string"
          },
          "type": {
            "description": "The type of automation that set this accounting field value.",
            "enum": [
              "MAPPING_RULE"
            ],
            "example": "MAPPING_RULE",
            "type": "string"
          }
        },
        "required": [
          "type",
          "mapping_rule_id",
          "mapping_id"
        ],
        "type": "object"
      },
      "accounting__AccountingReceipt": {
        "properties": {
          "download_uris": {
            "description": "Signed URLs to download receipt files (expire in 15 minutes)",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "id": {
            "description": "Unique identifier for the receipt",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "accounting__AccountingRecord": {
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__Amount"
              }
            ],
            "description": "Amount of the accounting record"
          },
          "billing_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__Amount"
              }
            ],
            "description": "Billing/settlement amount in the account's home currency. For multi-currency transactions (e.g., EUR bill paid from USD account), this represents the actual amount debited. Use billing_amount / original_amount to derive the effective FX rate.",
            "nullable": true,
            "type": "object"
          },
          "due_at": {
            "description": "Source due at in UTC timezone. For bills only",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "erp_posting_date": {
            "description": "ERP impact date in UTC timezone",
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier for the accounting record",
            "example": "accr_abc123",
            "type": "string"
          },
          "invoice_number": {
            "description": "Invoice number. For bills only",
            "nullable": true,
            "type": "string"
          },
          "line_items": {
            "description": "Line items for double-entry bookkeeping",
            "items": {
              "$ref": "#/components/schemas/accounting__AccountingRecordLineItem"
            },
            "type": "array"
          },
          "memo": {
            "description": "Memo/description",
            "nullable": true,
            "type": "string"
          },
          "original_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__Amount"
              }
            ],
            "description": "Original amount if different from current",
            "nullable": true,
            "type": "object"
          },
          "posted_at": {
            "description": "Source posted date in UTC timezone",
            "format": "date-time",
            "type": "string"
          },
          "receipts": {
            "description": "Associated receipts",
            "items": {
              "$ref": "#/components/schemas/accounting__AccountingReceipt"
            },
            "nullable": true,
            "type": "array"
          },
          "review_status": {
            "description": "Review status",
            "enum": [
              "READY_FOR_EXPORT",
              "PREPARE",
              "REVIEW",
              "EXPORTED"
            ],
            "type": "string"
          },
          "source_id": {
            "description": "Source transaction ID",
            "nullable": true,
            "type": "string"
          },
          "source_type": {
            "description": "Source type",
            "enum": [
              "CARD",
              "REIMBURSEMENT",
              "BILL"
            ],
            "type": "string"
          },
          "status": {
            "description": "The source expense's approval/lifecycle status. For bills this reflects the bill's approval state (e.g. SUBMITTED = pending approval, APPROVED = approved), which is not derivable from review_status (always READY_FOR_EXPORT when polling).",
            "enum": [
              "APPROVED",
              "CANCELED",
              "DRAFT",
              "OUT_OF_POLICY",
              "SETTLED",
              "SPLIT",
              "SUBMITTED",
              "VOID"
            ],
            "nullable": true,
            "type": "string"
          },
          "type": {
            "description": "Types of accounting records representing different financial transactions:\n\n**Card-related transactions:**\n\n- `CARD_EXPENSE_POST`: Records when a card expense is posted and settled\n\n- `CARD_EXPENSE_REFUND`: Records when a merchant issues a refund for a card transaction\n\n- `CARD_EXPENSE_REPAYMENT`: Records when an employee repays money to the company for a card expense\n\n- `CARD_PAYMENT`: Records payments from customer to Brex for card balances\n\n- `CARD_PAYMENT_REFUND`: Records refunds from Brex to customer for overpayments\n\n- `REWARD_REDEMPTION`: Records when a reward is redeemed\n\n**Bill-related transactions:**\n\n- `BILL_EXPENSE`: Records when a bill expense is created\n\n- `BILL_EXPENSE_PAYMENT`: Records when a bill is paid through ACH/wire transfer\n\n- `BILL_EXPENSE_CARD_PAYMENT`: Records when a bill is paid using a Brex card\n\n**Reimbursement-related transactions:**\n\n- `REIMBURSEMENT_EXPENSE_APPROVAL`: Records approval of reimbursement (accrual basis)\n\n- `REIMBURSEMENT_EXPENSE_POST`: Records when reimbursement is fulfilled (cash basis)\n\n- `REIMBURSEMENT_EXPENSE_REPAYMENT`: Records repayment of a reimbursement expense\n\n- `REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_PAYOUT`: Records payout to employee/third party\n\n- `REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_PAYOUT_REVERSAL`: Records reversal of payout\n\n- `REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_PAYIN`: Records payment from customer to Brex\n\n- `REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_REFUND`: Records refund to customer's bank",
            "enum": [
              "CARD_EXPENSE_POST",
              "CARD_EXPENSE_REPAYMENT",
              "REIMBURSEMENT_EXPENSE_REPAYMENT",
              "REIMBURSEMENT_EXPENSE_APPROVAL",
              "REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_PAYOUT",
              "REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_PAYIN",
              "REIMBURSEMENT_EXPENSE_POST",
              "CARD_PAYMENT",
              "REWARD_REDEMPTION",
              "REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_REFUND",
              "CARD_EXPENSE_REFUND",
              "CARD_PAYMENT_REFUND",
              "REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_PAYOUT_REVERSAL",
              "INVOICE",
              "INVOICE_PAYMENT",
              "BILL_EXPENSE",
              "BILL_EXPENSE_PAYMENT",
              "BILL_EXPENSE_CARD_PAYMENT",
              "BILL_MONEY_MOVEMENT_PAYIN"
            ],
            "type": "string"
          },
          "updated_at": {
            "description": "Last update timestamp in UTC timezone",
            "format": "date-time",
            "type": "string"
          },
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__User"
              }
            ],
            "description": "User associated with the record",
            "nullable": true,
            "type": "object"
          },
          "vendor": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__Vendor"
              }
            ],
            "description": "Vendor information",
            "nullable": true,
            "type": "object"
          },
          "version": {
            "description": "Version number",
            "type": "number"
          }
        },
        "required": [
          "id",
          "amount",
          "type",
          "review_status",
          "source_type",
          "erp_posting_date",
          "updated_at",
          "version",
          "posted_at",
          "line_items"
        ],
        "type": "object"
      },
      "accounting__AccountingRecordLineItem": {
        "properties": {
          "accounting_field_values": {
            "description": "Accounting field mappings",
            "items": {
              "$ref": "#/components/schemas/accounting__AccountingFieldValue"
            },
            "type": "array"
          },
          "amortization": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__AmortizationInfo"
              }
            ],
            "description": "First-class amortization view for this line, present only when the expense is amortized (Amortize Expense toggle on); null otherwise. The underlying amortization extended fields are surfaced here and excluded from accounting_field_values.",
            "nullable": true,
            "type": "object"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__Amount"
              }
            ],
            "description": "Amount for this line item. Amount is always positive for `AccountingRecordLineItem`."
          },
          "billing_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__Amount"
              }
            ],
            "description": "Billing/settlement amount for this line item in the account's home currency.",
            "nullable": true,
            "type": "object"
          },
          "id": {
            "description": "Unique identifier for the line item",
            "example": "arli_abc123",
            "type": "string"
          },
          "memo": {
            "description": "Memo/description",
            "nullable": true,
            "type": "string"
          },
          "original_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__Amount"
              }
            ],
            "description": "Original amount for this line item. Amount is always positive for `AccountingRecordLineItem`.",
            "nullable": true,
            "type": "object"
          },
          "type": {
            "description": "Type of line item",
            "enum": [
              "CREDIT",
              "DEBIT"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "amount",
          "accounting_field_values"
        ],
        "type": "object"
      },
      "accounting__AccountingRecordPaginatedResponse": {
        "properties": {
          "has_next_page": {
            "deprecated": true,
            "description": "Whether there are more results available",
            "type": "boolean"
          },
          "items": {
            "description": "The items in the response",
            "items": {
              "$ref": "#/components/schemas/accounting__AccountingRecord"
            },
            "type": "array"
          },
          "next_cursor": {
            "description": "The next cursor",
            "nullable": true,
            "type": "string"
          },
          "total_count": {
            "deprecated": true,
            "description": "Total count of records matching the query",
            "format": "int32",
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "items",
          "next_cursor",
          "has_next_page"
        ],
        "type": "object"
      },
      "accounting__Address": {
        "properties": {
          "address1": {
            "description": "Address line 1",
            "type": "string"
          },
          "address2": {
            "description": "Address line 2",
            "type": "string"
          },
          "city": {
            "description": "City",
            "type": "string"
          },
          "country": {
            "description": "Country code",
            "type": "string"
          },
          "state": {
            "description": "State or province",
            "type": "string"
          },
          "zip": {
            "description": "ZIP or postal code",
            "type": "string"
          }
        },
        "type": "object"
      },
      "accounting__AmortizationInfo": {
        "properties": {
          "amortization_end_date": {
            "description": "Amortization period end date, as an ISO 8601 date (YYYY-MM-DD). Null when unset.",
            "nullable": true,
            "type": "string"
          },
          "amortization_start_date": {
            "description": "Amortization period start date, as an ISO 8601 date (YYYY-MM-DD). Null when unset.",
            "nullable": true,
            "type": "string"
          },
          "amortization_template": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__AmortizationTemplateRef"
              }
            ],
            "description": "The selected amortization template (identifier + display name), when set. Null for GL-based ERPs with no template concept, or when unset.",
            "nullable": true,
            "type": "object"
          }
        },
        "type": "object"
      },
      "accounting__AmortizationTemplate": {
        "properties": {
          "brex_id": {
            "description": "The internal Brex ID of the amortization template",
            "example": "extended_field_option_abc123",
            "type": "string"
          },
          "is_disabled": {
            "description": "Whether the template is hidden from selection on new expenses. Existing expenses keep a disabled template.",
            "example": false,
            "type": "boolean"
          },
          "name": {
            "description": "Human-readable name of the template",
            "example": "Annual Prepaid Insurance",
            "type": "string"
          },
          "remote_id": {
            "description": "The template's identifier in the ERP, if the ERP supplied one",
            "example": "TMPL-001",
            "nullable": true,
            "type": "string"
          },
          "updated_at": {
            "description": "The last updated timestamp of the template",
            "example": "2026-01-01T00:00:00Z",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "brex_id",
          "name",
          "is_disabled",
          "updated_at"
        ],
        "type": "object"
      },
      "accounting__AmortizationTemplatePaginatedResponse": {
        "properties": {
          "items": {
            "description": "The items in the response",
            "items": {
              "$ref": "#/components/schemas/accounting__AmortizationTemplate"
            },
            "type": "array"
          },
          "next_cursor": {
            "description": "The next cursor",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items",
          "next_cursor"
        ],
        "type": "object"
      },
      "accounting__AmortizationTemplateRef": {
        "properties": {
          "display_name": {
            "description": "Display name of the selected amortization template.",
            "example": "Annual Prepaid Insurance",
            "type": "string"
          },
          "id": {
            "description": "Brex identifier of the selected amortization template option (matches brex_field_value_id of the template field).",
            "example": "efo_123",
            "type": "string"
          },
          "remote_id": {
            "description": "Identifier of the template in the external accounting system (ERP). Null when the option has no remote id yet.",
            "example": "12345",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "display_name"
        ],
        "type": "object"
      },
      "accounting__Amount": {
        "properties": {
          "amount": {
            "description": "The amount",
            "example": 100,
            "type": "number"
          },
          "currency": {
            "description": "The currency",
            "example": "USD",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency"
        ],
        "type": "object"
      },
      "accounting__ApiError_BAD_REQUEST_Output": {
        "additionalProperties": false,
        "properties": {
          "brex_request_id": {
            "description": "Correlation ID for support and debugging",
            "nullable": true,
            "type": "string"
          },
          "details": {
            "additionalProperties": {},
            "description": "Additional error context",
            "nullable": true,
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "error_code": {
            "description": "Machine-readable error code",
            "enum": [
              "BAD_REQUEST",
              null
            ],
            "nullable": true,
            "type": "string"
          },
          "message": {
            "description": "Human-readable error message",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "accounting__ApiError_FORBIDDEN_Output": {
        "additionalProperties": false,
        "properties": {
          "brex_request_id": {
            "description": "Correlation ID for support and debugging",
            "nullable": true,
            "type": "string"
          },
          "details": {
            "additionalProperties": {},
            "description": "Additional error context",
            "nullable": true,
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "error_code": {
            "description": "Machine-readable error code",
            "enum": [
              "FORBIDDEN",
              null
            ],
            "nullable": true,
            "type": "string"
          },
          "message": {
            "description": "Human-readable error message",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "accounting__ApiError_SERVICE_UNAVAILABLE_Output": {
        "additionalProperties": false,
        "properties": {
          "brex_request_id": {
            "description": "Correlation ID for support and debugging",
            "nullable": true,
            "type": "string"
          },
          "details": {
            "additionalProperties": {},
            "description": "Additional error context",
            "nullable": true,
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "error_code": {
            "description": "Machine-readable error code",
            "enum": [
              "SERVICE_UNAVAILABLE",
              null
            ],
            "nullable": true,
            "type": "string"
          },
          "message": {
            "description": "Human-readable error message",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "accounting__ApiError_UNAUTHORIZED_Output": {
        "additionalProperties": false,
        "properties": {
          "brex_request_id": {
            "description": "Correlation ID for support and debugging",
            "nullable": true,
            "type": "string"
          },
          "details": {
            "additionalProperties": {},
            "description": "Additional error context",
            "nullable": true,
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "error_code": {
            "description": "Machine-readable error code",
            "enum": [
              "UNAUTHORIZED",
              null
            ],
            "nullable": true,
            "type": "string"
          },
          "message": {
            "description": "Human-readable error message",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "accounting__BrexAssistant": {
        "properties": {
          "disabled_reason": {
            "description": "Why Brex Assistant is disabled for this user, or null when enabled or on the legacy experience",
            "enum": [
              "ACCOUNT_DISABLED",
              "INHERITED_FROM_ACCOUNT_DEFAULT",
              "USER_DISABLED"
            ],
            "example": "USER_DISABLED",
            "nullable": true,
            "type": "string"
          },
          "experience": {
            "description": "The Brex Assistant experience resolved for this user",
            "enum": [
              "IAF",
              "LEGACY"
            ],
            "example": "IAF",
            "nullable": true,
            "type": "string"
          },
          "is_enabled": {
            "description": "Whether the resolved Brex Assistant experience is enabled for this user",
            "example": true,
            "nullable": true,
            "type": "boolean"
          }
        },
        "required": [
          "experience",
          "is_enabled",
          "disabled_reason"
        ],
        "type": "object"
      },
      "accounting__CardTransactionsCompletedNotificationPreference": {
        "properties": {
          "brex_assistant": {
            "description": "Whether Brex Assistant messages the user about a completed card transaction that needs no documentation. False when the user never saved a choice.",
            "example": false,
            "type": "boolean"
          }
        },
        "required": [
          "brex_assistant"
        ],
        "type": "object"
      },
      "accounting__CreateAmortizationTemplateRequest": {
        "properties": {
          "name": {
            "description": "Human-readable name of the template",
            "example": "Annual Prepaid Insurance",
            "type": "string"
          },
          "remote_id": {
            "description": "The template's identifier in the ERP. Omit when the ERP has no id for it.",
            "example": "TMPL-001",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "accounting__CreateIntegrationRequest": {
        "properties": {
          "amortization": {
            "description": "When true, provisions the amortization fields (amortization template, template start/end dates, and amortize toggle) and enables the AMORTIZATION capability for the integration. Returns 403 when amortization is not available to the account. The ERP opts into amortization by having these fields provisioned, so this works for any accounting integration created through this endpoint. Omitting the field, or passing false, leaves the integration unchanged — the same provisioning also happens on the first POST /accounting/integration/{integration_id}/amortization, so this field only decides whether it happens up front.",
            "example": false,
            "type": "boolean"
          },
          "vendor": {
            "description": "The accounting vendor/system",
            "enum": [
              "CAMPFIRE",
              "DUALENTRY",
              "HANOVER_PARK",
              "INKLE",
              "RILLET"
            ],
            "example": "RILLET",
            "type": "string"
          },
          "vendor_account_id": {
            "description": "The vendor account ID to tie this integration to",
            "example": "vendor_account_id",
            "type": "string"
          }
        },
        "required": [
          "vendor",
          "vendor_account_id"
        ],
        "type": "object"
      },
      "accounting__CreateTaxCodeRequest": {
        "properties": {
          "name": {
            "description": "Name of the tax code. Reserved names (\"Not Eligible\", \"Custom\") are rejected",
            "example": "UK Standard",
            "type": "string"
          },
          "rate": {
            "description": "Tax rate as a percentage (e.g. 20 for 20%). Use 0 for zero-rated. Required on create",
            "example": 20,
            "type": "number"
          },
          "remote_id": {
            "description": "The tax code's identifier in the remote accounting system. Omit when the remote system has no identifier.",
            "example": "remote-tax-uk-vat-20",
            "type": "string"
          },
          "subsidiary_ids": {
            "description": "Subsidiaries to enable this code for on creation",
            "example": [
              "sub_uk_ltd",
              "sub_ie_ltd"
            ],
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "name",
          "rate",
          "subsidiary_ids"
        ],
        "type": "object"
      },
      "accounting__CreateTaxGroupRequest": {
        "properties": {
          "name": {
            "description": "Name of the tax group. Reserved names (\"Not Eligible\", \"Custom\") are rejected",
            "example": "QC Combined",
            "type": "string"
          },
          "subsidiary_ids": {
            "description": "Subsidiaries to enable this group for on creation",
            "example": [
              "sub_ca_inc"
            ],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "tax_code_ids": {
            "description": "The Brex IDs of the existing tax codes to include in this group",
            "example": [
              "tc_gst",
              "tc_qst"
            ],
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "name",
          "tax_code_ids",
          "subsidiary_ids"
        ],
        "type": "object"
      },
      "accounting__ErpPostingDateFilter": {
        "properties": {
          "from": {
            "description": "Inclusive start of the ERP posting date range - ISO 8601 UTC datetime format",
            "example": "2025-01-01T00:00:00Z",
            "format": "date-time",
            "type": "string"
          },
          "to": {
            "description": "Inclusive end of the ERP posting date range - ISO 8601 UTC datetime format",
            "example": "2025-12-31T23:59:59.999Z",
            "format": "date-time",
            "type": "string"
          }
        },
        "type": "object"
      },
      "accounting__ErrorResponse": {
        "properties": {
          "brex_request_id": {
            "description": "Correlation id for support/debugging. Also returned in the Brex-Request-Id response header.",
            "example": "req_0f9c2c8e2c1a4f5e9b3a",
            "nullable": true,
            "type": "string"
          },
          "details": {
            "additionalProperties": true,
            "description": "Additional error context and details",
            "nullable": true,
            "type": "object"
          },
          "error_code": {
            "description": "Machine-readable error code",
            "enum": [
              "REIMBURSEMENT_MERCHANT_REQUIRED",
              "REIMBURSEMENT_SPEND_LIMIT_REQUIRED",
              "REIMBURSEMENT_TRACKING_CURRENCY_MISMATCH",
              "REIMBURSEMENT_PAYOUT_CURRENCY_UNSUPPORTED",
              "REIMBURSEMENT_PURCHASE_DATE_TOO_OLD",
              "INTERNAL_SERVER_ERROR",
              "BAD_REQUEST",
              "INVALID_ID_FORMAT",
              "CONFLICT",
              "UNAUTHORIZED",
              "FORBIDDEN",
              "NOT_FOUND",
              "METHOD_NOT_ALLOWED",
              "SERVICE_UNAVAILABLE",
              "TOO_MANY_REQUESTS",
              "ACTIVE_INTEGRATION_EXISTS",
              "DUPLICATE_ACCOUNTING_RECORD_IDS",
              "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT",
              "INTEGRATION_NOT_ACTIVE",
              "PAYMENT_INSTRUMENT_NOT_SETUP",
              "RECEIPT_REQUIRED",
              "BUDGET_AUTHORIZATION_ERROR",
              "USER_ALREADY_EXISTS",
              "ACCOUNTING_FIELD_PROTECTED",
              "REQUEST_TIMEOUT",
              "PAYLOAD_TOO_LARGE",
              "UNSUPPORTED_MEDIA_TYPE",
              "UNPROCESSABLE_ENTITY"
            ],
            "example": "BAD_REQUEST",
            "nullable": true,
            "type": "string"
          },
          "message": {
            "description": "Human-readable error message",
            "example": "The request was invalid or cannot be served",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "accounting__ExportFailureDetails": {
        "properties": {
          "error_message": {
            "description": "Human-readable explanation of the failure",
            "example": "Invalid GL account",
            "type": "string"
          }
        },
        "required": [
          "error_message"
        ],
        "type": "object"
      },
      "accounting__ExportResultsResponse": {
        "properties": {
          "updated_accounting_record_ids": {
            "description": "Accounting record ids that were updated by the request",
            "example": [
              "accr_abc123",
              "accr_def456"
            ],
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "updated_accounting_record_ids"
        ],
        "type": "object"
      },
      "accounting__ExportSuccessDetails": {
        "properties": {
          "deep_link_url": {
            "description": "URL pointing to the record in the external system",
            "example": "https://erp.com/transactions/456789",
            "nullable": false,
            "type": "string"
          },
          "reference_id": {
            "description": "External system identifier assigned to the exported record",
            "example": "erp_txn_456789",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "accounting__FailedExportResult": {
        "properties": {
          "accounting_record_id": {
            "description": "ID of the accounting record the export outcome applies to",
            "example": "accr_abc123",
            "type": "string"
          },
          "failure": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__ExportFailureDetails"
              }
            ],
            "description": "Details for a failed export"
          }
        },
        "required": [
          "accounting_record_id",
          "failure"
        ],
        "type": "object"
      },
      "accounting__Integration": {
        "properties": {
          "created_at": {
            "description": "Timestamp when the integration was created",
            "example": "2025-08-15T10:00:00Z",
            "format": "date-time",
            "type": "string"
          },
          "integration_id": {
            "description": "Unique identifier for the integration",
            "example": "int_abc123",
            "type": "string"
          },
          "status": {
            "description": "Current status of the integration",
            "enum": [
              "ACTIVE",
              "DISABLED"
            ],
            "example": "ACTIVE",
            "type": "string"
          },
          "vendor": {
            "description": "The accounting vendor/system",
            "enum": [
              "CAMPFIRE",
              "DUALENTRY",
              "HANOVER_PARK",
              "INKLE",
              "RILLET"
            ],
            "type": "string"
          },
          "vendor_account_id": {
            "description": "The vendor account ID this integration is tied to",
            "example": "rillet_account_id",
            "type": "string"
          }
        },
        "required": [
          "integration_id",
          "vendor",
          "vendor_account_id",
          "status",
          "created_at"
        ],
        "type": "object"
      },
      "accounting__IntegrationPaginatedResponse": {
        "properties": {
          "items": {
            "description": "The items in the response",
            "items": {
              "$ref": "#/components/schemas/accounting__Integration"
            },
            "type": "array"
          },
          "next_cursor": {
            "description": "The next cursor",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items",
          "next_cursor"
        ],
        "type": "object"
      },
      "accounting__NotificationPreferences": {
        "properties": {
          "card_transactions_completed": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__CardTransactionsCompletedNotificationPreference"
              }
            ],
            "description": "The Card transactions (completed) preference for Brex Assistant. Filled with the rest of notification_preferences; null when the caller is not this user.",
            "nullable": true,
            "type": "object"
          },
          "preferred_channels": {
            "description": "The channels that can reach the user proactively, most preferred first. Empty when no channel can reach the user. Null when the order cannot be resolved.",
            "items": {
              "$ref": "#/components/schemas/accounting__PreferredChannel"
            },
            "nullable": true,
            "type": "array"
          },
          "text": {
            "description": "The user's text notification preference. Null when it cannot be resolved.",
            "enum": [
              "OFF",
              "SMS",
              "WHATSAPP"
            ],
            "example": "SMS",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "text",
          "preferred_channels",
          "card_transactions_completed"
        ],
        "type": "object"
      },
      "accounting__PreferredChannel": {
        "properties": {
          "channel": {
            "description": "A channel that can reach the user",
            "enum": [
              "SLACK",
              "SMS",
              "WHATSAPP"
            ],
            "example": "WHATSAPP",
            "nullable": true,
            "type": "string"
          },
          "reply_mode": {
            "description": "Whether a free-text reply on this channel reaches Brex (TWO_WAY) or not (ONE_WAY, e.g. SMS from a short code outside the US and Canada)",
            "enum": [
              "ONE_WAY",
              "TWO_WAY"
            ],
            "example": "TWO_WAY",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "channel",
          "reply_mode"
        ],
        "type": "object"
      },
      "accounting__RailAccountDetails": {
        "properties": {
          "account_holder_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__Address"
              }
            ],
            "description": "Account holder address"
          },
          "bank_account_class": {
            "description": "Bank account class",
            "enum": [
              "BUSINESS",
              "PERSONAL"
            ],
            "example": "BUSINESS",
            "type": "string"
          },
          "bank_name": {
            "description": "Bank name",
            "example": "Chase Bank",
            "type": "string"
          },
          "beneficiary_bank_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__Address"
              }
            ],
            "description": "Beneficiary bank address"
          },
          "beneficiary_name_info": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Beneficiary name information",
            "type": "object"
          },
          "beneficiary_type": {
            "description": "Beneficiary type",
            "enum": [
              "BUSINESS",
              "INDIVIDUAL"
            ],
            "example": "BUSINESS",
            "type": "string"
          },
          "display_name": {
            "description": "Display name for this payment account",
            "example": "Main Business Checking",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier for this rail account details",
            "example": "rad_abc123",
            "type": "string"
          },
          "inserted_at": {
            "description": "When this account was created (ISO timestamp)",
            "example": "2024-01-15T10:30:00Z",
            "type": "string"
          },
          "properties": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Account properties (routing number, account number, IBAN, etc.)",
            "example": {
              "accountNumber": "****1234",
              "routingNumber": "121000248"
            },
            "type": "object"
          },
          "rail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__RailInfo"
              }
            ],
            "description": "Rail information (payment method type)"
          },
          "status": {
            "description": "Status of this payment account",
            "enum": [
              "ACCOUNT_CLOSED",
              "ACTIVE",
              "AUTOMATICALLY_INVALIDATED",
              "DELETED",
              "DISABLED",
              "FAILED_VERIFICATIONS",
              "PENDING_APPROVAL",
              "REJECTED"
            ],
            "example": "ACTIVE",
            "type": "string"
          },
          "target_country": {
            "description": "Target country",
            "example": "US",
            "type": "string"
          },
          "target_currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__RailAccountDetailsCurrency"
              }
            ],
            "description": "Target currency"
          },
          "updated_at": {
            "description": "When this account was last updated (ISO timestamp)",
            "example": "2024-01-15T10:30:00Z",
            "type": "string"
          }
        },
        "required": [
          "id",
          "display_name",
          "status",
          "properties",
          "rail",
          "inserted_at",
          "updated_at"
        ],
        "type": "object"
      },
      "accounting__RailAccountDetailsCurrency": {
        "properties": {
          "code": {
            "description": "Currency code (e.g., USD, EUR)",
            "example": "USD",
            "type": "string"
          }
        },
        "required": [
          "code"
        ],
        "type": "object"
      },
      "accounting__RailInfo": {
        "properties": {
          "type": {
            "description": "Rail type (payment method)",
            "enum": [
              "AU_BECS",
              "CARD",
              "CA_EFT",
              "CRYPTO_BASE",
              "CRYPTO_ETH",
              "EU_SEPA",
              "GLOBAL_BANK_TRANSFER",
              "HK_FPS",
              "INTL_SWIFT_WIRE",
              "SG_EGIRO",
              "UK_BACS",
              "US_ACH",
              "US_CHEQUE",
              "US_WIRE"
            ],
            "example": "US_ACH",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "accounting__ReportExportResultsRequest": {
        "properties": {
          "results": {
            "description": "Array of export results (must contain at least one result)",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/accounting__SuccessfulExportResult"
                },
                {
                  "$ref": "#/components/schemas/accounting__FailedExportResult"
                }
              ]
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "results"
        ],
        "type": "object"
      },
      "accounting__SuccessfulExportResult": {
        "properties": {
          "accounting_record_id": {
            "description": "ID of the accounting record the export outcome applies to",
            "example": "accr_abc123",
            "type": "string"
          },
          "success": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__ExportSuccessDetails"
              }
            ],
            "description": "Details for a successful export"
          }
        },
        "required": [
          "accounting_record_id",
          "success"
        ],
        "type": "object"
      },
      "accounting__TaxCode": {
        "properties": {
          "brex_id": {
            "description": "The internal Brex ID of the tax code",
            "example": "tc_abc123",
            "type": "string"
          },
          "name": {
            "description": "Human-readable name of the tax code",
            "example": "UK Standard",
            "type": "string"
          },
          "rate": {
            "description": "Tax rate as a percentage (e.g. 20 for 20%). 0 is zero-rated; null is exempt",
            "example": 20,
            "nullable": true,
            "type": "number"
          },
          "remote_id": {
            "description": "The tax code's identifier in the remote accounting system. Null when the caller did not provide one.",
            "example": "remote-tax-uk-vat-20",
            "nullable": true,
            "type": "string"
          },
          "subsidiaries": {
            "description": "Per-subsidiary enablement, one entry per subsidiary with a setting for this code",
            "items": {
              "$ref": "#/components/schemas/accounting__TaxSubsidiary"
            },
            "type": "array"
          },
          "updated_at": {
            "description": "The last updated timestamp of the tax code",
            "example": "2025-01-01T00:00:00Z",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "brex_id",
          "name",
          "updated_at",
          "subsidiaries"
        ],
        "type": "object"
      },
      "accounting__TaxCodePaginatedResponse": {
        "properties": {
          "items": {
            "description": "The items in the response",
            "items": {
              "$ref": "#/components/schemas/accounting__TaxCode"
            },
            "type": "array"
          },
          "next_cursor": {
            "description": "The next cursor",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items",
          "next_cursor"
        ],
        "type": "object"
      },
      "accounting__TaxCodeSubsidiaryStatus": {
        "properties": {
          "status": {
            "description": "Whether the tax code is enabled for this subsidiary",
            "enum": [
              "ENABLED",
              "DISABLED"
            ],
            "example": "ENABLED",
            "type": "string"
          },
          "subsidiary_id": {
            "description": "The subsidiary this status applies to",
            "example": "sub_uk_ltd",
            "type": "string"
          }
        },
        "required": [
          "subsidiary_id",
          "status"
        ],
        "type": "object"
      },
      "accounting__TaxGroup": {
        "properties": {
          "brex_id": {
            "description": "The internal Brex ID of the tax group",
            "example": "tc_grp1",
            "type": "string"
          },
          "name": {
            "description": "Human-readable name of the tax group",
            "example": "QC Combined",
            "type": "string"
          },
          "subsidiaries": {
            "description": "Per-subsidiary enablement, one entry per subsidiary with a setting for this group",
            "items": {
              "$ref": "#/components/schemas/accounting__TaxSubsidiary"
            },
            "type": "array"
          },
          "tax_codes": {
            "description": "The member tax codes contained in this group",
            "items": {
              "$ref": "#/components/schemas/accounting__TaxGroupTaxCode"
            },
            "type": "array"
          },
          "updated_at": {
            "description": "The last updated timestamp of the tax group",
            "example": "2025-01-01T00:00:00Z",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "brex_id",
          "name",
          "updated_at",
          "tax_codes",
          "subsidiaries"
        ],
        "type": "object"
      },
      "accounting__TaxGroupPaginatedResponse": {
        "properties": {
          "items": {
            "description": "The items in the response",
            "items": {
              "$ref": "#/components/schemas/accounting__TaxGroup"
            },
            "type": "array"
          },
          "next_cursor": {
            "description": "The next cursor",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items",
          "next_cursor"
        ],
        "type": "object"
      },
      "accounting__TaxGroupTaxCode": {
        "properties": {
          "brex_id": {
            "description": "The internal Brex ID of the member tax code",
            "example": "tc_gst",
            "type": "string"
          },
          "name": {
            "description": "Human-readable name of the member tax code",
            "example": "GST",
            "type": "string"
          },
          "rate": {
            "description": "Tax rate as a percentage (e.g. 20 for 20%). 0 is zero-rated; null is exempt",
            "example": 5,
            "nullable": true,
            "type": "number"
          },
          "updated_at": {
            "description": "The last updated timestamp of the member tax code",
            "example": "2025-01-01T00:00:00Z",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "brex_id",
          "name",
          "updated_at"
        ],
        "type": "object"
      },
      "accounting__TaxSubsidiary": {
        "properties": {
          "status": {
            "description": "Whether the code/group is enabled for this subsidiary",
            "enum": [
              "ENABLED",
              "DISABLED"
            ],
            "example": "ENABLED",
            "type": "string"
          },
          "subsidiary_id": {
            "description": "The internal Brex ID of the subsidiary",
            "example": "sub_uk_ltd",
            "type": "string"
          },
          "subsidiary_name": {
            "description": "Human-readable name of the subsidiary",
            "example": "UK Ltd",
            "type": "string"
          }
        },
        "required": [
          "subsidiary_id",
          "subsidiary_name",
          "status"
        ],
        "type": "object"
      },
      "accounting__UpdateAccountingRecordsBody": {
        "additionalProperties": false,
        "properties": {
          "accounting_fields": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "bool_value": {
                  "nullable": true,
                  "type": "boolean"
                },
                "date_value": {
                  "format": "date",
                  "nullable": true,
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                  "type": "string"
                },
                "enum_value": {
                  "minLength": 1,
                  "nullable": true,
                  "type": "string"
                },
                "field_id": {
                  "description": "Field brex_id from accounting field discovery.",
                  "minLength": 1,
                  "type": "string"
                },
                "is_deleted": {
                  "nullable": true,
                  "type": "boolean"
                },
                "number_value": {
                  "nullable": true,
                  "type": "number"
                },
                "string_value": {
                  "nullable": true,
                  "type": "string"
                },
                "value_id": {
                  "description": "Option brex_id for an option field.",
                  "minLength": 1,
                  "nullable": true,
                  "type": "string"
                }
              },
              "required": [
                "field_id"
              ],
              "type": "object"
            },
            "maxItems": 50,
            "minItems": 1,
            "type": "array"
          },
          "accounting_record_ids": {
            "items": {
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 50,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "accounting_record_ids",
          "accounting_fields"
        ],
        "type": "object"
      },
      "accounting__UpdateAccountingRecordsResponse_Output": {
        "additionalProperties": false,
        "properties": {
          "results": {
            "items": {
              "oneOf": [
                {
                  "additionalProperties": false,
                  "properties": {
                    "accounting_record": {
                      "additionalProperties": false,
                      "properties": {
                        "amount": {
                          "additionalProperties": false,
                          "properties": {
                            "amount": {
                              "type": "number"
                            },
                            "currency": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "amount",
                            "currency"
                          ],
                          "type": "object"
                        },
                        "billing_amount": {
                          "additionalProperties": false,
                          "nullable": true,
                          "properties": {
                            "amount": {
                              "type": "number"
                            },
                            "currency": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "amount",
                            "currency"
                          ],
                          "type": "object"
                        },
                        "due_at": {
                          "nullable": true,
                          "type": "string"
                        },
                        "erp_posting_date": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "invoice_number": {
                          "nullable": true,
                          "type": "string"
                        },
                        "line_items": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "accounting_field_values": {
                                "items": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "brex_field_id": {
                                      "type": "string"
                                    },
                                    "brex_field_value_id": {
                                      "nullable": true,
                                      "type": "string"
                                    },
                                    "field_name": {
                                      "nullable": true,
                                      "type": "string"
                                    },
                                    "field_value_name": {
                                      "nullable": true,
                                      "type": "string"
                                    },
                                    "remote_field_id": {
                                      "nullable": true,
                                      "type": "string"
                                    },
                                    "remote_field_value_id": {
                                      "nullable": true,
                                      "type": "string"
                                    },
                                    "set_by": {
                                      "enum": [
                                        "MANUAL",
                                        "AUTOMATED",
                                        "AGENT",
                                        "OCR",
                                        null
                                      ],
                                      "nullable": true,
                                      "type": "string"
                                    },
                                    "set_by_details": {
                                      "additionalProperties": false,
                                      "nullable": true,
                                      "properties": {
                                        "mapping_id": {
                                          "nullable": true,
                                          "type": "string"
                                        },
                                        "mapping_rule_id": {
                                          "nullable": true,
                                          "type": "string"
                                        },
                                        "rule_id": {
                                          "nullable": true,
                                          "type": "string"
                                        },
                                        "type": {
                                          "enum": [
                                            "CUSTOM_RULE",
                                            "MAPPING_RULE",
                                            "INTEGRATION_SETTINGS"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "type"
                                      ],
                                      "type": "object"
                                    },
                                    "type": {
                                      "enum": [
                                        "IDENTIFIER",
                                        "STRING",
                                        "BOOL",
                                        "DATE",
                                        null
                                      ],
                                      "nullable": true,
                                      "type": "string"
                                    },
                                    "value": {
                                      "anyOf": [
                                        {
                                          "nullable": true,
                                          "type": "string"
                                        },
                                        {
                                          "nullable": true,
                                          "type": "boolean"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "brex_field_id",
                                    "remote_field_id",
                                    "brex_field_value_id",
                                    "remote_field_value_id",
                                    "field_name",
                                    "field_value_name"
                                  ],
                                  "type": "object"
                                },
                                "type": "array"
                              },
                              "amortization": {
                                "additionalProperties": false,
                                "nullable": true,
                                "properties": {
                                  "amortization_end_date": {
                                    "nullable": true,
                                    "type": "string"
                                  },
                                  "amortization_start_date": {
                                    "nullable": true,
                                    "type": "string"
                                  },
                                  "amortization_template": {
                                    "additionalProperties": false,
                                    "nullable": true,
                                    "properties": {
                                      "display_name": {
                                        "type": "string"
                                      },
                                      "id": {
                                        "type": "string"
                                      },
                                      "remote_id": {
                                        "nullable": true,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "display_name"
                                    ],
                                    "type": "object"
                                  }
                                },
                                "type": "object"
                              },
                              "amount": {
                                "additionalProperties": false,
                                "properties": {
                                  "amount": {
                                    "type": "number"
                                  },
                                  "currency": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "currency"
                                ],
                                "type": "object"
                              },
                              "billing_amount": {
                                "additionalProperties": false,
                                "nullable": true,
                                "properties": {
                                  "amount": {
                                    "type": "number"
                                  },
                                  "currency": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "currency"
                                ],
                                "type": "object"
                              },
                              "id": {
                                "type": "string"
                              },
                              "memo": {
                                "nullable": true,
                                "type": "string"
                              },
                              "original_amount": {
                                "additionalProperties": false,
                                "nullable": true,
                                "properties": {
                                  "amount": {
                                    "type": "number"
                                  },
                                  "currency": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "currency"
                                ],
                                "type": "object"
                              },
                              "type": {
                                "enum": [
                                  "CREDIT",
                                  "DEBIT"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "amount",
                              "accounting_field_values"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "memo": {
                          "nullable": true,
                          "type": "string"
                        },
                        "original_amount": {
                          "additionalProperties": false,
                          "nullable": true,
                          "properties": {
                            "amount": {
                              "type": "number"
                            },
                            "currency": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "amount",
                            "currency"
                          ],
                          "type": "object"
                        },
                        "posted_at": {
                          "type": "string"
                        },
                        "receipts": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "download_uris": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id"
                            ],
                            "type": "object"
                          },
                          "nullable": true,
                          "type": "array"
                        },
                        "review_status": {
                          "enum": [
                            "PREPARE",
                            "REVIEW",
                            "EXPORTED",
                            "READY_FOR_EXPORT"
                          ],
                          "type": "string"
                        },
                        "source_id": {
                          "type": "string"
                        },
                        "source_type": {
                          "enum": [
                            "CARD",
                            "REIMBURSEMENT",
                            "BILL"
                          ],
                          "type": "string"
                        },
                        "status": {
                          "description": "The source expense's approval/lifecycle status.",
                          "enum": [
                            "APPROVED",
                            "CANCELED",
                            "DRAFT",
                            "OUT_OF_POLICY",
                            "SETTLED",
                            "SPLIT",
                            "SUBMITTED",
                            "VOID",
                            null
                          ],
                          "nullable": true,
                          "type": "string"
                        },
                        "type": {
                          "enum": [
                            "CARD_EXPENSE_POST",
                            "CARD_EXPENSE_REPAYMENT",
                            "REIMBURSEMENT_EXPENSE_REPAYMENT",
                            "REIMBURSEMENT_EXPENSE_APPROVAL",
                            "REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_PAYOUT",
                            "REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_PAYIN",
                            "REIMBURSEMENT_EXPENSE_POST",
                            "CARD_PAYMENT",
                            "REWARD_REDEMPTION",
                            "REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_REFUND",
                            "CARD_EXPENSE_REFUND",
                            "CARD_PAYMENT_REFUND",
                            "REIMBURSEMENT_EXPENSE_MONEY_MOVEMENT_PAYOUT_REVERSAL",
                            "INVOICE",
                            "INVOICE_PAYMENT",
                            "BILL_EXPENSE",
                            "BILL_EXPENSE_PAYMENT",
                            "BILL_EXPENSE_CARD_PAYMENT",
                            "BILL_MONEY_MOVEMENT_PAYIN"
                          ],
                          "type": "string"
                        },
                        "updated_at": {
                          "type": "string"
                        },
                        "user": {
                          "additionalProperties": false,
                          "nullable": true,
                          "properties": {
                            "account_id": {
                              "description": "The ID of the account the user belongs to (e.g., cuacc_1234)",
                              "nullable": true,
                              "type": "string"
                            },
                            "brex_assistant": {
                              "additionalProperties": false,
                              "description": "The resolved Brex Assistant state. Null unless include contains 'brex_assistant'.",
                              "nullable": true,
                              "properties": {
                                "disabled_reason": {
                                  "enum": [
                                    "ACCOUNT_DISABLED",
                                    "INHERITED_FROM_ACCOUNT_DEFAULT",
                                    "USER_DISABLED",
                                    null
                                  ],
                                  "nullable": true,
                                  "type": "string"
                                },
                                "experience": {
                                  "enum": [
                                    "IAF",
                                    "LEGACY",
                                    null
                                  ],
                                  "nullable": true,
                                  "type": "string"
                                },
                                "is_enabled": {
                                  "nullable": true,
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "experience",
                                "is_enabled",
                                "disabled_reason"
                              ],
                              "type": "object"
                            },
                            "department_id": {
                              "description": "The ID of the user's department",
                              "nullable": true,
                              "type": "string"
                            },
                            "department_name": {
                              "description": "The user's department name (e.g., Engineering)",
                              "nullable": true,
                              "type": "string"
                            },
                            "email": {
                              "description": "The user's email address (e.g., john.doe@example.com)",
                              "nullable": true,
                              "type": "string"
                            },
                            "first_name": {
                              "description": "The user's first name (e.g., John)",
                              "type": "string"
                            },
                            "id": {
                              "description": "The ID of the user (e.g., cuuser_abc123def456ghi789jkl012)",
                              "type": "string"
                            },
                            "last_name": {
                              "description": "The user's last name (e.g., Doe)",
                              "type": "string"
                            },
                            "location_id": {
                              "description": "The ID of the user's location",
                              "nullable": true,
                              "type": "string"
                            },
                            "location_name": {
                              "description": "The user's location name (e.g., San Francisco)",
                              "nullable": true,
                              "type": "string"
                            },
                            "manager_first_name": {
                              "description": "The user's manager first name",
                              "nullable": true,
                              "type": "string"
                            },
                            "manager_id": {
                              "description": "The ID of the user's manager",
                              "nullable": true,
                              "type": "string"
                            },
                            "manager_last_name": {
                              "description": "The user's manager last name",
                              "nullable": true,
                              "type": "string"
                            },
                            "manager_title_id": {
                              "description": "The user's manager title ID",
                              "nullable": true,
                              "type": "string"
                            },
                            "manager_title_name": {
                              "description": "The user's manager title display name",
                              "nullable": true,
                              "type": "string"
                            },
                            "metadata": {
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Customer-defined user metadata",
                              "nullable": true,
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "notification_preferences": {
                              "additionalProperties": false,
                              "description": "The user's notification preferences across Brex. Null unless include contains 'notification_preferences', or when the caller cannot read this user.",
                              "nullable": true,
                              "properties": {
                                "card_transactions_completed": {
                                  "additionalProperties": false,
                                  "nullable": true,
                                  "properties": {
                                    "brex_assistant": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "brex_assistant"
                                  ],
                                  "type": "object"
                                },
                                "preferred_channels": {
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "channel": {
                                        "enum": [
                                          "SLACK",
                                          "SMS",
                                          "WHATSAPP",
                                          null
                                        ],
                                        "nullable": true,
                                        "type": "string"
                                      },
                                      "reply_mode": {
                                        "enum": [
                                          "ONE_WAY",
                                          "TWO_WAY",
                                          null
                                        ],
                                        "nullable": true,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "channel",
                                      "reply_mode"
                                    ],
                                    "type": "object"
                                  },
                                  "nullable": true,
                                  "type": "array"
                                },
                                "text": {
                                  "enum": [
                                    "OFF",
                                    "SMS",
                                    "WHATSAPP",
                                    null
                                  ],
                                  "nullable": true,
                                  "type": "string"
                                }
                              },
                              "required": [
                                "text",
                                "preferred_channels",
                                "card_transactions_completed"
                              ],
                              "type": "object"
                            },
                            "phone_number": {
                              "description": "The user's phone number. Null unless include contains 'phone_number'.",
                              "nullable": true,
                              "type": "string"
                            },
                            "role": {
                              "description": "The user's role in the system (e.g., CARD_ADMIN). See UserRole enum for values.",
                              "enum": [
                                "ACCOUNT_ADMIN",
                                "AP_CLERK",
                                "BOOKKEEPER",
                                "CARD_ADMIN",
                                "EMPLOYEE",
                                "EMPLOYEE_WITHOUT_CORP_CARDS",
                                "EXPENSE_ADMIN",
                                "SUPER_ADMIN",
                                "USER_MANAGEMENT_ADMIN",
                                null
                              ],
                              "nullable": true,
                              "type": "string"
                            },
                            "status": {
                              "description": "The user's status in the system (e.g., ACTIVE)",
                              "enum": [
                                "ACTIVE",
                                "ARCHIVED",
                                "DELETED",
                                "DISABLED",
                                "INACTIVE",
                                "INVITED",
                                "PENDING_ACTIVATION"
                              ],
                              "type": "string"
                            },
                            "title_id": {
                              "description": "The user's title ID",
                              "nullable": true,
                              "type": "string"
                            },
                            "title_name": {
                              "description": "The user's title display name (e.g., Software Engineer)",
                              "nullable": true,
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "first_name",
                            "last_name",
                            "status"
                          ],
                          "type": "object"
                        },
                        "vendor": {
                          "additionalProperties": false,
                          "nullable": true,
                          "properties": {
                            "contact_name": {
                              "nullable": true,
                              "type": "string"
                            },
                            "email": {
                              "nullable": true,
                              "type": "string"
                            },
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "phone": {
                              "nullable": true,
                              "type": "string"
                            },
                            "website": {
                              "nullable": true,
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "type": "object"
                        },
                        "version": {
                          "nullable": true,
                          "type": "number"
                        }
                      },
                      "required": [
                        "id",
                        "amount",
                        "type",
                        "review_status",
                        "source_type",
                        "erp_posting_date",
                        "updated_at",
                        "posted_at",
                        "line_items"
                      ],
                      "type": "object"
                    },
                    "accounting_record_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "updated"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "accounting_record_id",
                    "status",
                    "accounting_record"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "accounting_record_id": {
                      "type": "string"
                    },
                    "error": {
                      "additionalProperties": false,
                      "properties": {
                        "code": {
                          "enum": [
                            "NOT_FOUND",
                            "UNSUPPORTED_SOURCE_TYPE",
                            "ITEMIZED_EXPENSE_NOT_SUPPORTED",
                            "RECORD_NOT_EDITABLE",
                            "FIELD_NOT_EDITABLE",
                            "INVALID_FIELD_VALUE",
                            "PERMISSION_DENIED",
                            "UPDATE_FAILED",
                            "UPDATE_OUTCOME_UNKNOWN"
                          ],
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "type": "object"
                    },
                    "status": {
                      "enum": [
                        "failed"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "accounting_record_id",
                    "status",
                    "error"
                  ],
                  "type": "object"
                }
              ]
            },
            "type": "array"
          }
        },
        "required": [
          "results"
        ],
        "type": "object"
      },
      "accounting__UpdateAmortizationTemplateRequest": {
        "properties": {
          "is_disabled": {
            "description": "Set true to hide the template from selection on new expenses, false to restore it",
            "example": true,
            "type": "boolean"
          },
          "name": {
            "description": "New name for the template",
            "example": "Annual Prepaid Insurance (FY26)",
            "type": "string"
          }
        },
        "type": "object"
      },
      "accounting__UpdateTaxCodeRequest": {
        "properties": {
          "subsidiaries": {
            "description": "Per-subsidiary status changes to apply",
            "items": {
              "$ref": "#/components/schemas/accounting__TaxCodeSubsidiaryStatus"
            },
            "type": "array"
          }
        },
        "required": [
          "subsidiaries"
        ],
        "type": "object"
      },
      "accounting__UpdateTaxGroupRequest": {
        "properties": {
          "subsidiaries": {
            "description": "Per-subsidiary status changes to apply",
            "items": {
              "$ref": "#/components/schemas/accounting__TaxCodeSubsidiaryStatus"
            },
            "type": "array"
          }
        },
        "required": [
          "subsidiaries"
        ],
        "type": "object"
      },
      "accounting__UpdatedAtFilter": {
        "properties": {
          "gt": {
            "description": "Minimum value to filter by (exclusive) - ISO 8601 format",
            "example": "2025-01-01T00:00:00Z",
            "format": "date-time",
            "type": "string"
          },
          "gte": {
            "description": "Minimum value to filter by (inclusive) - ISO 8601 format",
            "example": "2025-01-01T00:00:00Z",
            "format": "date-time",
            "type": "string"
          },
          "lt": {
            "description": "Maximum value to filter by (exclusive) - ISO 8601 format",
            "example": "2025-01-01T00:00:00Z",
            "format": "date-time",
            "type": "string"
          },
          "lte": {
            "description": "Maximum value to filter by (inclusive) - ISO 8601 format",
            "example": "2025-01-01T23:59:59.999Z",
            "format": "date-time",
            "type": "string"
          }
        },
        "type": "object"
      },
      "accounting__User": {
        "properties": {
          "account_id": {
            "description": "The ID of the account the user belongs to",
            "example": "cuacc_1234",
            "type": "string"
          },
          "brex_assistant": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__BrexAssistant"
              }
            ],
            "description": "Resolved Brex Assistant state. Null unless include contains 'brex_assistant'.",
            "nullable": true,
            "type": "object"
          },
          "department_id": {
            "description": "The ID of the user's department",
            "example": "cudmnt_1234",
            "type": "string"
          },
          "department_name": {
            "description": "The user's department name",
            "example": "Engineering",
            "type": "string"
          },
          "email": {
            "description": "The user's email address. Omitted for callers without the `user.read` operation permission when they look up users other than themselves.",
            "example": "john.doe@example.com",
            "type": "string"
          },
          "first_name": {
            "description": "The user's first name",
            "example": "John",
            "type": "string"
          },
          "id": {
            "description": "The ID of the user",
            "example": "cuuser_1234",
            "type": "string"
          },
          "last_name": {
            "description": "The user's last name",
            "example": "Doe",
            "type": "string"
          },
          "location_id": {
            "description": "The ID of the user's location",
            "example": "culoc_1234",
            "type": "string"
          },
          "location_name": {
            "description": "The user's location name",
            "example": "San Francisco",
            "type": "string"
          },
          "manager_first_name": {
            "description": "The user's manager first name",
            "example": "Jane",
            "type": "string"
          },
          "manager_id": {
            "description": "The ID of the user's manager",
            "example": "cuuser_1234",
            "type": "string"
          },
          "manager_last_name": {
            "description": "The user's manager last name",
            "example": "Smith",
            "type": "string"
          },
          "manager_title_id": {
            "description": "The user's manager title ID",
            "example": "ti_1234",
            "type": "string"
          },
          "manager_title_name": {
            "description": "The user's manager title display name",
            "example": "Engineering Manager",
            "type": "string"
          },
          "metadata": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Customer-defined metadata associated with the user",
            "maxProperties": 100,
            "type": "object"
          },
          "notification_preferences": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__NotificationPreferences"
              }
            ],
            "description": "The user's notification preferences across Brex. Null unless include contains 'notification_preferences', or when the caller cannot read this user.",
            "nullable": true,
            "type": "object"
          },
          "phone_number": {
            "description": "The user's phone number (from their active SMS channel). Null unless include contains 'phone_number'.",
            "example": "+14155551234",
            "nullable": true,
            "type": "string"
          },
          "role": {
            "description": "The user's role in the system",
            "enum": [
              "ACCOUNT_ADMIN",
              "AP_CLERK",
              "BOOKKEEPER",
              "CARD_ADMIN",
              "EMPLOYEE",
              "EMPLOYEE_WITHOUT_CORP_CARDS",
              "EXPENSE_ADMIN",
              "SUPER_ADMIN",
              "USER_MANAGEMENT_ADMIN"
            ],
            "example": "CARD_ADMIN",
            "type": "string"
          },
          "status": {
            "description": "The user's status in the system",
            "enum": [
              "ACTIVE",
              "ARCHIVED",
              "DELETED",
              "DISABLED",
              "INACTIVE",
              "INVITED",
              "PENDING_ACTIVATION"
            ],
            "example": "ACTIVE",
            "type": "string"
          },
          "title_id": {
            "description": "The user's title ID",
            "example": "ti_1234",
            "type": "string"
          },
          "title_name": {
            "description": "The user's title display name",
            "example": "Software Engineer",
            "type": "string"
          }
        },
        "required": [
          "id",
          "first_name",
          "last_name",
          "role",
          "status",
          "brex_assistant",
          "notification_preferences"
        ],
        "type": "object"
      },
      "accounting__Vendor": {
        "properties": {
          "contact_name": {
            "description": "The name of the contact for the vendor",
            "example": "Jane Smith",
            "type": "string"
          },
          "customer_account_id": {
            "description": "Customer account ID",
            "example": "cuaac_123",
            "type": "string"
          },
          "customer_dba_name": {
            "description": "The DBA name of the vendor",
            "example": "Acme Corporation",
            "type": "string"
          },
          "email": {
            "description": "The email for the vendor",
            "example": "contact@acme.com",
            "type": "string"
          },
          "id": {
            "description": "The unique identifier for the vendor",
            "example": "LF5tfXg4ZzNFcy1EVXFwe2dKKV4oXj9IPFIjQHFJOzg",
            "type": "string"
          },
          "name": {
            "description": "The name of the vendor",
            "example": "Acme Corp",
            "type": "string"
          },
          "payment_config": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__VendorPaymentConfig"
              }
            ],
            "description": "Payment configuration for this vendor"
          },
          "phone": {
            "description": "The phone number for the vendor",
            "example": "+1-555-123-4567",
            "type": "string"
          },
          "rail_account_details": {
            "description": "Rail account details (payment accounts) for this vendor",
            "items": {
              "$ref": "#/components/schemas/accounting__RailAccountDetails"
            },
            "type": "array"
          },
          "website": {
            "description": "The website of the vendor",
            "example": "https://acme.com",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "customer_account_id"
        ],
        "type": "object"
      },
      "accounting__VendorOwners": {
        "properties": {
          "id": {
            "description": "Vendor owners group ID",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "accounting__VendorPaymentConfig": {
        "properties": {
          "default_payment_method_string": {
            "description": "Default payment method (ACH, Wire, Check)",
            "type": "string"
          },
          "id": {
            "description": "Payment config ID",
            "type": "string"
          },
          "irs_form1099_eligibility_status": {
            "description": "IRS Form 1099 eligibility status",
            "enum": [
              "ELIGIBLE",
              "INELIGIBLE"
            ],
            "type": "string"
          },
          "linked_erp_vendor_url": {
            "description": "Linked ERP vendor URL",
            "type": "string"
          },
          "linked_vendor_erp_name": {
            "description": "Linked ERP vendor name",
            "type": "string"
          },
          "payment_terms": {
            "description": "Payment terms",
            "type": "string"
          },
          "self_serve_request_payment_instrument": {
            "description": "Self-serve payment instrument request status",
            "enum": [
              "COMPLETE",
              "EXPIRED",
              "NOT_ALLOWED",
              "REQUESTED"
            ],
            "type": "string"
          },
          "self_serve_request_tax_info": {
            "description": "Self-serve tax info request status",
            "enum": [
              "COMPLETE",
              "EXPIRED",
              "NOT_ALLOWED",
              "REQUESTED"
            ],
            "type": "string"
          },
          "tax_form_tin_validation_status": {
            "description": "Tax form TIN validation status",
            "enum": [
              "INVALID",
              "NOT_REQUESTED",
              "REQUESTED",
              "VALID"
            ],
            "type": "string"
          },
          "tax_form_w8": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__VendorTaxFormW8"
              }
            ],
            "description": "W8 tax form data"
          },
          "tax_form_w9": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__VendorTaxFormW9"
              }
            ],
            "description": "W9 tax form data"
          },
          "vendor_owners": {
            "allOf": [
              {
                "$ref": "#/components/schemas/accounting__VendorOwners"
              }
            ],
            "description": "Vendor owners group"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "accounting__VendorTaxFormW8": {
        "properties": {
          "country_of_citizenship": {
            "description": "Country of citizenship",
            "type": "string"
          },
          "date_of_birth": {
            "description": "Date of birth",
            "type": "string"
          },
          "domestic_tax_identification_number": {
            "description": "Domestic tax identification number",
            "type": "string"
          },
          "foreign_tax_identification_number": {
            "description": "Foreign tax identification number",
            "type": "string"
          },
          "legal_name": {
            "description": "Legal name",
            "type": "string"
          }
        },
        "type": "object"
      },
      "accounting__VendorTaxFormW9": {
        "properties": {
          "business_name": {
            "description": "Business name",
            "type": "string"
          },
          "is_signed": {
            "description": "Whether the form is signed",
            "type": "boolean"
          },
          "legal_name": {
            "description": "Legal name",
            "type": "string"
          },
          "signed_date": {
            "description": "Date the form was signed",
            "type": "string"
          },
          "tax_classification": {
            "description": "Tax classification",
            "enum": [
              "C_CORP",
              "INDIVIDUAL",
              "LLC",
              "OTHER",
              "PARTNERSHIP",
              "S_CORP"
            ],
            "type": "string"
          },
          "tax_identification_number": {
            "description": "Tax identification number",
            "type": "string"
          }
        },
        "type": "object"
      },
      "budgets__AuthorizationSettings": {
        "properties": {
          "authorization_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__AuthorizationType"
              },
              {
                "description": "\nWhether authorizations will decline based on available balance.\n"
              }
            ]
          },
          "base_limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__Money"
              },
              {
                "description": "\nBase input limit of the Spend Limit, without limit increases/rollovers/etc.\n"
              }
            ]
          },
          "limit_buffer_percentage": {
            "description": "\nThe percentage of flexible buffer on the limit as a 0-100 integer.\n",
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "limit_with_increases": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__Money"
              },
              {
                "description": "\nThe current adjusted limit of the spend limit (base limit + active limit increases).\n"
              }
            ]
          },
          "rollover_refresh_rate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__RolloverRefreshRate"
              },
              {
                "description": "\nThe rollover refresh rate for this spend limit (the recurrence by which all rolled over unused funds within the cycle should no longer roll over to the next period).\n"
              }
            ]
          }
        },
        "required": [
          "authorization_type",
          "base_limit",
          "limit_with_increases",
          "rollover_refresh_rate"
        ],
        "type": "object"
      },
      "budgets__AuthorizationType": {
        "description": "\nWhether authorizations will decline based on available balance.\n",
        "enum": [
          "HARD",
          "SOFT"
        ],
        "type": "string"
      },
      "budgets__AuthorizationVisibility": {
        "description": "\nDescribes if the limit of the Spend Limit is visible to all members, or just controllers, bookkeepers, and owners (direct or ancestral).\n",
        "enum": [
          "PUBLIC",
          "PRIVATE"
        ],
        "type": "string"
      },
      "budgets__AutoCreateLimitCardsSetting": {
        "description": "\nSetting for how auto limit card creation works for members.\n",
        "enum": [
          "DISABLED",
          "ALL_MEMBERS"
        ],
        "type": "string"
      },
      "budgets__AutoTransferCardsSetting": {
        "description": "\nSetting for how auto transfer works for virtual cards.\n",
        "enum": [
          "DISABLED",
          "ENABLED"
        ],
        "type": "string"
      },
      "budgets__Budget": {
        "properties": {
          "account_id": {
            "description": "\nThe Brex account this Spend Limit belongs to.\n",
            "type": "string"
          },
          "budget_id": {
            "description": "\nUnique ID for the Spend Limit.\n",
            "type": "string"
          },
          "budget_status": {
            "$ref": "#/components/schemas/budgets__BudgetStatus"
          },
          "budget_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__BudgetType"
              },
              {
                "description": "\nWhether this is a Budget or a Spend Limit for post-bifurcation entities. \n"
              }
            ]
          },
          "creator_user_id": {
            "description": "\nThe ID of the user who originally created this Spend Limit.\n",
            "nullable": true,
            "type": "string"
          },
          "current_period_balance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__BudgetPeriodBalance"
              }
            ],
            "nullable": true
          },
          "description": {
            "description": "\nDescription of what the Spend Limit is used for.\n",
            "nullable": true,
            "type": "string"
          },
          "end_date": {
            "description": "\nThe UTC date when the Spend Limit should stop counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__Money"
              }
            ],
            "nullable": true
          },
          "limit_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__LimitType"
              }
            ],
            "nullable": true
          },
          "limit_visibility": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__BudgetLimitVisibilityType"
              },
              {
                "description": "\nDetermines if Spend Limit members are allowed to view the Spend Limit's limit.\n"
              }
            ]
          },
          "member_user_ids": {
            "description": "\nUser IDs of the members of the Spend Limit.\n",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "description": "\nName for the Spend Limit.\n",
            "type": "string"
          },
          "owner_user_ids": {
            "description": "\nUser IDs of the owners of the Spend Limit.\n",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "parent_budget_id": {
            "description": "\nID of parent Budget.\n",
            "nullable": true,
            "type": "string"
          },
          "period_type": {
            "$ref": "#/components/schemas/budgets__PeriodType"
          },
          "spend_type": {
            "$ref": "#/components/schemas/budgets__SpendType"
          },
          "start_date": {
            "description": "\nThe UTC date when the Spend Limit should start counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "templateId": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "budget_id",
          "budget_status",
          "budget_type",
          "limit_visibility",
          "member_user_ids",
          "name",
          "owner_user_ids",
          "period_type",
          "spend_type"
        ],
        "type": "object"
      },
      "budgets__BudgetBlueprint": {
        "description": "\nBlueprint for provisioning Spend Limits for a Budget Program.\n",
        "properties": {
          "description": {
            "description": "\nDescription of what the Spend Limit is used for.\n",
            "nullable": true,
            "type": "string"
          },
          "end_date": {
            "description": "\nThe UTC date when the Spend Limit should stop counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__Money"
              }
            ],
            "nullable": true
          },
          "limit_type": {
            "$ref": "#/components/schemas/budgets__LimitType"
          },
          "limit_visibility": {
            "$ref": "#/components/schemas/budgets__BudgetLimitVisibilityType"
          },
          "name": {
            "description": "\nName for the Spend Limit.\n",
            "type": "string"
          },
          "owner_user_ids": {
            "description": "\nUser IDs of the owners of the Spend Limit.\n",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "parent_budget_id": {
            "description": "\nID of parent Budget.\n",
            "type": "string"
          },
          "period_type": {
            "$ref": "#/components/schemas/budgets__PeriodType"
          },
          "spend_type": {
            "$ref": "#/components/schemas/budgets__SpendType"
          },
          "start_date": {
            "description": "\nThe UTC date when the Spend Limit should start counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "limit_type",
          "limit_visibility",
          "name",
          "owner_user_ids",
          "parent_budget_id",
          "period_type",
          "spend_type"
        ],
        "type": "object"
      },
      "budgets__BudgetLimitVisibilityType": {
        "description": "\nDetermines if Spend Limit members are allowed to view the Spend Limit's limit.\n",
        "enum": [
          "SHARED",
          "PRIVATE"
        ],
        "type": "string"
      },
      "budgets__BudgetPeriodBalance": {
        "description": "\nCurrent Spend Limit period balance.\n",
        "properties": {
          "balance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__Money"
              }
            ],
            "nullable": true
          },
          "end_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "start_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "budgets__BudgetProgram": {
        "description": "\nBudget Program used to create Spend Limits for eligible users.\n",
        "properties": {
          "budget_blueprints": {
            "items": {
              "$ref": "#/components/schemas/budgets__BudgetBlueprint"
            },
            "type": "array"
          },
          "budget_program_status": {
            "$ref": "#/components/schemas/budgets__BudgetProgramStatus"
          },
          "created_at": {
            "format": "date",
            "type": "string"
          },
          "creator_user_id": {
            "nullable": true,
            "type": "string"
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "employee_filter": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__EmployeeFilter"
              }
            ],
            "nullable": true
          },
          "existing_budget_ids": {
            "description": "\nIDs for existing Spend Limits associated with this Budget Program.\n",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "updated_at": {
            "format": "date",
            "type": "string"
          }
        },
        "required": [
          "budget_blueprints",
          "budget_program_status",
          "created_at",
          "id",
          "name",
          "updated_at"
        ],
        "type": "object"
      },
      "budgets__BudgetProgramStatus": {
        "enum": [
          "BUDGET_PROGRAM_STATUS_ACTIVE",
          "BUDGET_PROGRAM_STATUS_INACTIVE",
          "BUDGET_PROGRAM_STATUS_DELETED"
        ],
        "type": "string"
      },
      "budgets__BudgetStatus": {
        "description": "\nStatus of the Spend Limit e.g. APPROVED.\n",
        "enum": [
          "APPROVED",
          "EXPIRED",
          "TERMINATED",
          "DELETED"
        ],
        "type": "string"
      },
      "budgets__BudgetType": {
        "description": "\nWhether this is a Budget or a Spend Limit for post-bifurcation entities. \n",
        "enum": [
          "BUDGET",
          "SPEND_LIMIT"
        ],
        "type": "string"
      },
      "budgets__CreateAuthorizationSettings": {
        "properties": {
          "authorization_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__AuthorizationType"
              },
              {
                "description": "\nWhether authorizations will decline based on available balance.\n"
              }
            ]
          },
          "base_limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__Money"
              },
              {
                "description": "\nBase input limit of the Spend Limit, without limit increases/rollovers/etc.\n"
              }
            ]
          },
          "limit_buffer_percentage": {
            "description": "\nThe percentage of flexible buffer on the limit as a 0-100 integer.\n",
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "rollover_refresh_rate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__RolloverRefreshRate"
              },
              {
                "description": "\nThe rollover refresh rate for this spend limit (the recurrence by which all rolled over unused funds within the cycle should no longer roll over to the next period).\n"
              }
            ]
          }
        },
        "required": [
          "authorization_type",
          "base_limit",
          "rollover_refresh_rate"
        ],
        "type": "object"
      },
      "budgets__CreateBudgetBlueprintRequest": {
        "description": "\nBlueprint for provisioning Spend Limits for a Budget Program.\n",
        "properties": {
          "description": {
            "description": "\nDescription of what the Spend Limit is used for.\n",
            "type": "string"
          },
          "end_date": {
            "description": "\nThe UTC date when the Spend Limit should stop counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "limit": {
            "$ref": "#/components/schemas/budgets__Money"
          },
          "limit_type": {
            "$ref": "#/components/schemas/budgets__LimitType"
          },
          "limit_visibility": {
            "$ref": "#/components/schemas/budgets__BudgetLimitVisibilityType"
          },
          "name": {
            "description": "\nName for the Spend Limit.\n",
            "type": "string"
          },
          "owner_user_ids": {
            "description": "\nUser IDs of the owners of the Spend Limit.\n",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "parent_budget_id": {
            "description": "\nID of parent Budget.\n",
            "type": "string"
          },
          "period_type": {
            "$ref": "#/components/schemas/budgets__PeriodType"
          },
          "spend_type": {
            "$ref": "#/components/schemas/budgets__SpendType"
          },
          "start_date": {
            "description": "\nThe UTC date when the Spend Limit should start counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "description",
          "limit",
          "limit_type",
          "limit_visibility",
          "name",
          "parent_budget_id",
          "period_type",
          "spend_type"
        ],
        "type": "object"
      },
      "budgets__CreateBudgetProgramRequest": {
        "description": "\nBudget Program used to create Spend Limits for eligible users.\n",
        "properties": {
          "budget_blueprints": {
            "items": {
              "$ref": "#/components/schemas/budgets__CreateBudgetBlueprintRequest"
            },
            "type": "array"
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "employee_filter": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__EmployeeFilter"
              }
            ],
            "nullable": true
          },
          "existing_budget_ids": {
            "description": "\nIDs for existing Spend Limits associated with this Budget Program.\n",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "budget_blueprints",
          "name"
        ],
        "type": "object"
      },
      "budgets__CreateBudgetRequest": {
        "properties": {
          "description": {
            "description": "\nDescription of what the Spend Limit is used for.\n",
            "type": "string"
          },
          "end_date": {
            "description": "\nThe UTC date when the Spend Limit should stop counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "entity_id": {
            "nullable": true,
            "type": "string"
          },
          "limit": {
            "$ref": "#/components/schemas/budgets__Money"
          },
          "limit_type": {
            "$ref": "#/components/schemas/budgets__LimitType"
          },
          "limit_visibility": {
            "$ref": "#/components/schemas/budgets__BudgetLimitVisibilityType"
          },
          "member_user_ids": {
            "description": "\nUser IDs of the members of the Spend Limit.\n",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "name": {
            "description": "\nName for the Spend Limit.\n",
            "type": "string"
          },
          "owner_user_ids": {
            "description": "\nUser IDs of the owners of the Spend Limit.\n",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "parent_budget_id": {
            "description": "\nID of parent Budget.\n",
            "type": "string"
          },
          "period_type": {
            "$ref": "#/components/schemas/budgets__PeriodType"
          },
          "policy_id": {
            "nullable": true,
            "type": "string"
          },
          "spend_type": {
            "$ref": "#/components/schemas/budgets__SpendType"
          },
          "start_date": {
            "description": "\nThe UTC date when the Spend Limit should start counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "description",
          "limit",
          "limit_type",
          "limit_visibility",
          "name",
          "parent_budget_id",
          "period_type",
          "spend_type"
        ],
        "type": "object"
      },
      "budgets__CreateSpendBudgetRequest": {
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/budgets__Money"
          },
          "description": {
            "description": "\nDescription of what the Budget is used for.\n",
            "type": "string"
          },
          "end_date": {
            "description": "\nThe date when the Budget should stop counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "limit_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__LimitType_3"
              },
              {
                "description": "\nWhether the Budget amount blocks spend. `HARD` is rejected; use `/v2/spend_limits` for hard-auth limits.\n"
              }
            ],
            "deprecated": true,
            "nullable": true
          },
          "name": {
            "description": "\nName for the Budget.\n",
            "type": "string"
          },
          "owner_user_ids": {
            "description": "\nUser IDs of the owners of the Budget.\n",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "parent_budget_id": {
            "description": "\nID of parent Budget.\n",
            "type": "string"
          },
          "period_recurrence_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__PeriodRecurrenceType"
              },
              {
                "description": "\nPeriod type of the Budget e.g. MONTHLY.\n"
              }
            ]
          },
          "start_date": {
            "description": "\nThe date when the Budget should start counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "amount",
          "description",
          "name",
          "parent_budget_id",
          "period_recurrence_type"
        ],
        "type": "object"
      },
      "budgets__CreateSpendLimitRequest": {
        "properties": {
          "authorization_settings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__CreateAuthorizationSettings"
              },
              {
                "description": "\nSpend authorization settings.\n"
              }
            ]
          },
          "authorization_visibility": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__AuthorizationVisibility"
              },
              {
                "description": "\nDescribes if the limit of the Spend Limit is visible to all members, or just controllers, bookkeepers, and owners (direct or ancestral).\n"
              }
            ]
          },
          "auto_create_limit_cards_setting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__AutoCreateLimitCardsSetting"
              },
              {
                "description": "\nSetting for how auto limit card creation works for members.\n"
              }
            ]
          },
          "auto_transfer_cards_setting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__AutoTransferCardsSetting"
              },
              {
                "description": "\nSetting for how auto transfer works for virtual cards.\n"
              }
            ]
          },
          "department_id": {
            "description": "\nThe department ID to which Spend Limit expenses will be attributed.\n",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": "\nDescription of what the Spend Limit is used for.\n",
            "nullable": true,
            "type": "string"
          },
          "end_date": {
            "description": "\nThe date when the Spend Limit should expire.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "expense_policy_id": {
            "description": "\nThe ID of the expense policy corresponding to this Spend Limit.\n",
            "type": "string"
          },
          "expense_visibility": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__ExpenseVisibility"
              },
              {
                "description": "\nWhether or not expense related to this Spend Limit should be viewable to all members.\n"
              }
            ]
          },
          "legal_entity_id": {
            "description": "\nThe legal entity ID to which Spend Limit expenses will be attributed. If not set, expenses will be attributed to the spending user's entity.\n",
            "nullable": true,
            "type": "string"
          },
          "limit_approval_policy_id": {
            "description": "\nThe ID of the policy for limit increase approval requests. Meant to replace limit_increase_request_policy_id.\n",
            "nullable": true,
            "type": "string"
          },
          "limit_increase_request_policy_id": {
            "description": "\nThe ID of the policy for limit increase requests for this Spend Limit.\n",
            "nullable": true,
            "type": "string"
          },
          "limit_increase_setting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__LimitIncreaseSetting"
              },
              {
                "description": "\nWhether or not members can request limit increases.\n"
              }
            ]
          },
          "member_user_ids": {
            "description": "\nUser IDs of the members of the Spend Limit.\n",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "name": {
            "description": "\nName for the Spend Limit.\n",
            "type": "string"
          },
          "owner_user_ids": {
            "description": "\nUser IDs of the owners of the Spend Limit.\n",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "parent_budget_id": {
            "description": "\nID of parent Budget.\n",
            "nullable": true,
            "type": "string"
          },
          "period_recurrence_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__SpendLimitPeriodRecurrenceType"
              },
              {
                "description": "\nPeriod type of the Spend Limit e.g. MONTHLY.\n"
              }
            ]
          },
          "spend_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__SpendType"
              },
              {
                "description": "\nWhether this Spend Limit only can be spent from by cards provisioned by this Spend Limit. \n"
              }
            ]
          },
          "start_date": {
            "description": "\nThe date when the Spend Limit should start counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "transaction_limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__Money"
              },
              {
                "description": "\nThe transaction limit that this Spend Limit will enforce.\n"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "authorization_settings",
          "authorization_visibility",
          "auto_create_limit_cards_setting",
          "auto_transfer_cards_setting",
          "expense_policy_id",
          "expense_visibility",
          "limit_increase_setting",
          "name",
          "period_recurrence_type",
          "spend_type"
        ],
        "type": "object"
      },
      "budgets__EmployeeFilter": {
        "description": "\nA filter used to determine if a user adheres to a Budget Program.\n",
        "properties": {
          "employment_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__EmploymentStatus"
              }
            ],
            "nullable": true
          },
          "employment_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__EmploymentType"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "budgets__EmploymentStatus": {
        "description": "\nA filter used to determine if a user adheres to a Budget Program.\n",
        "enum": [
          "EMPLOYMENT_STATUS_ACTIVE",
          "EMPLOYMENT_STATUS_INACTIVE",
          "EMPLOYMENT_STATUS_PENDING"
        ],
        "type": "string"
      },
      "budgets__EmploymentType": {
        "description": "\nWhat kind of employment the employee has.\n",
        "enum": [
          "EMPLOYMENT_TYPE_FULL_TIME",
          "EMPLOYMENT_TYPE_PART_TIME",
          "EMPLOYMENT_TYPE_CONTRACTOR",
          "EMPLOYMENT_TYPE_INTERN",
          "EMPLOYMENT_TYPE_FREELANCE"
        ],
        "type": "string"
      },
      "budgets__ExpenseVisibility": {
        "description": "\nWhether or not expense related to this Spend Limit should be viewable to all members.\n",
        "enum": [
          "SHARED",
          "PRIVATE"
        ],
        "type": "string"
      },
      "budgets__LimitIncreaseSetting": {
        "description": "\nWhether or not members can request limit increases.\n",
        "enum": [
          "ENABLED",
          "DISABLED"
        ],
        "type": "string"
      },
      "budgets__LimitType": {
        "description": "\nWhether the Spend Limit's limit blocks spend.\n",
        "enum": [
          "HARD",
          "SOFT"
        ],
        "type": "string"
      },
      "budgets__LimitType_1": {
        "description": "\nWhether the Budget amount blocks spend. `HARD` is rejected; use `/v2/spend_limits` for hard-auth limits.\n",
        "enum": [
          "HARD",
          "SOFT"
        ],
        "type": "string"
      },
      "budgets__LimitType_3": {
        "description": "\nWhether the Budget amount blocks spend. `HARD` is rejected; use `/v2/spend_limits` for hard-auth limits.\n",
        "enum": [
          "HARD",
          "SOFT"
        ],
        "type": "string"
      },
      "budgets__LimitType_4": {
        "description": "\nWhether the Budget amount blocks spend. `HARD` is rejected; use `/v2/spend_limits` for hard-auth limits.\n",
        "enum": [
          "HARD",
          "SOFT"
        ],
        "type": "string"
      },
      "budgets__MerchantCategory": {
        "enum": [
          "ADVERTISING_MARKETING",
          "GROCERY",
          "TELEPHONY",
          "OFFICE_SUPPLIES",
          "PRIVATE_AIR_TRAVEL",
          "CLOTHING",
          "CAR_RENTAL",
          "VEHICLE_EXPENSES",
          "RESTAURANTS",
          "GAMBLING",
          "FLOWERS",
          "ELECTRONICS",
          "LEGAL_SERVICES",
          "UTILITIES",
          "FURNITURE",
          "BARS_NIGHTLIFE",
          "LAUNDRY",
          "EVENT_EXPENSES",
          "SHIPPING",
          "OTHER_TRAVEL_EXPENSES",
          "CHARITY",
          "SOFTWARE",
          "LODGING",
          "FACILITIES_EXPENSES",
          "SERVERS",
          "CONFERENCES",
          "FOOD_DELIVERY",
          "RENT",
          "AIRLINE_EXPENSES",
          "OTHER_BUSINESS_EXPENSES",
          "BANK_FINANCIAL_FEES",
          "BOOKS_NEWSPAPERS",
          "CONSULTANT_CONTRACTOR",
          "CORPORATE_INSURANCE",
          "DIGITAL_GOODS",
          "LICENSES_TAXES",
          "GAS_FUEL",
          "GENERAL_MERCHANDISE",
          "MEDICAL",
          "MEMBERSHIPS_CLUBS",
          "PARKING_EXPENSES",
          "POLITICAL_DONATIONS",
          "PUBLIC_TRANSPORTATION",
          "RECURRING_SOFTWARE_SAAS",
          "RIDESHARE_TAXI",
          "TOLL_BRIDGE_FEES",
          "TRAINING_EDUCATION",
          "TRAVEL"
        ],
        "type": "string"
      },
      "budgets__MerchantCategoryControls": {
        "properties": {
          "allowed_merchant_categories": {
            "items": {
              "$ref": "#/components/schemas/budgets__MerchantCategory"
            },
            "nullable": true,
            "type": "array"
          },
          "blocked_merchant_categories": {
            "items": {
              "$ref": "#/components/schemas/budgets__MerchantCategory"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "budgets__Money": {
        "description": "\nMoney fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination\nof the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700.\n",
        "properties": {
          "amount": {
            "description": "The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.",
            "example": 700,
            "format": "int64",
            "type": "integer"
          },
          "currency": {
            "default": "USD",
            "description": "The type of currency, in ISO 4217 format.",
            "example": "USD",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "amount"
        ],
        "type": "object"
      },
      "budgets__Page_BudgetProgram_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/budgets__BudgetProgram"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "budgets__Page_Budget_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/budgets__Budget"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "budgets__Page_SpendBudget_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/budgets__SpendBudget"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "budgets__Page_SpendLimit_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/budgets__SpendLimit"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "budgets__PeriodRecurrenceType": {
        "description": "\nPeriod type of the Budget e.g. MONTHLY.\n",
        "enum": [
          "WEEKLY",
          "MONTHLY",
          "QUARTERLY",
          "YEARLY",
          "ONE_TIME"
        ],
        "type": "string"
      },
      "budgets__PeriodType": {
        "description": "\nPeriod type of the Spend Limit e.g. MONTHLY.\n",
        "enum": [
          "WEEKLY",
          "MONTHLY",
          "QUARTERLY",
          "YEARLY",
          "ONE_TIME"
        ],
        "type": "string"
      },
      "budgets__RolloverRefreshRate": {
        "description": "\nThe rollover refresh rate for this spend limit (the recurrence by which all rolled over unused funds within the cycle should no longer roll over to the next period).\n",
        "enum": [
          "OFF",
          "NEVER",
          "PER_MONTH",
          "PER_QUARTER",
          "PER_YEAR"
        ],
        "type": "string"
      },
      "budgets__SpendBudget": {
        "properties": {
          "account_id": {
            "description": "\nThe Brex account this Budget belongs to.\n",
            "type": "string"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__Money"
              }
            ],
            "nullable": true
          },
          "budget_id": {
            "description": "\nUnique ID for the Budget.\n",
            "type": "string"
          },
          "description": {
            "description": "\nDescription of what the Budget is used for.\n",
            "nullable": true,
            "type": "string"
          },
          "end_date": {
            "description": "\nThe date when the Budget should stop counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "limit_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__LimitType_1"
              },
              {
                "description": "\nWhether the Budget amount blocks spend. `HARD` is rejected; use `/v2/spend_limits` for hard-auth limits.\n"
              }
            ],
            "deprecated": true,
            "nullable": true
          },
          "name": {
            "description": "\nName for the Budget.\n",
            "type": "string"
          },
          "owner_user_ids": {
            "description": "\nUser IDs of the owners of the Budget.\n",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "parent_budget_id": {
            "description": "\nID of parent Budget.\n",
            "nullable": true,
            "type": "string"
          },
          "period_recurrence_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__PeriodRecurrenceType"
              },
              {
                "description": "\nPeriod type of the Budget e.g. MONTHLY.\n"
              }
            ]
          },
          "spend_budget_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__SpendBudgetStatus"
              },
              {
                "description": "\nStatus of the Budget e.g. ACTIVE.\n"
              }
            ]
          },
          "start_date": {
            "description": "\nThe date when the Budget should start counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "budget_id",
          "name",
          "owner_user_ids",
          "period_recurrence_type",
          "spend_budget_status"
        ],
        "type": "object"
      },
      "budgets__SpendBudgetStatus": {
        "description": "\nStatus of the Budget e.g. ACTIVE.\n",
        "enum": [
          "ACTIVE",
          "ARCHIVED",
          "DELETED",
          "EXPIRED"
        ],
        "type": "string"
      },
      "budgets__SpendLimit": {
        "properties": {
          "account_id": {
            "description": "\nThe Brex account this Spend Limit belongs to.\n",
            "type": "string"
          },
          "authorization_settings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__AuthorizationSettings"
              },
              {
                "description": "\nSpend authorization settings.\n"
              }
            ],
            "nullable": true
          },
          "authorization_visibility": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__AuthorizationVisibility"
              },
              {
                "description": "\nDescribes if the limit of the Spend Limit is visible to all members, or just controllers, bookkeepers, and owners (direct or ancestral).\n"
              }
            ]
          },
          "auto_create_limit_cards_setting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__AutoCreateLimitCardsSetting"
              },
              {
                "description": "\nSetting for how auto limit card creation works for members.\n"
              }
            ]
          },
          "auto_transfer_cards_setting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__AutoTransferCardsSetting"
              },
              {
                "description": "\nSetting for how auto transfer works for virtual cards.\n"
              }
            ]
          },
          "current_period_balance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__SpendLimitPeriodBalance"
              }
            ],
            "nullable": true
          },
          "department_id": {
            "description": "\nThe department ID to which Spend Limit expenses will be attributed.\n",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": "\nDescription of what the Spend Limit is used for.\n",
            "nullable": true,
            "type": "string"
          },
          "end_date": {
            "description": "\nThe date when the Spend Limit should expire.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "end_time_utc": {
            "description": "\nThe UTC time when the Spend Limit should expire.\n",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "expense_policy_id": {
            "description": "\nThe ID of the expense policy corresponding to this Spend Limit.\n",
            "type": "string"
          },
          "expense_visibility": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__ExpenseVisibility"
              },
              {
                "description": "\nWhether or not expense related to this Spend Limit should be viewable to all members.\n"
              }
            ]
          },
          "id": {
            "description": "\nUnique ID for the Spend Limit.\n",
            "type": "string"
          },
          "legal_entity_id": {
            "description": "\nThe legal entity ID to which Spend Limit expenses will be attributed. If not set, expenses will be attributed to the spending user's entity.\n",
            "nullable": true,
            "type": "string"
          },
          "limit_approval_policy_id": {
            "description": "\nThe ID of the policy for limit increase approval requests. Meant to replace limit_increase_request_policy_id.\n",
            "nullable": true,
            "type": "string"
          },
          "limit_increase_request_policy_id": {
            "description": "\nThe ID of the policy for limit increase requests for this Spend Limit.\n",
            "nullable": true,
            "type": "string"
          },
          "limit_increase_setting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__LimitIncreaseSetting"
              },
              {
                "description": "\nWhether or not members can request limit increases.\n"
              }
            ]
          },
          "member_user_ids": {
            "description": "\nUser IDs of the members of the Spend Limit.\n",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "merchant_category_controls": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__MerchantCategoryControls"
              },
              {
                "description": "\nThe Spend Limit's merchant category controls.\n"
              }
            ],
            "nullable": true
          },
          "name": {
            "description": "\nName for the Spend Limit.\n",
            "type": "string"
          },
          "owner_user_ids": {
            "description": "\nUser IDs of the owners of the Spend Limit.\n",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "parent_budget_id": {
            "description": "\nID of parent Budget.\n",
            "nullable": true,
            "type": "string"
          },
          "period_recurrence_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__SpendLimitPeriodRecurrenceType"
              },
              {
                "description": "\nPeriod type of the Spend Limit e.g. MONTHLY.\n"
              }
            ]
          },
          "spend_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__SpendType"
              },
              {
                "description": "\nWhether this Spend Limit only can be spent from by cards provisioned by this Spend Limit. \n"
              }
            ]
          },
          "start_date": {
            "description": "\nThe date when the Spend Limit should start counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "start_time_utc": {
            "description": "\nThe UTC time when the Spend Limit should start counting.\n",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__SpendLimitStatus"
              },
              {
                "description": "\nStatus of the Spend Limit e.g. ACTIVE.\n"
              }
            ]
          },
          "transaction_limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__Money"
              },
              {
                "description": "\nThe transaction limit that this Spend Limit will enforce.\n"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "account_id",
          "authorization_visibility",
          "auto_create_limit_cards_setting",
          "auto_transfer_cards_setting",
          "expense_policy_id",
          "expense_visibility",
          "id",
          "limit_increase_setting",
          "member_user_ids",
          "name",
          "owner_user_ids",
          "period_recurrence_type",
          "spend_type",
          "status"
        ],
        "type": "object"
      },
      "budgets__SpendLimitPeriodBalance": {
        "properties": {
          "amount_spent": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__Money"
              }
            ],
            "nullable": true
          },
          "end_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "end_time": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "rollover_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__Money"
              }
            ],
            "nullable": true
          },
          "start_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "start_time": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "budgets__SpendLimitPeriodRecurrenceType": {
        "description": "\nPeriod type of the Spend Limit e.g. MONTHLY.\n",
        "enum": [
          "PER_WEEK",
          "PER_MONTH",
          "PER_QUARTER",
          "PER_YEAR",
          "ONE_TIME"
        ],
        "type": "string"
      },
      "budgets__SpendLimitStatus": {
        "description": "\nStatus of the Spend Limit e.g. ACTIVE.\n",
        "enum": [
          "ACTIVE",
          "EXPIRED",
          "ARCHIVED",
          "DELETED"
        ],
        "type": "string"
      },
      "budgets__SpendType": {
        "description": "\nWhether this Spend Limit only can be spent from by cards provisioned by this Spend Limit. \n",
        "enum": [
          "BUDGET_PROVISIONED_CARDS_ONLY",
          "NON_BUDGET_PROVISIONED_CARDS_ALLOWED"
        ],
        "type": "string"
      },
      "budgets__UpdateAuthorizationSettings": {
        "properties": {
          "authorization_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__AuthorizationType"
              },
              {
                "description": "\nWhether authorizations will decline based on available balance.\n"
              }
            ],
            "nullable": true
          },
          "base_limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__Money"
              },
              {
                "description": "\nBase input limit of the Spend Limit, without limit increases/rollovers/etc.\n"
              }
            ],
            "nullable": true
          },
          "limit_buffer_percentage": {
            "description": "\nThe percentage of flexible buffer on the limit as a 0-100 integer.\n",
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "rollover_refresh_rate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__RolloverRefreshRate"
              },
              {
                "description": "\nThe rollover refresh rate for this spend limit (the recurrence by which all rolled over unused funds within the cycle should no longer roll over to the next period).\n"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "budgets__UpdateBudgetBlueprintRequest": {
        "description": "\nBlueprint for provisioning Spend Limits for a Budget Program.\n",
        "properties": {
          "description": {
            "description": "\nDescription of what the Spend Limit is used for.\n",
            "nullable": true,
            "type": "string"
          },
          "end_date": {
            "description": "\nThe UTC date when the Spend Limit should stop counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "\nID of budget blueprint to update, omit if adding new budget blueprint to budget program.\n",
            "nullable": true,
            "type": "string"
          },
          "limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__Money"
              }
            ],
            "nullable": true
          },
          "limit_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__LimitType"
              }
            ],
            "nullable": true
          },
          "name": {
            "description": "\nName for the Spend Limit.\n",
            "nullable": true,
            "type": "string"
          },
          "owner_user_ids": {
            "description": "\nUser IDs of the owners of the Spend Limit.\n",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "parent_budget_id": {
            "description": "\nID of parent Budget.\n",
            "nullable": true,
            "type": "string"
          },
          "period_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__PeriodType"
              }
            ],
            "nullable": true
          },
          "spend_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__SpendType"
              }
            ],
            "nullable": true
          },
          "start_date": {
            "description": "\nThe UTC date when the Spend Limit should start counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "budgets__UpdateBudgetProgramRequest": {
        "description": "\nBudget Program used to create Spend Limits for eligible users.\n",
        "properties": {
          "budget_blueprints": {
            "description": "\nThe Blueprints to update the budget program with. Blueprints without an ID are treated as new blueprints to be created.\nBlueprints that exist currently on the Budget Program, but are missing from the input, will be deleted.\n",
            "items": {
              "$ref": "#/components/schemas/budgets__UpdateBudgetBlueprintRequest"
            },
            "nullable": true,
            "type": "array"
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "employee_filter": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__EmployeeFilter"
              }
            ],
            "nullable": true
          },
          "existing_budget_ids": {
            "description": "\nIDs for existing Spend Limits associated with this Budget Program.\n",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "name": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "budgets__UpdateBudgetRequest": {
        "properties": {
          "description": {
            "description": "\nDescription of what the Spend Limit is used for.\n",
            "nullable": true,
            "type": "string"
          },
          "end_date": {
            "description": "\nThe UTC date when the Spend Limit should stop counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__Money"
              }
            ],
            "nullable": true
          },
          "limit_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__LimitType"
              }
            ],
            "nullable": true
          },
          "limit_visibility": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__BudgetLimitVisibilityType"
              }
            ],
            "nullable": true
          },
          "member_user_ids": {
            "description": "\nUser IDs of the members of the Spend Limit.\n",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "name": {
            "description": "\nName for the Spend Limit.\n",
            "nullable": true,
            "type": "string"
          },
          "owner_user_ids": {
            "description": "\nUser IDs of the owners of the Spend Limit.\n",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "period_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__PeriodType"
              }
            ],
            "nullable": true
          },
          "spend_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__SpendType"
              }
            ],
            "nullable": true
          },
          "start_date": {
            "description": "\nThe UTC date when the Spend Limit should start counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "budgets__UpdateSpendBudgetRequest": {
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__Money"
              },
              {
                "description": "\nTarget amount for the Budget to track.\n"
              }
            ],
            "nullable": true
          },
          "description": {
            "description": "\nDescription of what the Budget is used for.\n",
            "nullable": true,
            "type": "string"
          },
          "end_date": {
            "description": "\nThe date when the Budget should stop counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "limit_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__LimitType_4"
              },
              {
                "description": "\nWhether the Budget amount blocks spend. `HARD` is rejected; use `/v2/spend_limits` for hard-auth limits.\n"
              }
            ],
            "deprecated": true,
            "nullable": true
          },
          "name": {
            "description": "\nName for the Budget.\n",
            "nullable": true,
            "type": "string"
          },
          "owner_user_ids": {
            "description": "\nUser IDs of the owners of the Budget.\n",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "parent_budget_id": {
            "description": "\nID of parent Budget.\n",
            "nullable": true,
            "type": "string"
          },
          "period_recurrence_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__PeriodRecurrenceType"
              },
              {
                "description": "\nPeriod type of the Budget e.g. MONTHLY.\n"
              }
            ],
            "nullable": true
          },
          "start_date": {
            "description": "\nThe date when the Budget should start counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "budgets__UpdateSpendLimitRequest": {
        "properties": {
          "authorization_settings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__UpdateAuthorizationSettings"
              },
              {
                "description": "\nSpend authorization settings.\n"
              }
            ],
            "nullable": true
          },
          "authorization_visibility": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__AuthorizationVisibility"
              },
              {
                "description": "\nDescribes if the limit of the Spend Limit is visible to all members, or just controllers, bookkeepers, and owners (direct or ancestral).\n"
              }
            ],
            "nullable": true
          },
          "auto_create_limit_cards_setting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__AutoCreateLimitCardsSetting"
              },
              {
                "description": "\nSetting for how auto limit card creation works for members.\n"
              }
            ],
            "nullable": true
          },
          "auto_transfer_cards_setting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__AutoTransferCardsSetting"
              },
              {
                "description": "\nSetting for how auto transfer works for virtual cards.\n"
              }
            ],
            "nullable": true
          },
          "department_id": {
            "description": "\nThe department ID to which Spend Limit expenses will be attributed.\n",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": "\nDescription of what the Spend Limit is used for.\n",
            "nullable": true,
            "type": "string"
          },
          "end_date": {
            "description": "\nThe date when the Spend Limit should expire.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "expense_policy_id": {
            "description": "\nThe ID of the expense policy corresponding to this Spend Limit.\n",
            "nullable": true,
            "type": "string"
          },
          "expense_visibility": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__ExpenseVisibility"
              },
              {
                "description": "\nWhether or not expense related to this Spend Limit should be viewable to all members.\n"
              }
            ],
            "nullable": true
          },
          "legal_entity_id": {
            "description": "\nThe legal entity ID to which Spend Limit expenses will be attributed. If not set, expenses will be attributed to the spending user's entity.\n",
            "nullable": true,
            "type": "string"
          },
          "limit_approval_policy_id": {
            "description": "\nThe ID of the policy for limit increase approval requests. Meant to replace limit_increase_request_policy_id.\n",
            "nullable": true,
            "type": "string"
          },
          "limit_increase_request_policy_id": {
            "description": "\nThe ID of the policy for limit increase requests for this Spend Limit.\n",
            "nullable": true,
            "type": "string"
          },
          "limit_increase_setting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__LimitIncreaseSetting"
              },
              {
                "description": "\nWhether or not members can request limit increases.\n"
              }
            ],
            "nullable": true
          },
          "member_user_ids": {
            "description": "\nUser IDs of the members of the Spend Limit.\n",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "merchant_category_controls": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__MerchantCategoryControls"
              },
              {
                "description": "\nThe Spend Limit's merchant category controls.\n"
              }
            ],
            "nullable": true
          },
          "name": {
            "description": "\nName for the Spend Limit.\n",
            "nullable": true,
            "type": "string"
          },
          "owner_user_ids": {
            "description": "\nUser IDs of the owners of the Spend Limit.\n",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "period_recurrence_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__SpendLimitPeriodRecurrenceType"
              },
              {
                "description": "\nPeriod type of the Spend Limit e.g. MONTHLY.\n"
              }
            ],
            "nullable": true
          },
          "set_end_date_null": {
            "description": "\nSet the date when the Spend Limit should expire to null.\n",
            "nullable": true,
            "type": "boolean"
          },
          "set_start_date_null": {
            "description": "\nSet the date when the Spend Limit should start counting to null.\n",
            "nullable": true,
            "type": "boolean"
          },
          "set_transaction_limit_null": {
            "description": "\n    Set the transaction limit that this Spend Limit will enforce to null.\n",
            "nullable": true,
            "type": "boolean"
          },
          "spend_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__SpendType"
              },
              {
                "description": "\nWhether this Spend Limit only can be spent from by cards provisioned by this Spend Limit. \n"
              }
            ],
            "nullable": true
          },
          "start_date": {
            "description": "\nThe date when the Spend Limit should start counting.\n",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__SpendLimitStatus"
              },
              {
                "description": "\nStatus of the Spend Limit e.g. ACTIVE.\n"
              }
            ],
            "nullable": true
          },
          "transaction_limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/budgets__Money"
              },
              {
                "description": "\nThe transaction limit that this Spend Limit will enforce.\n"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "expenses__AddendumData": {
        "discriminator": {
          "mapping": {
            "ATTENDEES": "#/components/schemas/expenses__AttendeesAddendum",
            "COMMON_DATA_REQUIREMENTS": "#/components/schemas/expenses__CommonDataRequirementsAddendum",
            "GENERAL_TICKET_INFORMATION": "#/components/schemas/expenses__GeneralTicketInformationAddendum",
            "LODGING": "#/components/schemas/expenses__LodgingAddendum",
            "TRAIN_DATA": "#/components/schemas/expenses__TrainDataAddendum",
            "TRIP_LEG_DATA": "#/components/schemas/expenses__TripLegDataAddendum"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/expenses__CommonDataRequirementsAddendum"
          },
          {
            "$ref": "#/components/schemas/expenses__LodgingAddendum"
          },
          {
            "$ref": "#/components/schemas/expenses__GeneralTicketInformationAddendum"
          },
          {
            "$ref": "#/components/schemas/expenses__TripLegDataAddendum"
          },
          {
            "$ref": "#/components/schemas/expenses__TrainDataAddendum"
          },
          {
            "$ref": "#/components/schemas/expenses__AttendeesAddendum"
          }
        ],
        "type": "object"
      },
      "expenses__Address": {
        "description": "Company business address (must be in the US; no PO box or virtual/forwarding addresses allowed).",
        "properties": {
          "city": {
            "description": "City, district, suburb, town, or village.",
            "nullable": true,
            "type": "string"
          },
          "country": {
            "description": "Two-letter country code (ISO 3166-1 alpha-2).",
            "nullable": true,
            "type": "string"
          },
          "line1": {
            "description": "Address line 1, no PO Box.",
            "nullable": true,
            "type": "string"
          },
          "line2": {
            "description": "Address line 2 (e.g., apartment, suite, unit, or building).",
            "nullable": true,
            "type": "string"
          },
          "phone_number": {
            "description": "Phone number.",
            "nullable": true,
            "type": "string"
          },
          "postal_code": {
            "description": "ZIP or postal code.",
            "nullable": true,
            "type": "string"
          },
          "state": {
            "description": "For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "expenses__ApprovalStepDetails": {
        "properties": {
          "copilot_reviewer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__User"
              }
            ],
            "nullable": true
          },
          "pending_reviewers": {
            "items": {
              "$ref": "#/components/schemas/expenses__User"
            },
            "nullable": true,
            "type": "array"
          },
          "resolved_at": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "reviewer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__User"
              }
            ],
            "nullable": true
          },
          "status": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "expenses__AttendeesAddendum": {
        "description": "The people the expense was for, such as at a business meal.",
        "properties": {
          "external_attendees": {
            "description": "Attendees who are not Brex users.",
            "items": {
              "$ref": "#/components/schemas/expenses__AttendeesAddendum.ExternalAttendee"
            },
            "type": "array"
          },
          "internal_attendees": {
            "description": "Attendees who are users on the same Brex account as the expense.",
            "items": {
              "$ref": "#/components/schemas/expenses__AttendeesAddendum.InternalAttendee"
            },
            "type": "array"
          },
          "type": {
            "enum": [
              "ATTENDEES"
            ],
            "type": "string"
          }
        },
        "required": [
          "external_attendees",
          "internal_attendees",
          "type"
        ],
        "type": "object"
      },
      "expenses__AttendeesAddendum.ExternalAttendee": {
        "description": "An attendee who is not a Brex user.",
        "properties": {
          "company_name": {
            "description": "The attendee's company name.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "The ID of the external attendee.",
            "nullable": true,
            "type": "string"
          },
          "is_government": {
            "description": "Whether the attendee works for a government.",
            "nullable": true,
            "type": "boolean"
          },
          "name": {
            "description": "The attendee's name.",
            "type": "string"
          },
          "title": {
            "description": "The attendee's job title.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "expenses__AttendeesAddendum.InternalAttendee": {
        "description": "An attendee who is a Brex user on the same account.",
        "properties": {
          "customer_user_id": {
            "description": "The user ID of the attendee.",
            "type": "string"
          },
          "first_name": {
            "description": "The attendee's first name.",
            "nullable": true,
            "type": "string"
          },
          "last_name": {
            "description": "The attendee's last name.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "customer_user_id"
        ],
        "type": "object"
      },
      "expenses__BooleanListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "Boolean list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "type": "boolean"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "BOOLEAN"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Boolean list value",
        "type": "object"
      },
      "expenses__BooleanValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "Boolean value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "nullable": true,
            "type": "boolean"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "BOOLEAN"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Boolean value",
        "type": "object"
      },
      "expenses__Budget": {
        "properties": {
          "id": {
            "description": "\nUnique ID for the Budget.\n",
            "type": "string"
          },
          "name": {
            "description": "\nName for the Budget.\n",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "expenses__CardPaymentInstrument": {
        "allOf": [
          {
            "properties": {
              "type": {
                "$ref": "#/components/schemas/expenses__PaymentInstrumentType"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "id": {
                "description": "Unique ID for the card.",
                "type": "string"
              },
              "type": {
                "$ref": "#/components/schemas/expenses__PaymentInstrumentType"
              }
            },
            "required": [
              "id",
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "expenses__Category": {
        "description": "The category of expenses.",
        "enum": [
          "ADVERTISING_AND_MARKETING",
          "GROCERY",
          "TELEPHONY",
          "OFFICE_SUPPLIES",
          "PRIVATE_AIR_TRAVEL",
          "CLOTHING",
          "CAR_RENTAL",
          "VEHICLE_EXPENSES",
          "RESTAURANTS",
          "GAMBLING",
          "FLOWERS",
          "ELECTRONICS",
          "LEGAL_SERVICES",
          "UTILITIES",
          "FURNITURE",
          "BARS_AND_NIGHTLIFE",
          "LAUNDRY",
          "EVENT_EXPENSES",
          "SHIPPING",
          "OTHER_TRAVEL_EXPENSES",
          "CHARITY",
          "SOFTWARE_NON_RECURRING",
          "LODGING",
          "FACILITIES_EXPENSES",
          "SERVERS",
          "CONFERENCES",
          "FOOD_DELIVERY",
          "RENT",
          "AIRLINE_EXPENSES",
          "OTHER_BUSINESS_EXPENSES",
          "BANK_AND_FINANCIAL_FEES",
          "BOOKS_AND_NEWSPAPERS",
          "CONSULTANT_AND_CONTRACTOR",
          "CORPORATE_INSURANCE",
          "DIGITAL_GOODS",
          "FEES_AND_LICENSES_AND_TAXES",
          "GAS_AND_FUEL",
          "GENERAL_MERCHANDISE",
          "MEDICAL",
          "MEMBERSHIPS_AND_CLUBS",
          "PARKING_EXPENSES",
          "POLITICAL_DONATIONS",
          "PUBLIC_TRANSPORTATION",
          "RECURRING_SOFTWARE_AND_SAAS",
          "RIDESHARE_AND_TAXI",
          "TOLL_AND_BRIDGE_FEES",
          "TRAINING_AND_EDUCATION",
          "TRAVEL_WIFI"
        ],
        "type": "string"
      },
      "expenses__CommonDataRequirementsAddendum": {
        "description": "Purchase data that card networks send with a clearing (Level 2 data).",
        "properties": {
          "card_acceptor_reference_number": {
            "description": "The merchant's reference number for the transaction. Omitted when the network didn't send one.",
            "nullable": true,
            "type": "string"
          },
          "customer_code": {
            "description": "The code the cardholder gave the merchant at purchase, such as a purchase order or order number. Omitted when the network didn't send one.",
            "nullable": true,
            "type": "string"
          },
          "type": {
            "enum": [
              "COMMON_DATA_REQUIREMENTS"
            ],
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "expenses__CostCenter": {
        "description": "The cost center associated with the expense.",
        "properties": {
          "id": {
            "description": "The unique identifier for the cost center.",
            "type": "string"
          },
          "name": {
            "description": "The name of the cost center.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "expenses__CreateAsyncFileUploadResponse": {
        "description": "The pre-signed file upload URI and unique identifier of the request.\n",
        "properties": {
          "id": {
            "description": "The unique identifier for the request.",
            "type": "string"
          },
          "uri": {
            "description": "The pre-signed S3 link that should be used to upload the file.\nThe maximum size accepted for this document is 50 MB.\n",
            "type": "string"
          }
        },
        "required": [
          "id",
          "uri"
        ],
        "type": "object"
      },
      "expenses__CustomField": {
        "properties": {
          "display_name": {
            "description": "The display name of the custom field.",
            "nullable": true,
            "type": "string"
          },
          "key": {
            "description": "The key of the custom field.",
            "type": "string"
          },
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
              },
              {
                "description": "The value of the custom field.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/expenses__StringValue"
                  },
                  {
                    "$ref": "#/components/schemas/expenses__DecimalValue"
                  },
                  {
                    "$ref": "#/components/schemas/expenses__BooleanValue"
                  },
                  {
                    "$ref": "#/components/schemas/expenses__EnumValue"
                  },
                  {
                    "$ref": "#/components/schemas/expenses__TimestampValue"
                  },
                  {
                    "$ref": "#/components/schemas/expenses__DateValue"
                  },
                  {
                    "$ref": "#/components/schemas/expenses__MoneyValue"
                  },
                  {
                    "$ref": "#/components/schemas/expenses__OptionStringValue"
                  },
                  {
                    "$ref": "#/components/schemas/expenses__StringListValue"
                  },
                  {
                    "$ref": "#/components/schemas/expenses__DecimalListValue"
                  },
                  {
                    "$ref": "#/components/schemas/expenses__BooleanListValue"
                  },
                  {
                    "$ref": "#/components/schemas/expenses__EnumListValue"
                  },
                  {
                    "$ref": "#/components/schemas/expenses__TimestampListValue"
                  },
                  {
                    "$ref": "#/components/schemas/expenses__DateListValue"
                  },
                  {
                    "$ref": "#/components/schemas/expenses__MoneyListValue"
                  },
                  {
                    "$ref": "#/components/schemas/expenses__OptionStringListValue"
                  }
                ]
              }
            ]
          }
        },
        "required": [
          "key",
          "value"
        ],
        "type": "object"
      },
      "expenses__CustomField.ValueWrapper": {
        "description": "Base class for custom field values",
        "properties": {
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          },
          "value_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__CustomFieldValueType"
              },
              {
                "description": "The type of the custom field value."
              }
            ]
          }
        },
        "required": [
          "data_type",
          "value_type"
        ],
        "type": "object"
      },
      "expenses__CustomField.ValueWrapper.MultipleValueWrapper": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "Multiple value wrapper for custom fields",
        "properties": {
          "value_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__CustomFieldValueType"
              },
              {
                "description": "The type of the custom field value."
              }
            ]
          }
        },
        "required": [
          "value_type"
        ],
        "type": "object"
      },
      "expenses__CustomField.ValueWrapper.SingleValueWrapper": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "Single value wrapper for custom fields",
        "properties": {
          "value_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__CustomFieldValueType"
              },
              {
                "description": "The type of the custom field value."
              }
            ]
          }
        },
        "required": [
          "value_type"
        ],
        "type": "object"
      },
      "expenses__CustomFieldDataType": {
        "description": "The type of the custom field data.",
        "enum": [
          "STRING",
          "DECIMAL",
          "BOOLEAN",
          "ENUM",
          "TIMESTAMP",
          "DATE",
          "MONEY",
          "OPTION_STRING"
        ],
        "required": [
          "true"
        ],
        "type": "string"
      },
      "expenses__CustomFieldValueType": {
        "description": "The type of the custom field value.",
        "enum": [
          "SINGLE_VALUE",
          "LIST"
        ],
        "required": [
          "true"
        ],
        "type": "string"
      },
      "expenses__CustomerLocation": {
        "description": "The location associated with the expense.",
        "properties": {
          "id": {
            "description": "The unique identifier for the location.",
            "type": "string"
          },
          "name": {
            "description": "The name of the location.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "expenses__DateListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "Date list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "format": "date",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "DATE"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Date list value",
        "type": "object"
      },
      "expenses__DateValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "Date value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "DATE"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Date value",
        "type": "object"
      },
      "expenses__DecimalListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "Decimal list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "type": "number"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "DECIMAL"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Decimal list value",
        "type": "object"
      },
      "expenses__DecimalValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "Decimal value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "nullable": true,
            "type": "number"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "DECIMAL"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Decimal value",
        "type": "object"
      },
      "expenses__Department": {
        "description": "The department associated with the expense.",
        "properties": {
          "id": {
            "description": "The unique identifier for the department.",
            "type": "string"
          },
          "name": {
            "description": "The name of the department.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "expenses__EnumListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "Enum list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "format": "enum",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "ENUM"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Enum list value",
        "type": "object"
      },
      "expenses__EnumValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "Enum value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "format": "enum",
            "nullable": true,
            "type": "string"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "ENUM"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Enum value",
        "type": "object"
      },
      "expenses__ExpandableExpense": {
        "description": "The expense object that has expandable fields, e.g., `location`, `department`, `cost_center`, `merchant`, `receipts.download_uris`, `user`, `budget`, `payment`, `spending_entity`, and `policy`.",
        "properties": {
          "addenda": {
            "description": "Structured purchase data attached to the expense, returned only when `load_expense_addenda=true`. Omitted when the expense has no addenda.",
            "items": {
              "$ref": "#/components/schemas/expenses__ExpenseAddendum"
            },
            "nullable": true,
            "type": "array"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Location"
              }
            ],
            "nullable": true
          },
          "approved_at": {
            "description": "The time the expense is approved.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "billing_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Money"
              },
              {
                "description": "The billing amount of the expense is the amount that the entity is charged, on the entity's currency, for reimbursements or card spends."
              }
            ],
            "nullable": true
          },
          "billing_entity_id": {
            "description": "ID of the legal entity responsible for billing the expense.",
            "nullable": true,
            "type": "string"
          },
          "booking_id": {
            "description": "The booking ID associated with the expense if it is a trip expense.",
            "nullable": true,
            "type": "string"
          },
          "budget": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Budget"
              }
            ],
            "nullable": true
          },
          "budget_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Money"
              },
              {
                "description": "The budget amount of the expense is the amount that was incurred in the budget's currency"
              }
            ],
            "nullable": true
          },
          "budget_id": {
            "nullable": true,
            "type": "string"
          },
          "card_transaction_reference_id": {
            "description": "Reference identifier for the underlying card transaction, if applicable. Null for non-card expenses (e.g. reimbursements).",
            "nullable": true,
            "type": "string"
          },
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Category"
              }
            ],
            "nullable": true
          },
          "completion_date": {
            "description": "The time payment will be completed/is completed.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "cost_center": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__CostCenter"
              },
              {
                "description": "The cost center associated with the expense."
              }
            ],
            "nullable": true
          },
          "cost_center_id": {
            "nullable": true,
            "type": "string"
          },
          "custom_fields": {
            "description": "A list of custom field values associated with the expense.",
            "items": {
              "$ref": "#/components/schemas/expenses__CustomField"
            },
            "nullable": true,
            "type": "array"
          },
          "dashboard_url": {
            "description": "URL to view the expense in the Brex dashboard.",
            "type": "string"
          },
          "department": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Department"
              }
            ],
            "nullable": true
          },
          "department_id": {
            "nullable": true,
            "type": "string"
          },
          "expense_line_items": {
            "description": "The expense line items. Limited to 100 items.",
            "items": {
              "$ref": "#/components/schemas/expenses__ExpandableExpense"
            },
            "nullable": true,
            "type": "array"
          },
          "expense_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__ExpenseType"
              }
            ],
            "nullable": true
          },
          "exported_at": {
            "description": "Timestamp when the expense was exported to the accounting system.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Unique ID associated with the expense.",
            "type": "string"
          },
          "integration_billing_entity_id": {
            "description": "ID of the billing entity in accounting.",
            "nullable": true,
            "type": "string"
          },
          "integration_spending_entity_id": {
            "description": "ID of the spending entity in accounting.",
            "nullable": true,
            "type": "string"
          },
          "location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__CustomerLocation"
              },
              {
                "description": "The location associated with the expense."
              }
            ],
            "nullable": true
          },
          "location_id": {
            "nullable": true,
            "type": "string"
          },
          "memo": {
            "description": "The memo of the expense.",
            "nullable": true,
            "type": "string"
          },
          "merchant": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Merchant"
              }
            ],
            "nullable": true
          },
          "merchant_id": {
            "nullable": true,
            "type": "string"
          },
          "original_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Money"
              },
              {
                "description": "The original amount of the expense is the amount that the employee submitted or incurred for reimbursements or card spends."
              }
            ],
            "nullable": true
          },
          "payment": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Payment"
              }
            ],
            "nullable": true
          },
          "payment_posted_at": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "payment_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__ExpensePaymentStatus"
              }
            ],
            "nullable": true
          },
          "policy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Policy"
              },
              {
                "description": "The policy associated with the expense."
              }
            ],
            "nullable": true
          },
          "purchased_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Money"
              },
              {
                "description": "The purchased amount of the expense is the amount that's on the receipt."
              }
            ],
            "nullable": true
          },
          "purchased_at": {
            "description": "The time the purchase was made.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "receipts": {
            "description": "A list of receipts associated with the expense.",
            "items": {
              "$ref": "#/components/schemas/expenses__Receipt"
            },
            "nullable": true,
            "type": "array"
          },
          "repayment": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Repayment"
              },
              {
                "description": "The repayment information for the expense, include the time the repayment is created and the user that created the repayment."
              }
            ],
            "nullable": true
          },
          "review": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Review"
              },
              {
                "description": "Review information for the expense, including compliance status and reviewer details."
              }
            ],
            "nullable": true
          },
          "spending_entity": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__LegalEntity"
              },
              {
                "description": "The spending entity associated with the expense."
              }
            ],
            "nullable": true
          },
          "spending_entity_id": {
            "description": "The spending entity ID associated with the expense.",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__ExpenseStatus"
              }
            ],
            "nullable": true
          },
          "submitted_at": {
            "description": "The time the expense is submitted,",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "trip_id": {
            "description": "The trip ID associated with the expense if it is a trip expense.",
            "nullable": true,
            "type": "string"
          },
          "updated_at": {
            "description": "The last time the expense was updated.",
            "format": "date-time",
            "type": "string"
          },
          "usd_equivalent_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Money"
              },
              {
                "description": "The amount of the expense converted in USD (if not already in USD)."
              }
            ],
            "nullable": true
          },
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__User"
              }
            ],
            "nullable": true
          },
          "user_id": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "dashboard_url",
          "id",
          "updated_at"
        ],
        "type": "object"
      },
      "expenses__Expense": {
        "properties": {
          "billing_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Money"
              },
              {
                "description": "The billing amount of the expense is the amount that the entity is charged, on the entity's currency, for reimbursements or card spends."
              }
            ],
            "nullable": true
          },
          "budget_id": {
            "nullable": true,
            "type": "string"
          },
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Category"
              }
            ],
            "nullable": true
          },
          "department_id": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Unique ID associated with the expense.",
            "type": "string"
          },
          "location_id": {
            "nullable": true,
            "type": "string"
          },
          "memo": {
            "description": "The memo of the expense.",
            "nullable": true,
            "type": "string"
          },
          "merchant_id": {
            "nullable": true,
            "type": "string"
          },
          "original_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Money"
              },
              {
                "description": "The original amount of the expense is the amount that the employee submitted or incurred for reimbursements or card spends."
              }
            ],
            "nullable": true
          },
          "payment_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__ExpensePaymentStatus"
              }
            ],
            "nullable": true
          },
          "purchased_at": {
            "description": "The time the purchase was made.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__ExpenseStatus"
              }
            ],
            "nullable": true
          },
          "updated_at": {
            "description": "The last time the expense was updated.",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "updated_at"
        ],
        "type": "object"
      },
      "expenses__ExpenseAddendum": {
        "description": "One addendum on an expense.",
        "properties": {
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__AddendumData"
              },
              {
                "description": "The addendum's data. `type` names the variant, such as `LODGING` or `COMMON_DATA_REQUIREMENTS`. More types may be added, and this schema lists only today's, so a client that validates against it rejects a new type. Skip addenda with a `type` you don't recognize instead of failing the whole response."
              }
            ]
          },
          "id": {
            "description": "Unique ID of the addendum.",
            "type": "string"
          }
        },
        "required": [
          "data",
          "id"
        ],
        "type": "object"
      },
      "expenses__ExpenseComplianceStatus": {
        "enum": [
          "DUE",
          "OVERDUE",
          "COMPLETED"
        ],
        "type": "string"
      },
      "expenses__ExpenseDerivedComplianceStatus": {
        "enum": [
          "COMPLETED",
          "DOCUMENTATION_DUE",
          "REVIEW_DUE"
        ],
        "type": "string"
      },
      "expenses__ExpensePaymentStatus": {
        "description": "The payment status of the expense. HELD means a bill payment is on hold until the vendor's new payment method is approved. New values may be added to this enum, so handle unknown values.",
        "enum": [
          "NOT_STARTED",
          "PROCESSING",
          "CANCELED",
          "DECLINED",
          "CLEARED",
          "REFUNDING",
          "REFUNDED",
          "CASH_ADVANCE",
          "CREDITED",
          "AWAITING_PAYMENT",
          "SCHEDULED",
          "HELD"
        ],
        "type": "string"
      },
      "expenses__ExpenseStatus": {
        "enum": [
          "DRAFT",
          "SUBMITTED",
          "APPROVED",
          "OUT_OF_POLICY",
          "VOID",
          "CANCELED",
          "SPLIT",
          "SETTLED"
        ],
        "type": "string"
      },
      "expenses__ExpenseType": {
        "enum": [
          "CARD",
          "BILLPAY",
          "REIMBURSEMENT",
          "CLAWBACK",
          "UNSET"
        ],
        "type": "string"
      },
      "expenses__GeneralTicketInformationAddendum": {
        "description": "General information about a travel ticket.",
        "properties": {
          "issuing_carrier": {
            "description": "The carrier that issued the ticket.",
            "nullable": true,
            "type": "string"
          },
          "passenger_name": {
            "description": "The passenger name on the ticket.",
            "nullable": true,
            "type": "string"
          },
          "ticket_number": {
            "description": "The ticket number.",
            "nullable": true,
            "type": "string"
          },
          "type": {
            "enum": [
              "GENERAL_TICKET_INFORMATION"
            ],
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "expenses__LegalEntity": {
        "description": "A Brex legal entity.",
        "properties": {
          "billing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Address"
              },
              {
                "description": "The billing address of this legal entity. Also used as billing address for cards issued to users who belong to this entity."
              }
            ]
          },
          "created_at": {
            "description": "Timestamp, in UTC, when this legal entity was created.",
            "format": "date-time",
            "type": "string"
          },
          "display_name": {
            "description": "The display name of this legal entity.",
            "type": "string"
          },
          "id": {
            "description": "The ID of this legal entity.",
            "type": "string"
          },
          "is_default": {
            "description": "Whether this is the default entity of the account.",
            "type": "boolean"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__LegalEntityStatus"
              },
              {
                "description": "The current status of this legal entity."
              }
            ]
          }
        },
        "required": [
          "billing_address",
          "created_at",
          "display_name",
          "id",
          "status"
        ],
        "title": "Legal Entity",
        "type": "object"
      },
      "expenses__LegalEntityStatus": {
        "description": "The possible statuses for an entity's verification in Brex.",
        "enum": [
          "UNSUBMITTED",
          "UNVERIFIED",
          "IN_PROGRESS",
          "VERIFIED",
          "REJECTED"
        ],
        "type": "string"
      },
      "expenses__Location": {
        "description": "Location",
        "properties": {
          "city": {
            "description": "City, district, suburb, town, or village.",
            "nullable": true,
            "type": "string"
          },
          "coordinates": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Location.LatLong"
              }
            ],
            "nullable": true
          },
          "country": {
            "description": "Two-letter country code (ISO 3166-1 alpha-2).",
            "nullable": true,
            "type": "string"
          },
          "line1": {
            "description": "Address line 1, no PO Box.",
            "nullable": true,
            "type": "string"
          },
          "line2": {
            "description": "Address line 2 (e.g., apartment, suite, unit, or building).",
            "nullable": true,
            "type": "string"
          },
          "postal_code": {
            "description": "ZIP or postal code.",
            "nullable": true,
            "type": "string"
          },
          "state": {
            "description": "For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.",
            "nullable": true,
            "type": "string"
          },
          "timezone": {
            "description": "Timezone.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "expenses__Location.LatLong": {
        "description": "Latitude and longitude",
        "properties": {
          "latitude": {
            "format": "double",
            "type": "number"
          },
          "longitude": {
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "latitude",
          "longitude"
        ],
        "type": "object"
      },
      "expenses__LodgingAddendum": {
        "description": "Lodging details from the hotel's folio.",
        "properties": {
          "booked_at": {
            "description": "When the accommodation was booked, in UTC, without an offset.",
            "example": "2024-02-10T18:22:05",
            "nullable": true,
            "type": "string"
          },
          "cancellation_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__MultiCurrencyMoney"
              },
              {
                "description": "The fee for cancelling the booking.",
                "type": "object"
              }
            ],
            "nullable": true,
            "type": "object"
          },
          "check_in_time": {
            "description": "When check-in becomes available, in local time at the property, without an offset. Pair it with `check_in_time_zone_offset`.",
            "example": "2024-03-01T15:00:00",
            "nullable": true,
            "type": "string"
          },
          "check_in_time_zone_offset": {
            "description": "The time zone offset of the check-in time, in ISO-8601 format.",
            "example": "+05:30",
            "nullable": true,
            "type": "string"
          },
          "checkout_time": {
            "description": "When checkout must be done, in local time at the property, without an offset. Pair it with `checkout_time_zone_offset`.",
            "example": "2024-03-03T11:00:00",
            "nullable": true,
            "type": "string"
          },
          "checkout_time_zone_offset": {
            "description": "The time zone offset of the checkout time, in ISO-8601 format.",
            "example": "+05:30",
            "nullable": true,
            "type": "string"
          },
          "folio_id": {
            "description": "The folio ID of the stay.",
            "nullable": true,
            "type": "string"
          },
          "guest_count": {
            "description": "The number of people in the reservation.",
            "format": "int64",
            "nullable": true,
            "type": "integer"
          },
          "incidental_cost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__MultiCurrencyMoney"
              },
              {
                "description": "Incidental costs associated with the booking.",
                "type": "object"
              }
            ],
            "nullable": true,
            "type": "object"
          },
          "laundry_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__MultiCurrencyMoney"
              },
              {
                "description": "The laundry fee associated with the booking.",
                "type": "object"
              }
            ],
            "nullable": true,
            "type": "object"
          },
          "location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Location"
              },
              {
                "description": "Where the accommodation is located.",
                "type": "object"
              }
            ],
            "nullable": true,
            "type": "object"
          },
          "no_show_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__MultiCurrencyMoney"
              },
              {
                "description": "The no-show fee associated with the booking.",
                "type": "object"
              }
            ],
            "nullable": true,
            "type": "object"
          },
          "parking_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__MultiCurrencyMoney"
              },
              {
                "description": "The parking fee associated with the booking.",
                "type": "object"
              }
            ],
            "nullable": true,
            "type": "object"
          },
          "property_phone_number": {
            "description": "The phone number of the property.",
            "nullable": true,
            "type": "string"
          },
          "resort_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__MultiCurrencyMoney"
              },
              {
                "description": "The resort fee associated with the booking.",
                "type": "object"
              }
            ],
            "nullable": true,
            "type": "object"
          },
          "room_rate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__MultiCurrencyMoney"
              },
              {
                "description": "The average nightly rate for the accommodation.",
                "type": "object"
              }
            ],
            "nullable": true,
            "type": "object"
          },
          "room_service": {
            "description": "Room service charges. There can be several.",
            "items": {
              "$ref": "#/components/schemas/expenses__LodgingAddendum.RoomService"
            },
            "type": "array"
          },
          "star_rating": {
            "description": "The star rating of the accommodation, if available.",
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "total_rate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__MultiCurrencyMoney"
              },
              {
                "description": "The total amount paid for the accommodation. May differ from the expense amount because of incidentals.",
                "type": "object"
              }
            ],
            "nullable": true,
            "type": "object"
          },
          "tourism_tax": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__MultiCurrencyMoney"
              },
              {
                "description": "The tourism tax associated with the booking.",
                "type": "object"
              }
            ],
            "nullable": true,
            "type": "object"
          },
          "type": {
            "enum": [
              "LODGING"
            ],
            "type": "string"
          },
          "upgrade_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__MultiCurrencyMoney"
              },
              {
                "description": "The fee for upgrading the booking.",
                "type": "object"
              }
            ],
            "nullable": true,
            "type": "object"
          }
        },
        "required": [
          "room_service",
          "type"
        ],
        "type": "object"
      },
      "expenses__LodgingAddendum.RoomService": {
        "description": "A room service charge.",
        "properties": {
          "description": {
            "description": "A description of the room service.",
            "type": "string"
          },
          "total_fee": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__MultiCurrencyMoney"
              },
              {
                "description": "The total fee for the room service."
              }
            ]
          }
        },
        "required": [
          "description"
        ],
        "type": "object"
      },
      "expenses__Merchant": {
        "properties": {
          "country": {
            "description": "Merchant's country, in ISO 3166-1 alpha-3 format.",
            "type": "string"
          },
          "mcc": {
            "description": "A four-digit number listed in ISO 18245 for retail financial services, e.g. 4121 for Taxicabs and Rideshares. Please refer to https://en.wikipedia.org/wiki/Merchant_category_code for more details.",
            "type": "string"
          },
          "raw_descriptor": {
            "description": "Merchant descriptor, it can be the merchant name.",
            "type": "string"
          }
        },
        "required": [
          "country",
          "mcc",
          "raw_descriptor"
        ],
        "type": "object"
      },
      "expenses__Money": {
        "description": "\nMoney fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination\nof the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700.\n",
        "properties": {
          "amount": {
            "description": "The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.",
            "example": 700,
            "format": "int64",
            "type": "integer"
          },
          "currency": {
            "default": "USD",
            "description": "The type of currency, in ISO 4217 format.",
            "example": "USD",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "amount"
        ],
        "type": "object"
      },
      "expenses__MoneyListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "Money list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/expenses__Money"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "MONEY"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Money list value",
        "type": "object"
      },
      "expenses__MoneyValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "Money value for a custom field",
        "properties": {
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__Money"
              },
              {
                "description": "The data of the custom field."
              }
            ],
            "nullable": true
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "MONEY"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Money value",
        "type": "object"
      },
      "expenses__MultiCurrencyMoney": {
        "description": "An amount in one or more currencies, keyed by lowercase ISO 4217 currency code, e.g. `usd`. Each amount's `currency` is uppercase, e.g. `USD`.",
        "properties": {
          "currencies": {
            "additionalProperties": {
              "$ref": "#/components/schemas/expenses__Money"
            },
            "description": "The amount in each available currency, keyed by lowercase ISO 4217 currency code. Lowercase an amount's `currency` before using it as a key.",
            "type": "object"
          }
        },
        "required": [
          "currencies"
        ],
        "type": "object"
      },
      "expenses__OptionString": {
        "description": "Option string fields have a label and a identifier.",
        "properties": {
          "option_id": {
            "description": "The identifier when custom field data is of type option string.",
            "nullable": true,
            "type": "string"
          },
          "option_label": {
            "description": "The label when custom field data is of type option string.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "expenses__OptionStringListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "Option string list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/expenses__OptionString"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "OPTION_STRING"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Option string list value",
        "type": "object"
      },
      "expenses__OptionStringValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "Option string value for a custom field",
        "properties": {
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__OptionString"
              },
              {
                "description": "The data of the custom field."
              }
            ],
            "nullable": true
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "OPTION_STRING"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Option string value",
        "type": "object"
      },
      "expenses__Page_ExpandableExpense_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/expenses__ExpandableExpense"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "expenses__Payment": {
        "description": "The payment associated with the expense.",
        "properties": {
          "id": {
            "description": "Unique ID for the payment.",
            "type": "string"
          },
          "paymentInstrument": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__PaymentInstrument"
              },
              {
                "description": "The type of instrument by which the payment was made."
              }
            ]
          },
          "statusReason": {
            "$ref": "#/components/schemas/expenses__PaymentStatusReason"
          }
        },
        "required": [
          "id",
          "paymentInstrument",
          "statusReason"
        ],
        "type": "object"
      },
      "expenses__PaymentInstrument": {
        "discriminator": {
          "mapping": {
            "CARD": "#/components/schemas/expenses__CardPaymentInstrument"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/expenses__CardPaymentInstrument"
          }
        ],
        "properties": {
          "type": {
            "$ref": "#/components/schemas/expenses__PaymentInstrumentType"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "expenses__PaymentInstrumentType": {
        "enum": [
          "CARD"
        ],
        "type": "string"
      },
      "expenses__PaymentStatusReason": {
        "description": "The reason for the payment's status.",
        "enum": [
          "OTHER",
          "APPROVED",
          "EXCEEDED_BUDGET_LIMIT",
          "BUDGET_EXPIRED",
          "NO_BUDGET",
          "BUDGET_NOT_YET_STARTED",
          "BUDGET_CATEGORY_RESTRICTION",
          "BUDGET_MERCHANT_RESTRICTION",
          "SUSPECTED_FRAUD",
          "EXCEEDED_GLOBAL_LIMIT",
          "EXCEEDED_USER_LIMIT",
          "EXCEEDED_CARD_LIMIT",
          "INVALID_EXPIRATION_DATE",
          "CARD_NOT_ACTIVE",
          "INVALID_CARD_CREDENTIALS",
          "INVALID_BILLING_ADDRESS",
          "CARD_SUSPENDED",
          "CARD_TERMINATED",
          "CARD_EXPIRED",
          "MCC_BLOCKED",
          "USER_SUSPENDED",
          "INVALID_PIN",
          "INVALID_CVV",
          "EXCEEDED_PIN_ATTEMPTS",
          "INSIDE_SANCTIONED_COUNTRY",
          "SOFT_EXPIRATION",
          "TRANSFERRED_CARD_NEW_MERCHANT",
          "EXCEEDED_ANCESTOR_BUDGET_LIMIT",
          "EXCEEDED_BUDGET_TRANSACTION_LIMIT",
          "TOS_BLOCKED",
          "COMPLIANCE_BLOCKED"
        ],
        "type": "string"
      },
      "expenses__Policy": {
        "description": "The policy associated with the expense.",
        "properties": {
          "id": {
            "description": "The unique identifier for the policy.",
            "type": "string"
          },
          "name": {
            "description": "The display name of the policy.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "expenses__Receipt": {
        "description": "The receipt associated with the expense.",
        "properties": {
          "download_uris": {
            "description": "[Presigned S3 link](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-presigned-url.html)(s) to download file(s) of the receipt. Link(s) expire in 15 minutes.",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "id": {
            "description": "The unique identifier for the receipt.",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "expenses__ReceiptMatchRequest": {
        "description": "The parameter for creating a receipt match.",
        "properties": {
          "receipt_name": {
            "description": "The name of the receipt (with the file extension). It will be used in the matching result email.",
            "type": "string"
          }
        },
        "required": [
          "receipt_name"
        ],
        "type": "object"
      },
      "expenses__ReceiptUploadRequest": {
        "description": "The parameter for creating a receipt upload.",
        "properties": {
          "receipt_name": {
            "description": "The name of the receipt (with the file extension).",
            "type": "string"
          }
        },
        "required": [
          "receipt_name"
        ],
        "type": "object"
      },
      "expenses__Repayment": {
        "properties": {
          "repayment_initiated_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/expenses__User"
              }
            ],
            "nullable": true
          },
          "repayment_initiation_date": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "expenses__Review": {
        "properties": {
          "approval_steps": {
            "description": "Information for each approval step of the expense",
            "items": {
              "$ref": "#/components/schemas/expenses__ApprovalStepDetails"
            },
            "nullable": true,
            "type": "array"
          },
          "compliance_status": {
            "description": "Compliance status of the expense",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "approval_steps",
          "compliance_status"
        ],
        "type": "object"
      },
      "expenses__StringListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "String list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "STRING"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "String list value",
        "type": "object"
      },
      "expenses__StringValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "String value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "nullable": true,
            "type": "string"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "STRING"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "String value",
        "type": "object"
      },
      "expenses__TimestampListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "Timestamp list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "format": "date-time",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "TIMESTAMP"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Timestamp list value",
        "type": "object"
      },
      "expenses__TimestampValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/expenses__CustomField.ValueWrapper"
          }
        ],
        "description": "Timestamp value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "TIMESTAMP"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Timestamp value",
        "type": "object"
      },
      "expenses__TrainDataAddendum": {
        "description": "One segment of a train trip.",
        "properties": {
          "carrier_code": {
            "description": "The standard abbreviation for the railway carrier.",
            "nullable": true,
            "type": "string"
          },
          "city_of_destination": {
            "description": "The city of destination.",
            "nullable": true,
            "type": "string"
          },
          "city_of_origin": {
            "description": "The city of origin.",
            "nullable": true,
            "type": "string"
          },
          "destination_station": {
            "description": "The station where this segment ended.",
            "nullable": true,
            "type": "string"
          },
          "procedure_id": {
            "description": "The order in which the service was booked.",
            "nullable": true,
            "type": "string"
          },
          "sequence_number": {
            "description": "Where this segment falls in the trip's sequence.",
            "nullable": true,
            "type": "string"
          },
          "service_class_code": {
            "description": "The service class, such as coach or first.",
            "nullable": true,
            "type": "string"
          },
          "start_station": {
            "description": "The station where this segment started.",
            "nullable": true,
            "type": "string"
          },
          "travel_date": {
            "description": "The date of the train segment.",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "type": {
            "enum": [
              "TRAIN_DATA"
            ],
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "expenses__TripLegDataAddendum": {
        "description": "One leg of a trip, such as a flight.",
        "properties": {
          "carrier_code": {
            "description": "The standard abbreviation for the airline or railway carrier.",
            "nullable": true,
            "type": "string"
          },
          "departure_time": {
            "description": "The departure time as the card network sent it, with no date or time zone. Usually four digits on a 24-hour clock, such as `0715`. Some values end in `A` or `P`, such as `0640P`: add 12 hours to a `P` value whose hour is below 12, and read a `12` hour followed by `A` as hour 0.",
            "example": "0715",
            "nullable": true,
            "type": "string"
          },
          "destination_airport_code": {
            "description": "The destination airport code.",
            "nullable": true,
            "type": "string"
          },
          "flight_number": {
            "description": "The flight number.",
            "nullable": true,
            "type": "string"
          },
          "origin_airport_code": {
            "description": "The origin airport code.",
            "nullable": true,
            "type": "string"
          },
          "service_class_code": {
            "description": "The service class, such as coach or first.",
            "nullable": true,
            "type": "string"
          },
          "travel_date": {
            "description": "The date of the trip leg.",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "type": {
            "enum": [
              "TRIP_LEG_DATA"
            ],
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "expenses__UpdateExpenseRequest": {
        "description": "The parameter for updating an expense.",
        "properties": {
          "memo": {
            "description": "Expense memo.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "expenses__User": {
        "properties": {
          "department_id": {
            "nullable": true,
            "type": "string"
          },
          "first_name": {
            "description": "First name of the User.",
            "type": "string"
          },
          "id": {
            "description": "Unique ID for the User.",
            "type": "string"
          },
          "last_name": {
            "description": "Last name of the User.",
            "type": "string"
          },
          "location_id": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "first_name",
          "id",
          "last_name"
        ],
        "type": "object"
      },
      "fields__CreateFieldValueBody": {
        "description": "Represents the data needed to create a field value",
        "properties": {
          "is_disabled": {
            "description": "Indicates whether the field value is disabled. A disabled value is not selectable: it no longer appears as a selectable option in the dropdown and cannot be chosen on new transactions. Records that already use the value are unaffected.",
            "nullable": true,
            "type": "boolean"
          },
          "remote_id": {
            "description": "Remote/external ID of custom field value from external system (e.g. ERP or HRIS system)",
            "example": "foo_bar",
            "nullable": true,
            "type": "string"
          },
          "value": {
            "description": "The display name of the field value",
            "type": "string"
          },
          "value_id": {
            "description": "The value ID or code of the field value; Usually it is a unique identifier for the custom field value in the remote system",
            "example": "FooBar",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "value"
        ],
        "title": "Field value creation",
        "type": "object"
      },
      "fields__CreateFieldValueListBody": {
        "description": "Represents the data needed to create multiple field values. It can't contain more than 1000 values at once.",
        "properties": {
          "items": {
            "description": "The list of field values to be created",
            "items": {
              "$ref": "#/components/schemas/fields__CreateFieldValueBody"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "Field value list creation",
        "type": "object"
      },
      "fields__CreateFieldValueListResponse": {
        "description": "Represents a list of field values definition",
        "properties": {
          "items": {
            "description": "The list of created field values",
            "items": {
              "$ref": "#/components/schemas/fields__FieldValue"
            },
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "Field value list",
        "type": "object"
      },
      "fields__DeleteFieldValue.ByBrexId": {
        "description": "Represents the data needed to delete a field value using its `brex_id`.",
        "properties": {
          "brex_id": {
            "description": "The internal Brex ID of the field value",
            "example": "efo_foobar",
            "type": "string"
          }
        },
        "required": [
          "brex_id"
        ],
        "title": "by `brex_id`",
        "type": "object"
      },
      "fields__DeleteFieldValue.ByRemoteId": {
        "description": "Represents the data needed to delete a field value using its `remote_id`.",
        "properties": {
          "remote_id": {
            "description": "Remote/external ID of custom field value from external system (e.g. ERP or HRIS system)",
            "example": "foo_bar",
            "type": "string"
          }
        },
        "required": [
          "remote_id"
        ],
        "title": "by `remote_id`",
        "type": "object"
      },
      "fields__DeleteFieldValue.ByValueId": {
        "description": "Represents the data needed to delete a field value using its `value_id`.",
        "properties": {
          "value_id": {
            "description": "The value ID or code of the field value; Usually it is a unique identifier for the custom field value in the remote system",
            "example": "FooBar",
            "type": "string"
          }
        },
        "required": [
          "value_id"
        ],
        "title": "by `value_id`",
        "type": "object"
      },
      "fields__DeleteFieldValueBody": {
        "description": "Represents the data needed to delete a field value.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/fields__DeleteFieldValue.ByBrexId"
          },
          {
            "$ref": "#/components/schemas/fields__DeleteFieldValue.ByValueId"
          },
          {
            "$ref": "#/components/schemas/fields__DeleteFieldValue.ByRemoteId"
          }
        ],
        "title": "Field value to delete",
        "type": "object"
      },
      "fields__DeleteFieldValueListBody": {
        "description": "Represents the data needed to delete field values. It can't contain more than 1000 values at once.",
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/fields__DeleteFieldValueBody"
            },
            "maxItems": 1000,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "Field value list deletion",
        "type": "object"
      },
      "fields__DeletedFieldValueListResponse": {
        "description": "Represents the confirmation of number of deleted field values",
        "title": "Field value deleted response",
        "type": "object"
      },
      "fields__Field": {
        "description": "Represents a field definition",
        "properties": {
          "brex_id": {
            "description": "The internal Brex ID of the field",
            "example": "extended_field_foobar",
            "type": "string"
          },
          "group": {
            "allOf": [
              {
                "$ref": "#/components/schemas/fields__FieldGroup"
              },
              {
                "description": "The category of the field, indicating its purpose or context. For example, it could belong to accounting-related fields or user-related fields."
              }
            ],
            "nullable": true
          },
          "is_disabled": {
            "description": "Indicates whether the field is disabled. A disabled field is not selectable: it is no longer offered as an option in the Brex dropdown and cannot be applied to new transactions. Records that already reference the field are unaffected.",
            "type": "boolean"
          },
          "name": {
            "description": "The name of the field",
            "nullable": true,
            "type": "string"
          },
          "remote_id": {
            "description": "Remote/external ID of custom field from external system (e.g. ERP or HRIS system)",
            "example": "foo_bar",
            "nullable": true,
            "type": "string"
          },
          "updated_at": {
            "description": "The last updated timestamp of the field",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "brex_id",
          "is_disabled",
          "name",
          "updated_at"
        ],
        "title": "Field",
        "type": "object"
      },
      "fields__FieldCreateBody": {
        "description": "Represents the data needed to create a field. To create a field in the `ERP` group you must first set up an Accounting Integration and supply its `integration_id`.",
        "properties": {
          "group": {
            "allOf": [
              {
                "$ref": "#/components/schemas/fields__FieldGroup"
              },
              {
                "description": "The category of the field, indicating its purpose or context. For example, it could belong to accounting-related fields or user-related fields."
              }
            ]
          },
          "integration_id": {
            "description": "The ID of the Accounting Integration to associate this field with. This property is **required** when `group` is `ERP`: it must reference an existing Accounting Integration, and requests that omit it or send `null` for an `ERP` field are rejected. For all other groups (`ACCOUNTING`, `USER`, `TRAVEL`) `integration_id` is not applicable and should be left null.",
            "example": "int_123",
            "nullable": true,
            "type": "string"
          },
          "is_disabled": {
            "description": "Indicates whether the field is disabled. A disabled field is not selectable: it is no longer offered as an option in the Brex dropdown and cannot be applied to new transactions. Records that already reference the field are unaffected.",
            "nullable": true,
            "type": "boolean"
          },
          "name": {
            "description": "The name of the field",
            "type": "string"
          },
          "remote_id": {
            "description": "Remote/external ID of custom field from external system (e.g. ERP or HRIS system)",
            "example": "foo_bar",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "group",
          "name"
        ],
        "title": "Field creation",
        "type": "object"
      },
      "fields__FieldGroup": {
        "description": "The category of the field, indicating its purpose or context. Supported groups are:\n\n* `ACCOUNTING` — Fields used to categorize transactions for accounting purposes (for example, expense categories or cost centers) that are managed directly within Brex.\n\n* `USER` — Fields associated with users, used to capture user-specific attributes.\n\n* `ERP` — Fields that are synced with an external ERP/accounting system through an Accounting Integration. Creating an Accounting Integration is a prerequisite for creating fields in the `ERP` group, and each `ERP` field must reference that integration through `integration_id`.\n\n* `TRAVEL` — Fields used in the context of travel bookings and expenses.",
        "enum": [
          "ACCOUNTING",
          "USER",
          "ERP",
          "TRAVEL"
        ],
        "type": "string"
      },
      "fields__FieldUpdateBody": {
        "description": "Represents the data needed to update a field",
        "properties": {
          "is_disabled": {
            "description": "Indicates whether the field is disabled. A disabled field is not selectable: it is no longer offered as an option in the Brex dropdown and cannot be applied to new transactions. Records that already reference the field are unaffected.",
            "nullable": true,
            "type": "boolean"
          },
          "name": {
            "description": "The name of the field",
            "nullable": true,
            "type": "string"
          }
        },
        "title": "Field update",
        "type": "object"
      },
      "fields__FieldValue": {
        "description": "Represents a field value definition",
        "properties": {
          "brex_id": {
            "description": "The internal Brex ID of the field value",
            "example": "efo_foobar",
            "type": "string"
          },
          "field_id": {
            "description": "The ID of the parent field this value belongs to",
            "example": "extended_field_foobar",
            "type": "string"
          },
          "is_disabled": {
            "description": "Indicates whether the field value is disabled. A disabled value is not selectable: it no longer appears as a selectable option in the dropdown and cannot be chosen on new transactions. Records that already use the value are unaffected.",
            "type": "boolean"
          },
          "remote_id": {
            "description": "Remote/external ID of custom field value from external system (e.g. ERP or HRIS system)",
            "example": "foo_bar",
            "nullable": true,
            "type": "string"
          },
          "updated_at": {
            "description": "The last updated timestamp of the field value",
            "format": "date-time",
            "type": "string"
          },
          "value": {
            "description": "The display name of the field value",
            "type": "string"
          },
          "value_id": {
            "description": "The value ID or code of the field value; Usually it is a unique identifier for the custom field value in the remote system",
            "example": "foo_bar",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "brex_id",
          "field_id",
          "is_disabled",
          "updated_at",
          "value"
        ],
        "title": "Field value",
        "type": "object"
      },
      "fields__Page_FieldValue_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/fields__FieldValue"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "fields__Page_Field_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/fields__Field"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "fields__UpdateFieldValue.ByBrexId": {
        "description": "Represents the data needed to update a field value using its `brex_id`.",
        "properties": {
          "brex_id": {
            "description": "The internal Brex ID of the field value",
            "example": "efo_foobar",
            "type": "string"
          },
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/fields__UpdateFieldValueDataBody"
              },
              {
                "description": "Field value data to update"
              }
            ]
          }
        },
        "required": [
          "brex_id",
          "data"
        ],
        "title": "by `brex_id`",
        "type": "object"
      },
      "fields__UpdateFieldValue.ByRemoteId": {
        "description": "Represents the data needed to update a field value using its `remote_id`.",
        "properties": {
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/fields__UpdateFieldValueDataBody"
              },
              {
                "description": "Field value data to update"
              }
            ]
          },
          "remote_id": {
            "description": "Remote/external ID of custom field value from external system (e.g. ERP or HRIS system)",
            "example": "foo_bar",
            "type": "string"
          }
        },
        "required": [
          "data",
          "remote_id"
        ],
        "title": "by `remote_id`",
        "type": "object"
      },
      "fields__UpdateFieldValue.ByValueId": {
        "description": "Represents the data needed to update a field value using its `value_id`.",
        "properties": {
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/fields__UpdateFieldValueDataBody"
              },
              {
                "description": "Field value data to update"
              }
            ]
          },
          "value_id": {
            "description": "The value ID or code of the field value; Usually it is a unique identifier for the custom field value in the remote system",
            "example": "FooBar",
            "type": "string"
          }
        },
        "required": [
          "data",
          "value_id"
        ],
        "title": "by `value_id`",
        "type": "object"
      },
      "fields__UpdateFieldValueBody": {
        "description": "Represents the data needed to update a field value.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/fields__UpdateFieldValue.ByBrexId"
          },
          {
            "$ref": "#/components/schemas/fields__UpdateFieldValue.ByValueId"
          },
          {
            "$ref": "#/components/schemas/fields__UpdateFieldValue.ByRemoteId"
          }
        ],
        "title": "Field value to update",
        "type": "object"
      },
      "fields__UpdateFieldValueDataBody": {
        "description": "Represents the updated data of a field value",
        "properties": {
          "is_disabled": {
            "description": "Indicates whether the field value is disabled. A disabled value is not selectable: it no longer appears as a selectable option in the dropdown and cannot be chosen on new transactions. Records that already use the value are unaffected.",
            "nullable": true,
            "type": "boolean"
          },
          "value": {
            "description": "The display name of the field value",
            "nullable": true,
            "type": "string"
          }
        },
        "title": "Field value update data",
        "type": "object"
      },
      "fields__UpdateFieldValueListBody": {
        "description": "Represents the data needed to update multiple field values. It can't contain more than 1000 values at once.",
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/fields__UpdateFieldValueBody"
            },
            "maxItems": 1000,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "Field value list update",
        "type": "object"
      },
      "fields__UpdateFieldValueListResponse": {
        "description": "Represents a list of updated field values",
        "properties": {
          "items": {
            "description": "The list of updated field values",
            "items": {
              "$ref": "#/components/schemas/fields__FieldValue"
            },
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "Field value updated list",
        "type": "object"
      },
      "onboarding__Account": {
        "description": "If the application status is ACTIVE, array of bank cash management accounts (note there is currently only one account per customer).",
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "description": "Brex Cash management account ID.",
            "type": "string"
          },
          "instructions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/onboarding__Instruction"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "created_at",
          "id"
        ],
        "type": "object"
      },
      "onboarding__Address": {
        "description": "Company business address (must be in the US; no PO box or virtual/forwarding addresses allowed).",
        "properties": {
          "city": {
            "description": "City, district, suburb, town, or village.",
            "nullable": true,
            "type": "string"
          },
          "country": {
            "description": "Two-letter country code (ISO 3166-1 alpha-2).",
            "nullable": true,
            "type": "string"
          },
          "line1": {
            "description": "Address line 1, no PO Box.",
            "nullable": true,
            "type": "string"
          },
          "line2": {
            "description": "Address line 2 (e.g., apartment, suite, unit, or building).",
            "nullable": true,
            "type": "string"
          },
          "phone_number": {
            "description": "Phone number.",
            "nullable": true,
            "type": "string"
          },
          "postal_code": {
            "description": "ZIP or postal code.",
            "nullable": true,
            "type": "string"
          },
          "state": {
            "description": "For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "onboarding__Applicant": {
        "description": "Required information about the referred prospect.",
        "properties": {
          "email": {
            "description": "Business email of the applying customer.",
            "example": "jane.smith@example.com",
            "format": "email",
            "type": "string"
          },
          "first_name": {
            "description": "First name of the applying customer.",
            "example": "Jane",
            "type": "string"
          },
          "last_name": {
            "description": "Last name of the applying customer.",
            "example": "Smith",
            "type": "string"
          }
        },
        "required": [
          "email",
          "first_name",
          "last_name"
        ],
        "type": "object"
      },
      "onboarding__Application": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/onboarding__ApplicationStatus"
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "onboarding__ApplicationStatus": {
        "description": "Application status of a product.\n\n`NO_ACCOUNT` - There is no active application, and the product account is not provisioned.\n\n`ACTIVE` - The application is approved, and the product account is provisioned.\n\n`NOT_SUBMITTED` - The application is started but not yet submitted.\n\n`INFORMATION_PENDING` - The application is submitted and additional information is requested.\n\n`MANUAL_REVIEW` - The application is under manual review.\n\n`PROCESSING` - The application is submitted and is under review.\n\n`REJECTED` - The application is rejected.\n\n`CLOSED` - The product account is closed.\n",
        "enum": [
          "NO_ACCOUNT",
          "ACTIVE",
          "NOT_SUBMITTED",
          "INFORMATION_PENDING",
          "MANUAL_REVIEW",
          "PROCESSING",
          "REJECTED",
          "CLOSED"
        ],
        "type": "string"
      },
      "onboarding__BeneficialOwner": {
        "description": "Federal law requires us to collect information for anyone who owns 25% or more of the company.",
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/onboarding__Address"
              },
              {
                "description": "Personal address of the owner (US-based or international)"
              }
            ],
            "nullable": true
          },
          "company_relationship": {
            "allOf": [
              {
                "$ref": "#/components/schemas/onboarding__CompanyRelationship"
              }
            ],
            "nullable": true
          },
          "date_of_birth": {
            "description": "Date of birth.",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "identity_document": {
            "allOf": [
              {
                "$ref": "#/components/schemas/onboarding__IdentityDocument"
              }
            ],
            "nullable": true
          },
          "legal_name": {
            "description": "Legal full name.",
            "type": "string"
          },
          "ownership_percentage": {
            "description": "Ownership percentage (25-100). Only populated for individuals with ownership stakes (25% or more).",
            "example": 25,
            "format": "int32",
            "maximum": 100,
            "minimum": 25,
            "nullable": true,
            "type": "integer"
          },
          "prong": {
            "$ref": "#/components/schemas/onboarding__Prong"
          }
        },
        "required": [
          "legal_name",
          "prong"
        ],
        "type": "object"
      },
      "onboarding__Business": {
        "description": "Information about the business the application is for.\n\nYou can optionally set the `alternate_address`, if the business has an additional address which is different from the \nregistration address. For instance, for international companies where their operational address may be different \nthan where the company was incorporated.\n",
        "properties": {
          "activity_description": {
            "description": "Brief description of the business activity.",
            "example": "Software as a Service platform for project management",
            "nullable": true,
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/onboarding__Address"
              }
            ],
            "nullable": true
          },
          "alternate_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/onboarding__Address"
              }
            ],
            "nullable": true
          },
          "beneficial_owners": {
            "description": "List of beneficial owners of the company",
            "items": {
              "$ref": "#/components/schemas/onboarding__BeneficialOwner"
            },
            "nullable": true,
            "type": "array"
          },
          "employer_identification_number": {
            "description": "Company Employer Identification Number(EIN).",
            "example": "123456789",
            "maxLength": 9,
            "minLength": 9,
            "nullable": true,
            "type": "string"
          },
          "incorporation_state": {
            "description": "State of incorporation (US state abbreviation).",
            "example": "CA",
            "nullable": true,
            "type": "string"
          },
          "incorporation_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/onboarding__IncorporationType"
              }
            ],
            "nullable": true
          },
          "incorporation_year": {
            "description": "Year of incorporation (YYYY format).",
            "example": 2023,
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "legal_name": {
            "description": "Company legal name.",
            "example": "Acme Corporation",
            "nullable": true,
            "type": "string"
          },
          "website_url": {
            "description": "Business website (or link to ecommerce store for sellers).",
            "example": "https://www.acmecorp.com",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "onboarding__Cash": {
        "description": "Available if customer applied for Brex Cash.",
        "properties": {
          "accounts": {
            "items": {
              "$ref": "#/components/schemas/onboarding__Account"
            },
            "nullable": true,
            "type": "array"
          },
          "application": {
            "$ref": "#/components/schemas/onboarding__Application"
          }
        },
        "required": [
          "application"
        ],
        "type": "object"
      },
      "onboarding__CompanyRelationship": {
        "description": "Relationship of this beneficial owner for this company.",
        "enum": [
          "FOUNDER",
          "EXECUTIVE",
          "SENIOR_LEADERSHIP",
          "OTHER"
        ],
        "type": "string"
      },
      "onboarding__ContactPreference": {
        "description": "When set to `EMAIL_OUTBOUND`, Brex will email the referred prospective customer directly to prompt them to create their account rather than rely on you to direct them to claim the account. If not provided, you are responsible for contacting the prospect and the value defaults to `NO_OUTBOUND`.",
        "enum": [
          "NO_OUTBOUND",
          "EMAIL_OUTBOUND"
        ],
        "type": "string"
      },
      "onboarding__CreateDocumentRequest": {
        "description": "Request for creating new document upload URL.",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/onboarding__DocumentType"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "onboarding__CreateReferralRequest": {
        "description": "Submit a new referral to Brex for onboarding.",
        "properties": {
          "applicant": {
            "$ref": "#/components/schemas/onboarding__Applicant"
          },
          "business": {
            "allOf": [
              {
                "$ref": "#/components/schemas/onboarding__Business"
              }
            ],
            "nullable": true
          },
          "contact_preference": {
            "allOf": [
              {
                "$ref": "#/components/schemas/onboarding__ContactPreference"
              }
            ],
            "nullable": true
          },
          "referral_code": {
            "description": "Referral code that attributes credit to you if the prospect signs up for a Brex account.",
            "example": "partner_abc123",
            "type": "string"
          }
        },
        "required": [
          "applicant",
          "referral_code"
        ],
        "type": "object"
      },
      "onboarding__Document": {
        "properties": {
          "id": {
            "description": "Unique identifier for the document.",
            "example": "prefdoc_a1b2c3d4e5",
            "type": "string"
          },
          "uri": {
            "description": "This is a presigned S3 link that should be used to attach the document.\nThe maximum size accepted for this document is 50 MB.",
            "example": "https://brex-documents.s3.amazonaws.com/upload/abc123?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Expires=1234567890&Signature=example",
            "type": "string"
          }
        },
        "required": [
          "id",
          "uri"
        ],
        "type": "object"
      },
      "onboarding__DocumentType": {
        "description": "Type of document being submitted. Allowable types:\n- ARTICLES_OF_INCORPORATION\n- IRS_EIN_CONFIRMATION (IRS CP 575, CP 575 fax sheet, or 147C form)\n- IRS_EIN_APPLICATION (IRS SS4 form)\n- CERTIFICATE_GOOD_STANDING\n",
        "enum": [
          "ARTICLES_OF_INCORPORATION",
          "IRS_EIN_CONFIRMATION",
          "IRS_EIN_APPLICATION",
          "CERTIFICATE_GOOD_STANDING"
        ],
        "type": "string"
      },
      "onboarding__DomesticInstruction": {
        "description": "Domestic ACH/wire instructions.",
        "properties": {
          "account_type": {
            "type": "string"
          },
          "bank_account_number": {
            "type": "string"
          },
          "bank_address": {
            "type": "string"
          },
          "bank_name": {
            "type": "string"
          },
          "bank_routing_number": {
            "type": "string"
          },
          "beneficiary_address": {
            "type": "string"
          },
          "beneficiary_name": {
            "type": "string"
          }
        },
        "required": [
          "account_type",
          "bank_account_number",
          "bank_address",
          "bank_name",
          "bank_routing_number",
          "beneficiary_address",
          "beneficiary_name"
        ],
        "type": "object"
      },
      "onboarding__IdentityDocument": {
        "description": "Document identifying the owner.",
        "properties": {
          "country": {
            "description": "Country where the identity document was issued.",
            "type": "string"
          },
          "number": {
            "description": "US SSN or passport number.",
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/onboarding__IdentityDocumentType"
          }
        },
        "required": [
          "country",
          "number",
          "type"
        ],
        "type": "object"
      },
      "onboarding__IdentityDocumentType": {
        "description": "Either a US SSN or US/international passport.",
        "enum": [
          "SSN",
          "PASSPORT"
        ],
        "type": "string"
      },
      "onboarding__IncorporationType": {
        "description": "Incorporation type of the company referred.",
        "enum": [
          "C_CORP",
          "S_CORP",
          "B_CORP",
          "LLC",
          "LLP",
          "SOLE_PROP",
          "ORG_501C3",
          "LP"
        ],
        "type": "string"
      },
      "onboarding__Instruction": {
        "description": "Domestic and international ACH/wire instructions.",
        "properties": {
          "domestic": {
            "$ref": "#/components/schemas/onboarding__DomesticInstruction"
          },
          "international": {
            "$ref": "#/components/schemas/onboarding__InternationalInstruction"
          }
        },
        "required": [
          "domestic",
          "international"
        ],
        "type": "object"
      },
      "onboarding__InternationalInstruction": {
        "description": "International wire instructions.",
        "properties": {
          "account_type": {
            "type": "string"
          },
          "bank_address": {
            "type": "string"
          },
          "bank_name": {
            "type": "string"
          },
          "beneficiary_address": {
            "type": "string"
          },
          "beneficiary_name": {
            "type": "string"
          },
          "special_instructions": {
            "type": "string"
          },
          "swift_account_number": {
            "type": "string"
          },
          "swift_bank_number": {
            "type": "string"
          }
        },
        "required": [
          "account_type",
          "bank_address",
          "bank_name",
          "beneficiary_address",
          "beneficiary_name",
          "special_instructions",
          "swift_account_number",
          "swift_bank_number"
        ],
        "type": "object"
      },
      "onboarding__ProcessDelayedEINDocumentRequest": {
        "description": "Request for processing a delayed EIN document",
        "properties": {
          "document_id": {
            "description": "The document ID returned from the initial document creation request",
            "type": "string"
          }
        },
        "required": [
          "document_id"
        ],
        "type": "object"
      },
      "onboarding__Product": {
        "description": "Array of Brex products that the customer has applied for. This is a gated feature available to select clients only.",
        "properties": {
          "cash": {
            "$ref": "#/components/schemas/onboarding__Cash"
          }
        },
        "required": [
          "cash"
        ],
        "type": "object"
      },
      "onboarding__Prong": {
        "description": "When using `CONTROL` prong, the beneficial owner is a single individual with \nsignificant responsibility to control, manage, or direct a legal entity customer. This includes, an\nexecutive officer or senior manager (Chief Executive Officer, Chief Financial Officer, Chief\nOperating Officer, President), or any other individual who regularly performs similar\nfunctions. \n\nUnder the `OWNERSHIP` prong, a beneficial owner is each individual, if any, who, directly or\nindirectly, through any contract, arrangement, understanding, relationship or otherwise, owns\n25 percent or more of the equity interests of a legal entity customer. If a trust owns directly\nor indirectly, through any contract, arrangement, understanding, relationship or otherwise, 25\npercent or more of the equity interests of a legal entity customer, the beneficial owner is the\ntrustee.\n\nUnder the `BOTH` prong, the beneficial owner represents both.\n",
        "enum": [
          "OWNERSHIP",
          "CONTROL",
          "BOTH"
        ],
        "type": "string"
      },
      "onboarding__Referral": {
        "properties": {
          "customer_email": {
            "description": "Customer's email address registered for the Brex application. This field is available only if there's a signup completed.\n",
            "format": "email",
            "nullable": true,
            "type": "string"
          },
          "expires_at": {
            "description": "The time at which this referral link expires.",
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier for the referral.",
            "example": "a1b2c3d4e5f6g7",
            "type": "string"
          },
          "products": {
            "items": {
              "$ref": "#/components/schemas/onboarding__Product"
            },
            "type": "array"
          },
          "referral_signup_url": {
            "description": "Signup URL to redirect prospects to complete their onboarding flow.\n\n*Note*: Necessary disclosures must be shown when the prospect clicks on this link.\n",
            "example": "https://brex.com/signup?pref_token=a1b2c3d4e5f6g7",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/onboarding__ReferralStatus"
          }
        },
        "required": [
          "expires_at",
          "id",
          "products",
          "referral_signup_url",
          "status"
        ],
        "type": "object"
      },
      "onboarding__ReferralPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/onboarding__Referral"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "onboarding__ReferralStatus": {
        "description": "Status of the referral. `UNCLAIMED` or `EXPIRED` unless the customer completes signup. Customers are attributed once `ACTIVE` until the account is `CLOSED`.",
        "enum": [
          "UNCLAIMED",
          "EXPIRED",
          "ACTIVE",
          "CLOSED"
        ],
        "type": "string"
      },
      "payments__ACHDetailsRequest": {
        "allOf": [
          {
            "description": "Payment Instruments associated with the vendor.\nEach vendor can only have one payment account per payment instrument type. For instance, a vendor may have associated details for each of ACH, DOMESTIC_WIRE, and CHEQUE, but they cannot have 2 entries for ACH. If you modify a vendor's existing payment instrument type with new details, it will overwrite any previous data.\n",
            "type": "object"
          },
          {
            "properties": {
              "account_class": {
                "$ref": "#/components/schemas/payments__AccountClass"
              },
              "account_number": {
                "type": "string"
              },
              "account_type": {
                "$ref": "#/components/schemas/payments__AccountType"
              },
              "beneficiary_name": {
                "nullable": true,
                "type": "string"
              },
              "routing_number": {
                "description": "The routing number must follow proper format.",
                "type": "string"
              },
              "type": {
                "$ref": "#/components/schemas/payments__PaymentDetailsTypeRequest"
              }
            },
            "required": [
              "account_class",
              "account_number",
              "account_type",
              "routing_number",
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "payments__ACHDetailsResponse": {
        "allOf": [
          {
            "type": "object"
          },
          {
            "properties": {
              "account_class": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payments__AccountClass"
                  }
                ],
                "nullable": true
              },
              "account_number": {
                "type": "string"
              },
              "account_type": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payments__AccountType"
                  }
                ],
                "nullable": true
              },
              "payment_instrument_id": {
                "description": "Payment Instrument ID that can be passed to the /transfers endpoint to trigger a transfer.\nThe type of the payment instrument dictates the method.\n",
                "type": "string"
              },
              "routing_number": {
                "type": "string"
              },
              "type": {
                "$ref": "#/components/schemas/payments__PaymentDetailsTypeResponse"
              }
            },
            "required": [
              "account_number",
              "payment_instrument_id",
              "routing_number",
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "payments__AccountClass": {
        "enum": [
          "BUSINESS",
          "PERSONAL"
        ],
        "type": "string"
      },
      "payments__AccountType": {
        "enum": [
          "CHECKING",
          "SAVING"
        ],
        "type": "string"
      },
      "payments__Address": {
        "description": "Company business address (must be in the US; no PO box or virtual/forwarding addresses allowed).",
        "properties": {
          "city": {
            "description": "City, district, suburb, town, or village.",
            "nullable": true,
            "type": "string"
          },
          "country": {
            "description": "Two-letter country code (ISO 3166-1 alpha-2).",
            "nullable": true,
            "type": "string"
          },
          "line1": {
            "description": "Address line 1, no PO Box.",
            "nullable": true,
            "type": "string"
          },
          "line2": {
            "description": "Address line 2 (e.g., apartment, suite, unit, or building).",
            "nullable": true,
            "type": "string"
          },
          "phone_number": {
            "description": "Phone number.",
            "nullable": true,
            "type": "string"
          },
          "postal_code": {
            "description": "ZIP or postal code.",
            "nullable": true,
            "type": "string"
          },
          "state": {
            "description": "For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "payments__ApprovalType": {
        "description": "Specifies the approval type for the transaction. \n`MANUAL` requires a cash admin to approve the transaction before disbursing funds. \nWhen not set, the default policy will apply.",
        "enum": [
          "MANUAL"
        ],
        "type": "string"
      },
      "payments__Balance": {
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/payments__Money"
          },
          "as_of_date": {
            "format": "date",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "as_of_date"
        ],
        "type": "object"
      },
      "payments__BankAccountDetailsResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/payments__CounterPartyResponse"
          },
          {
            "properties": {
              "account_number": {
                "description": "Account number of a bank account (or IBAN code for international transfer). For incoming cheques, this field might be null.",
                "nullable": true,
                "type": "string"
              },
              "beneficiary_bank": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payments__BeneficiaryBank"
                  },
                  {
                    "description": "Beneficiary Bank information"
                  }
                ],
                "nullable": true
              },
              "description": {
                "description": "Description of the transfer.",
                "nullable": true,
                "type": "string"
              },
              "external_memo": {
                "description": "External Memo populated by the sender",
                "nullable": true,
                "type": "string"
              },
              "fed_reference_number": {
                "description": "Fed reference number for incoming wires",
                "nullable": true,
                "type": "string"
              },
              "routing_number": {
                "description": "Routing number of a bank account (or SWIFT/BIC code for international transfer). For incoming cheques, this field might be null.",
                "nullable": true,
                "type": "string"
              },
              "type": {
                "$ref": "#/components/schemas/payments__CounterPartyResponseType"
              }
            },
            "required": [
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "payments__BankConnection": {
        "properties": {
          "available_balance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payments__Balance"
              }
            ],
            "nullable": true
          },
          "bank_details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payments__BankDetails"
              },
              {
                "description": "\nDetails of the bank - Name, Type\n"
              }
            ]
          },
          "brex_account_id": {
            "description": "\nBrex business account ID\n",
            "nullable": true,
            "type": "string"
          },
          "current_balance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payments__Balance"
              }
            ],
            "nullable": true
          },
          "id": {
            "type": "string"
          },
          "last_four": {
            "type": "string"
          }
        },
        "required": [
          "bank_details",
          "id",
          "last_four"
        ],
        "type": "object"
      },
      "payments__BankDetails": {
        "properties": {
          "name": {
            "description": "\nThe name of the bank\n",
            "type": "string"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payments__BankType"
              },
              {
                "description": "\nThe type of bank account connected. For example, CHECKING or SAVING\n"
              }
            ]
          }
        },
        "required": [
          "name",
          "type"
        ],
        "type": "object"
      },
      "payments__BankType": {
        "enum": [
          "CHECKING",
          "SAVING"
        ],
        "type": "string"
      },
      "payments__BeneficiaryBank": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payments__Address"
              }
            ],
            "nullable": true
          },
          "name": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "payments__BookTransferDetails": {
        "allOf": [
          {
            "description": "Counterparty Details for the transfer",
            "type": "object"
          },
          {
            "properties": {
              "recipient": {
                "$ref": "#/components/schemas/payments__Recipient"
              },
              "type": {
                "$ref": "#/components/schemas/payments__CounterPartyType"
              }
            },
            "required": [
              "recipient",
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "payments__BookTransferDetailsResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/payments__CounterPartyResponse"
          },
          {
            "properties": {
              "deposit_account_id": {
                "description": "This feature is currently limited to certain customers, please reach out if you are interested",
                "type": "string"
              },
              "type": {
                "$ref": "#/components/schemas/payments__CounterPartyResponseType"
              }
            },
            "required": [
              "deposit_account_id",
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "payments__BrexCashAccountDetails": {
        "allOf": [
          {
            "description": "Originating account details for the transfer",
            "type": "object"
          },
          {
            "properties": {
              "id": {
                "description": "\nID of the Brex Business account: Can be found from the `/accounts` endpoint\nwhere instrument type is `CASH`.\n",
                "type": "string"
              },
              "type": {
                "$ref": "#/components/schemas/payments__OriginatingAccountType"
              }
            },
            "required": [
              "id",
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "payments__BrexCashAccountDetailsResponse": {
        "allOf": [
          {
            "description": "Originating account details for the transfer",
            "type": "object"
          },
          {
            "properties": {
              "id": {
                "description": "\nID of the Brex Business account.\n",
                "type": "string"
              },
              "type": {
                "$ref": "#/components/schemas/payments__OriginatingAccountResponseType"
              }
            },
            "required": [
              "id",
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "payments__BrexCashDetails": {
        "allOf": [
          {
            "description": "Receiving account details for the transfer",
            "type": "object"
          },
          {
            "properties": {
              "id": {
                "description": "\nID of the Brex business account: Can be found from the [List business accounts](/openapi/transactions_api/#operation/listAccounts) endpoint\n",
                "type": "string"
              },
              "type": {
                "$ref": "#/components/schemas/payments__ReceivingAccountType"
              }
            },
            "required": [
              "id",
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "payments__ChequeDetailsRequest": {
        "allOf": [
          {
            "description": "Payment Instruments associated with the vendor.\nEach vendor can only have one payment account per payment instrument type. For instance, a vendor may have associated details for each of ACH, DOMESTIC_WIRE, and CHEQUE, but they cannot have 2 entries for ACH. If you modify a vendor's existing payment instrument type with new details, it will overwrite any previous data.\n",
            "type": "object"
          },
          {
            "properties": {
              "beneficiary_name": {
                "nullable": true,
                "type": "string"
              },
              "mailing_address": {
                "$ref": "#/components/schemas/payments__Address"
              },
              "recipient_name": {
                "maxLength": 40,
                "type": "string"
              },
              "type": {
                "$ref": "#/components/schemas/payments__PaymentDetailsTypeRequest"
              }
            },
            "required": [
              "mailing_address",
              "recipient_name",
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "payments__ChequeDetailsResponse": {
        "allOf": [
          {
            "type": "object"
          },
          {
            "properties": {
              "mailing_address": {
                "$ref": "#/components/schemas/payments__Address"
              },
              "payment_instrument_id": {
                "description": "Payment Instrument ID that can be passed to the /transfers endpoint to trigger a transfer.\nThe type of the payment instrument dictates the method.\n",
                "type": "string"
              },
              "recipient_name": {
                "type": "string"
              },
              "type": {
                "$ref": "#/components/schemas/payments__PaymentDetailsTypeResponse"
              }
            },
            "required": [
              "mailing_address",
              "payment_instrument_id",
              "recipient_name",
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "payments__CounterParty": {
        "description": "Counterparty Details for the transfer",
        "discriminator": {
          "mapping": {
            "BOOK_TRANSFER": "#/components/schemas/payments__BookTransferDetails",
            "VENDOR": "#/components/schemas/payments__VendorDetails"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/payments__VendorDetails"
          },
          {
            "$ref": "#/components/schemas/payments__BookTransferDetails"
          }
        ],
        "type": "object"
      },
      "payments__CounterPartyBankDetails": {
        "allOf": [
          {
            "description": "Counterparty Details for the transfer",
            "type": "object"
          },
          {
            "properties": {
              "id": {
                "description": "\nThe financial account id: Can be found from the [List linked accounts](/openapi/payments_api/#operation/listLinkedAccounts) endpoint\n",
                "type": "string"
              },
              "type": {
                "$ref": "#/components/schemas/payments__CounterPartyIncomingTransferType"
              }
            },
            "required": [
              "id",
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "payments__CounterPartyIncomingTransfer": {
        "description": "Counterparty Details for the transfer",
        "discriminator": {
          "mapping": {
            "BANK": "#/components/schemas/payments__CounterPartyBankDetails"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/payments__CounterPartyBankDetails"
          }
        ],
        "type": "object"
      },
      "payments__CounterPartyIncomingTransferType": {
        "enum": [
          "BANK"
        ],
        "type": "string"
      },
      "payments__CounterPartyResponse": {
        "description": "Counterparty Details for the transfer - Currently only supports vendors that are returned in the \nresponse from the /vendors endpoint\nBOOK_TRANSFER is a limited feature. Please reach out if you are interested.\n    ",
        "discriminator": {
          "mapping": {
            "BANK_ACCOUNT": "#/components/schemas/payments__BankAccountDetailsResponse",
            "BOOK_TRANSFER": "#/components/schemas/payments__BookTransferDetailsResponse",
            "VENDOR": "#/components/schemas/payments__VendorDetailsResponse"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/payments__VendorDetailsResponse"
          }
        ],
        "type": "object"
      },
      "payments__CounterPartyResponseType": {
        "enum": [
          "VENDOR",
          "BOOK_TRANSFER",
          "BANK_ACCOUNT"
        ],
        "type": "string"
      },
      "payments__CounterPartyType": {
        "enum": [
          "VENDOR",
          "BOOK_TRANSFER"
        ],
        "type": "string"
      },
      "payments__CreateIncomingTransferRequest": {
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/payments__Money"
          },
          "counterparty": {
            "$ref": "#/components/schemas/payments__CounterPartyIncomingTransfer"
          },
          "description": {
            "description": " \nDescription of the transfer for internal use. Not exposed externally. \n",
            "type": "string"
          },
          "receiving_account": {
            "$ref": "#/components/schemas/payments__ReceivingAccount"
          }
        },
        "required": [
          "amount",
          "counterparty",
          "description",
          "receiving_account"
        ],
        "type": "object"
      },
      "payments__CreateTransferRequest": {
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/payments__Money"
          },
          "approval_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payments__ApprovalType"
              }
            ],
            "nullable": true
          },
          "counterparty": {
            "$ref": "#/components/schemas/payments__CounterParty"
          },
          "description": {
            "description": "Description of the transfer for internal use. Not exposed externally.",
            "type": "string"
          },
          "external_memo": {
            "description": "External memo for the transfer. `Payment Instructions` for Wires and the `Entry Description` for ACH payments. \nMust be at most 90 characters for `ACH` and `WIRE` transactions\nand at most 40 characters for `CHEQUES`\n",
            "maxLength": 90,
            "type": "string"
          },
          "is_ppro_enabled": {
            "description": "When set to true, add Principal Protection (PPRO) to the transaction.\n PPRO means Brex will cover any fees charged by intemediary or receiving banks. PPRO charges will be billed separately\n in a monthly statement. PPRO is only available for international wire transactions.\n",
            "type": "boolean"
          },
          "originating_account": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payments__OriginatingAccount"
              },
              {
                "description": "Brex originating account details. Account IDs are returned by the /accounts\nendpoint. This endpoint currently only supports accounts with instrument type `CASH` (Brex business accounts)\nCurrently only USD transfers are supported and amount should be positive\n"
              }
            ]
          }
        },
        "required": [
          "amount",
          "counterparty",
          "description",
          "external_memo",
          "originating_account"
        ],
        "type": "object"
      },
      "payments__CreateVendorRequest": {
        "properties": {
          "company_name": {
            "description": "Name for vendor. The name must be unique.",
            "type": "string"
          },
          "email": {
            "description": "Email for vendor.",
            "format": "email",
            "nullable": true,
            "type": "string"
          },
          "payment_accounts": {
            "description": "Payment accounts associated with the vendor.",
            "items": {
              "$ref": "#/components/schemas/payments__PaymentAccountRequest"
            },
            "nullable": true,
            "type": "array"
          },
          "phone": {
            "description": "Phone number for vendor.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "company_name"
        ],
        "type": "object"
      },
      "payments__DomesticWireDetailsRequest": {
        "allOf": [
          {
            "description": "Payment Instruments associated with the vendor.\nEach vendor can only have one payment account per payment instrument type. For instance, a vendor may have associated details for each of ACH, DOMESTIC_WIRE, and CHEQUE, but they cannot have 2 entries for ACH. If you modify a vendor's existing payment instrument type with new details, it will overwrite any previous data.\n",
            "type": "object"
          },
          {
            "properties": {
              "account_number": {
                "type": "string"
              },
              "address": {
                "$ref": "#/components/schemas/payments__Address"
              },
              "beneficiary_name": {
                "nullable": true,
                "type": "string"
              },
              "routing_number": {
                "description": "The routing number must follow proper format.",
                "type": "string"
              },
              "type": {
                "$ref": "#/components/schemas/payments__PaymentDetailsTypeRequest"
              }
            },
            "required": [
              "account_number",
              "address",
              "routing_number",
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "payments__DomesticWireDetailsResponse": {
        "allOf": [
          {
            "type": "object"
          },
          {
            "properties": {
              "account_number": {
                "type": "string"
              },
              "address": {
                "$ref": "#/components/schemas/payments__Address"
              },
              "payment_instrument_id": {
                "description": "Payment Instrument ID that can be passed to the /transfers endpoint to trigger a transfer.\nThe type of the payment instrument dictates the method.\n",
                "type": "string"
              },
              "routing_number": {
                "type": "string"
              },
              "type": {
                "$ref": "#/components/schemas/payments__PaymentDetailsTypeResponse"
              }
            },
            "required": [
              "account_number",
              "address",
              "payment_instrument_id",
              "routing_number",
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "payments__InternationalWireDetailsResponse": {
        "allOf": [
          {
            "type": "object"
          },
          {
            "properties": {
              "address": {
                "$ref": "#/components/schemas/payments__Address"
              },
              "beneficiary_bank_name": {
                "description": "Name of counterparty's bank",
                "nullable": true,
                "type": "string"
              },
              "iban": {
                "description": "Counterparty's international bank account number",
                "type": "string"
              },
              "payment_instrument_id": {
                "description": "Payment Instrument ID that can be passed to the /transfers endpoint to trigger a transfer.\nThe type of the payment instrument dictates the method.\n",
                "type": "string"
              },
              "swift_code": {
                "description": "Counterparty's `SWIFT` code",
                "type": "string"
              },
              "type": {
                "$ref": "#/components/schemas/payments__PaymentDetailsTypeResponse"
              }
            },
            "required": [
              "address",
              "iban",
              "payment_instrument_id",
              "swift_code",
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "payments__Money": {
        "description": "\nMoney fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination\nof the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700.\n",
        "properties": {
          "amount": {
            "description": "The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.",
            "example": 700,
            "format": "int64",
            "type": "integer"
          },
          "currency": {
            "default": "USD",
            "description": "The type of currency, in ISO 4217 format.",
            "example": "USD",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "amount"
        ],
        "type": "object"
      },
      "payments__OriginatingAccount": {
        "description": "Originating account details for the transfer",
        "discriminator": {
          "mapping": {
            "BREX_CASH": "#/components/schemas/payments__BrexCashAccountDetails"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/payments__BrexCashAccountDetails"
          }
        ],
        "type": "object"
      },
      "payments__OriginatingAccountResponse": {
        "description": "Originating account details for the transfer",
        "discriminator": {
          "mapping": {
            "BREX_CASH": "#/components/schemas/payments__BrexCashAccountDetailsResponse"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/payments__BrexCashAccountDetailsResponse"
          }
        ],
        "type": "object"
      },
      "payments__OriginatingAccountResponseType": {
        "enum": [
          "BREX_CASH"
        ],
        "type": "string"
      },
      "payments__OriginatingAccountType": {
        "enum": [
          "BREX_CASH"
        ],
        "type": "string"
      },
      "payments__Page_BankConnection_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/payments__BankConnection"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "payments__Page_Transfer_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/payments__Transfer"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "payments__Page_VendorResponse_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/payments__VendorResponse"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "payments__PaymentAccountDetails": {
        "description": "Payment Instruments associated with the vendor.\nEach vendor can only have one payment account per payment instrument type. For instance, a vendor may have associated details for each of ACH, DOMESTIC_WIRE, and CHEQUE, but they cannot have 2 entries for ACH. If you modify a vendor's existing payment instrument type with new details, it will overwrite any previous data.\n",
        "discriminator": {
          "mapping": {
            "ACH": "#/components/schemas/payments__ACHDetailsRequest",
            "CHEQUE": "#/components/schemas/payments__ChequeDetailsRequest",
            "DOMESTIC_WIRE": "#/components/schemas/payments__DomesticWireDetailsRequest"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/payments__ACHDetailsRequest"
          },
          {
            "$ref": "#/components/schemas/payments__DomesticWireDetailsRequest"
          },
          {
            "$ref": "#/components/schemas/payments__ChequeDetailsRequest"
          }
        ],
        "type": "object"
      },
      "payments__PaymentAccountDetailsResponse": {
        "discriminator": {
          "mapping": {
            "ACH": "#/components/schemas/payments__ACHDetailsResponse",
            "CHEQUE": "#/components/schemas/payments__ChequeDetailsResponse",
            "DOMESTIC_WIRE": "#/components/schemas/payments__DomesticWireDetailsResponse",
            "INTERNATIONAL_WIRE": "#/components/schemas/payments__InternationalWireDetailsResponse"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/payments__ACHDetailsResponse"
          },
          {
            "$ref": "#/components/schemas/payments__DomesticWireDetailsResponse"
          },
          {
            "$ref": "#/components/schemas/payments__ChequeDetailsResponse"
          },
          {
            "$ref": "#/components/schemas/payments__InternationalWireDetailsResponse"
          }
        ],
        "type": "object"
      },
      "payments__PaymentAccountRequest": {
        "properties": {
          "details": {
            "$ref": "#/components/schemas/payments__PaymentAccountDetails"
          }
        },
        "required": [
          "details"
        ],
        "type": "object"
      },
      "payments__PaymentAccountResponse": {
        "properties": {
          "details": {
            "$ref": "#/components/schemas/payments__PaymentAccountDetailsResponse"
          }
        },
        "required": [
          "details"
        ],
        "type": "object"
      },
      "payments__PaymentDetailsTypeRequest": {
        "enum": [
          "ACH",
          "DOMESTIC_WIRE",
          "CHEQUE"
        ],
        "type": "string"
      },
      "payments__PaymentDetailsTypeResponse": {
        "enum": [
          "ACH",
          "DOMESTIC_WIRE",
          "CHEQUE",
          "INTERNATIONAL_WIRE"
        ],
        "type": "string"
      },
      "payments__PaymentType": {
        "enum": [
          "ACH",
          "DOMESTIC_WIRE",
          "CHEQUE",
          "INTERNATIONAL_WIRE",
          "BOOK_TRANSFER",
          "STABLECOIN"
        ],
        "type": "string"
      },
      "payments__ReceivingAccount": {
        "description": "Receiving account details for the transfer",
        "discriminator": {
          "mapping": {
            "BREX_CASH": "#/components/schemas/payments__BrexCashDetails"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/payments__BrexCashDetails"
          }
        ],
        "type": "object"
      },
      "payments__ReceivingAccountType": {
        "enum": [
          "BREX_CASH"
        ],
        "type": "string"
      },
      "payments__Recipient": {
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/payments__RecipientType"
          }
        },
        "required": [
          "id",
          "type"
        ],
        "type": "object"
      },
      "payments__RecipientType": {
        "description": "Specifies the type of the recipient. \n`ACCOUNT_ID` is the ID of a Brex Business account.\n`PAYMENT_INSTRUMENT_ID` is the ID of Payment Instrument of the receiving Brex account.\n",
        "enum": [
          "ACCOUNT_ID",
          "PAYMENT_INSTRUMENT_ID"
        ],
        "type": "string"
      },
      "payments__Transfer": {
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/payments__Money"
          },
          "cancellation_reason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payments__TransferCancellationReason"
              }
            ],
            "nullable": true
          },
          "counterparty": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payments__CounterPartyResponse"
              }
            ],
            "nullable": true
          },
          "created_at": {
            "description": "Date of transfer creation",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "creator_user_id": {
            "description": "User ID of the transfer initiator",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": "Description of the transfer",
            "nullable": true,
            "type": "string"
          },
          "display_name": {
            "description": "Human readable name for the transaction",
            "nullable": true,
            "type": "string"
          },
          "estimated_delivery_date": {
            "description": "Estimated delivery date for transfer",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "external_memo": {
            "description": "External memo for the transfer. `Payment Instructions` for Wires and the `Entry Description` for ACH payments. \nMust be at most 90 characters for `ACH` and `WIRE` transactions\nand at most 40 characters for `CHEQUES`\n",
            "maxLength": 90,
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Unique ID associated with the transfer",
            "type": "string"
          },
          "imad": {
            "description": "IMAD (Input Message Accountability Data) of the wire",
            "nullable": true,
            "type": "string"
          },
          "is_ppro_enabled": {
            "description": "If Principal Protection (PPRO) is enabled",
            "nullable": true,
            "type": "boolean"
          },
          "omad": {
            "description": "OMAD (Output Message Accountability Data) of the wire",
            "nullable": true,
            "type": "string"
          },
          "originating_account": {
            "$ref": "#/components/schemas/payments__OriginatingAccountResponse"
          },
          "payment_type": {
            "$ref": "#/components/schemas/payments__PaymentType"
          },
          "process_date": {
            "description": "Transaction processing date",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/payments__TransferStatus"
          }
        },
        "required": [
          "amount",
          "id",
          "originating_account",
          "payment_type",
          "status"
        ],
        "type": "object"
      },
      "payments__TransferCancellationReason": {
        "description": "`USER_CANCELLED`: The transfer was canceled.\n`INSUFFICIENT_FUNDS`: The transfer could not be sent due to insufficient funds.\n`APPROVAL_DENIED`: The transfer was not sent because it was denied.\n`BLOCKED_BY_POSITIVE_PAY`: The transfer was blocked because of the ACH debit settings.\n",
        "enum": [
          "USER_CANCELLED",
          "INSUFFICIENT_FUNDS",
          "APPROVAL_DENIED",
          "BLOCKED_BY_POSITIVE_PAY"
        ],
        "type": "string"
      },
      "payments__TransferStatus": {
        "description": "`PROCESSING`: We have started to process the sending or receiving of this transaction.\n`SCHEDULED`: The transaction is scheduled to enter the `PROCESSING` status.\n`PENDING_APPROVAL`: The transaction requires approval before it can enter the `SCHEDULED` or `PROCESSING` status.\n`FAILED`: A grouping of multiple terminal states that prevented the transaction from completing.\nThis includes a a user-cancellation, approval being denied, insufficient funds, failed verifications, etc.\n`PROCESSED`: The money movement has been fully completed, which could mean money sent has arrived.\n",
        "enum": [
          "PROCESSING",
          "SCHEDULED",
          "PENDING_APPROVAL",
          "FAILED",
          "PROCESSED"
        ],
        "type": "string"
      },
      "payments__UpdateVendorRequest": {
        "properties": {
          "beneficiary_name": {
            "description": "Name for the Beneficiary",
            "nullable": true,
            "type": "string"
          },
          "company_name": {
            "description": "Name for vendor",
            "nullable": true,
            "type": "string"
          },
          "email": {
            "description": "Email for vendor",
            "format": "email",
            "nullable": true,
            "type": "string"
          },
          "payment_accounts": {
            "description": "To update payment instruments, we require the entire payload for each payment instrument that is being updated.\n",
            "items": {
              "$ref": "#/components/schemas/payments__PaymentAccountRequest"
            },
            "nullable": true,
            "type": "array"
          },
          "phone": {
            "description": "Phone number for vendor",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "payments__VendorDetails": {
        "allOf": [
          {
            "description": "Counterparty Details for the transfer",
            "type": "object"
          },
          {
            "properties": {
              "payment_instrument_id": {
                "description": "ID of the vendor's payment instrument: this will dictate the payment method and the\ncounterparty of the transaction.\nThe payment instrument ID is returned from the /vendors response and the type of the\ninstrument will dictate the payment method.\neg. Passing an instrument ID of type ACH will trigger an ACH payment to the associated vendor.\nSince a payment instrument can be updated while retaining the same payment_instrument_id, \nplease make sure to double check the details.\n",
                "type": "string"
              },
              "type": {
                "$ref": "#/components/schemas/payments__CounterPartyType"
              }
            },
            "required": [
              "payment_instrument_id",
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "payments__VendorDetailsResponse": {
        "allOf": [
          {
            "description": "Counterparty Details for the transfer - Currently only supports vendors that are returned in the \nresponse from the /vendors endpoint\nBOOK_TRANSFER is a limited feature. Please reach out if you are interested.\n    ",
            "type": "object"
          },
          {
            "properties": {
              "account_number": {
                "description": "Account number of a bank account (or IBAN code for international transfer).",
                "nullable": true,
                "type": "string"
              },
              "id": {
                "description": "Vendor ID returned from `/vendors` endpoint",
                "type": "string"
              },
              "payment_instrument_id": {
                "type": "string"
              },
              "routing_number": {
                "description": "Routing number of a bank account (or SWIFT/BIC code for international transfer).",
                "nullable": true,
                "type": "string"
              },
              "type": {
                "$ref": "#/components/schemas/payments__CounterPartyResponseType"
              }
            },
            "required": [
              "id",
              "payment_instrument_id",
              "type"
            ]
          }
        ],
        "type": "object"
      },
      "payments__VendorResponse": {
        "properties": {
          "company_name": {
            "nullable": true,
            "type": "string"
          },
          "email": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Vendor ID: Can be passed to /transfers endpoint to specify counterparty.\n",
            "type": "string"
          },
          "payment_accounts": {
            "items": {
              "$ref": "#/components/schemas/payments__PaymentAccountResponse"
            },
            "nullable": true,
            "type": "array"
          },
          "phone": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "team__AccountType": {
        "enum": [
          "BREX_CLASSIC",
          "BREX_EMPOWER"
        ],
        "type": "string"
      },
      "team__AddUserRequest": {
        "properties": {
          "cost_center_id": {
            "nullable": true,
            "type": "string"
          },
          "department_id": {
            "nullable": true,
            "type": "string"
          },
          "email": {
            "format": "email",
            "type": "string"
          },
          "first_name": {
            "minLength": 1,
            "type": "string"
          },
          "last_name": {
            "minLength": 1,
            "type": "string"
          },
          "legal_entity_id": {
            "description": "The legal entity to assign the user to. Defaults to the account's default legal entity.",
            "nullable": true,
            "type": "string"
          },
          "location_id": {
            "nullable": true,
            "type": "string"
          },
          "manager_id": {
            "nullable": true,
            "type": "string"
          },
          "metadata": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "The metadata or customized attributes of the user. Maximum number of entries: 100",
            "nullable": true,
            "type": "object"
          },
          "title_id": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "email",
          "first_name",
          "last_name"
        ],
        "type": "object"
      },
      "team__Address": {
        "description": "Company business address (must be in the US; no PO box or virtual/forwarding addresses allowed).",
        "properties": {
          "city": {
            "description": "City, district, suburb, town, or village.",
            "nullable": true,
            "type": "string"
          },
          "country": {
            "description": "Two-letter country code (ISO 3166-1 alpha-2).",
            "nullable": true,
            "type": "string"
          },
          "line1": {
            "description": "Address line 1, no PO Box.",
            "nullable": true,
            "type": "string"
          },
          "line2": {
            "description": "Address line 2 (e.g., apartment, suite, unit, or building).",
            "nullable": true,
            "type": "string"
          },
          "phone_number": {
            "description": "Phone number.",
            "nullable": true,
            "type": "string"
          },
          "postal_code": {
            "description": "ZIP or postal code.",
            "nullable": true,
            "type": "string"
          },
          "state": {
            "description": "For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "team__BooleanListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "Boolean list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "type": "boolean"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "BOOLEAN"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Boolean list value",
        "type": "object"
      },
      "team__BooleanValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "Boolean value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "nullable": true,
            "type": "boolean"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "BOOLEAN"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Boolean value",
        "type": "object"
      },
      "team__Card": {
        "description": "\nOnly cards with limit_type = CARD have spend_controls\n",
        "properties": {
          "billing_address": {
            "$ref": "#/components/schemas/team__Address"
          },
          "budget_id": {
            "nullable": true,
            "type": "string"
          },
          "card_name": {
            "nullable": true,
            "type": "string"
          },
          "card_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__CardType"
              }
            ],
            "nullable": true
          },
          "created_at": {
            "description": "The timestamp when the card was created",
            "example": "2019-08-24T14:15:22Z",
            "type": "string"
          },
          "expiration_date": {
            "$ref": "#/components/schemas/team__CardExpiration"
          },
          "has_been_transferred": {
            "description": "\nIndicates whether a card has been transferred. Transferred cards have a spending restriction: we only allow transactions \\\nat online vendors where this card was previously used before the transfer.\n",
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "last_four": {
            "type": "string"
          },
          "limit_type": {
            "$ref": "#/components/schemas/team__LimitType"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__Address"
              }
            ],
            "nullable": true
          },
          "metadata": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "\nSet of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here.\nLimitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters. \n",
            "nullable": true,
            "type": "object"
          },
          "owner": {
            "$ref": "#/components/schemas/team__CardOwner"
          },
          "partner": {
            "description": "\nThe partner that manages this card, if any.\n",
            "nullable": true,
            "type": "string"
          },
          "spend_controls": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__SpendControl"
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__CardStatus"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "billing_address",
          "created_at",
          "expiration_date",
          "id",
          "last_four",
          "limit_type",
          "owner"
        ],
        "type": "object"
      },
      "team__CardAttributePreferences": {
        "properties": {
          "three_domain_secure_enabled_preference": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__ThreeDomainSecureEnabledPreference"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "team__CardExpiration": {
        "description": "\nCard expiration year and month. Cards expire on the last day of the expiration month.\n\nThe expiration date is in UTC for cards starting with 555671, 428803 and 485932.\nAnd the expiration date is in PST for cards starting with 511572.\n",
        "properties": {
          "month": {
            "format": "int32",
            "type": "integer"
          },
          "year": {
            "format": "int32",
            "type": "integer"
          }
        },
        "required": [
          "month",
          "year"
        ],
        "type": "object"
      },
      "team__CardNumberResponse": {
        "description": "\nCard number, CVV, and expiration date of a card.\n",
        "properties": {
          "cvv": {
            "type": "string"
          },
          "expiration_date": {
            "$ref": "#/components/schemas/team__CardExpiration"
          },
          "holder_name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "number": {
            "type": "string"
          }
        },
        "required": [
          "cvv",
          "expiration_date",
          "holder_name",
          "id",
          "number"
        ],
        "type": "object"
      },
      "team__CardOwner": {
        "discriminator": {
          "mapping": {
            "USER": "#/components/schemas/team__UserOwner"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/team__UserOwner"
          }
        ],
        "type": "object"
      },
      "team__CardStatus": {
        "enum": [
          "ACTIVE",
          "SHIPPED",
          "LOCKED",
          "TERMINATED"
        ],
        "type": "string"
      },
      "team__CardType": {
        "enum": [
          "VIRTUAL",
          "PHYSICAL"
        ],
        "type": "string"
      },
      "team__ChangeCardReason": {
        "description": "\nReason for card termination.\n",
        "enum": [
          "CARD_DAMAGED",
          "CARD_LOST",
          "CARD_NOT_RECEIVED",
          "DO_NOT_NEED_PHYSICAL_CARD",
          "DO_NOT_NEED_VIRTUAL_CARD",
          "FRAUD",
          "OTHER"
        ],
        "type": "string"
      },
      "team__CompanyResponse": {
        "properties": {
          "accountType": {
            "$ref": "#/components/schemas/team__AccountType"
          },
          "id": {
            "type": "string"
          },
          "legal_name": {
            "type": "string"
          },
          "mailing_address": {
            "$ref": "#/components/schemas/team__Address"
          }
        },
        "required": [
          "accountType",
          "id",
          "legal_name",
          "mailing_address"
        ],
        "type": "object"
      },
      "team__CostCenterResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "description": "Name of the cost center",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "team__CreateCardRequest": {
        "description": "\nThe `spend_controls` field is required when `limit_type` = `CARD`.\nThe `shipping_address` field is required for physical cards, and the first 2 lines of the address must be under 60 characters long.\n",
        "properties": {
          "card_attribute_preferences": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__CardAttributePreferences"
              }
            ],
            "nullable": true
          },
          "card_name": {
            "minLength": 1,
            "type": "string"
          },
          "card_type": {
            "$ref": "#/components/schemas/team__CardType"
          },
          "limit_type": {
            "$ref": "#/components/schemas/team__LimitType"
          },
          "mailing_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__Address"
              }
            ],
            "nullable": true
          },
          "metadata": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "\nSet of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here.\nLimitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters. \n",
            "nullable": true,
            "type": "object"
          },
          "owner": {
            "$ref": "#/components/schemas/team__CardOwner"
          },
          "spend_controls": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__SpendControlRequest"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "card_name",
          "card_type",
          "limit_type",
          "owner"
        ],
        "type": "object"
      },
      "team__CreateDepartmentRequest": {
        "properties": {
          "description": {
            "description": "Description of the department",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "Name of the department",
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "team__CreateLocationRequest": {
        "properties": {
          "description": {
            "description": "Description of the location",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "Name of the location",
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "team__CreateTitleRequest": {
        "properties": {
          "name": {
            "description": "Name of the title",
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "team__CreateUserRequest": {
        "properties": {
          "cost_center_id": {
            "nullable": true,
            "type": "string"
          },
          "department_id": {
            "nullable": true,
            "type": "string"
          },
          "email": {
            "format": "email",
            "type": "string"
          },
          "first_name": {
            "minLength": 1,
            "type": "string"
          },
          "last_name": {
            "minLength": 1,
            "type": "string"
          },
          "legal_entity_id": {
            "nullable": true,
            "type": "string"
          },
          "location_id": {
            "nullable": true,
            "type": "string"
          },
          "manager_id": {
            "nullable": true,
            "type": "string"
          },
          "metadata": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "The metadata or customized attributes of the user. Maximum number of entries: 100",
            "nullable": true,
            "type": "object"
          },
          "role_name": {
            "description": "The name of the role to assign the user, exactly as the Brex dashboard shows it when inviting a user: `Employee`, `Bookkeeper`, `Card admin`, `User management admin`, `Account admin`, `AP clerk`, or a custom role's `display_name` from `GET /v2/roles`. You can assign only the [roles available on your product tier](https://www.brex.com/support/brex-role-types-and-permissions). Defaults to the employee role. The user gets physical and virtual card access by default.",
            "nullable": true,
            "type": "string"
          },
          "title_id": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "email",
          "first_name",
          "last_name"
        ],
        "type": "object"
      },
      "team__CustomField": {
        "properties": {
          "display_name": {
            "description": "The display name of the custom field.",
            "nullable": true,
            "type": "string"
          },
          "key": {
            "description": "The key of the custom field.",
            "type": "string"
          },
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
              },
              {
                "description": "The value of the custom field.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/team__StringValue"
                  },
                  {
                    "$ref": "#/components/schemas/team__DecimalValue"
                  },
                  {
                    "$ref": "#/components/schemas/team__BooleanValue"
                  },
                  {
                    "$ref": "#/components/schemas/team__EnumValue"
                  },
                  {
                    "$ref": "#/components/schemas/team__TimestampValue"
                  },
                  {
                    "$ref": "#/components/schemas/team__DateValue"
                  },
                  {
                    "$ref": "#/components/schemas/team__MoneyValue"
                  },
                  {
                    "$ref": "#/components/schemas/team__OptionStringValue"
                  },
                  {
                    "$ref": "#/components/schemas/team__StringListValue"
                  },
                  {
                    "$ref": "#/components/schemas/team__DecimalListValue"
                  },
                  {
                    "$ref": "#/components/schemas/team__BooleanListValue"
                  },
                  {
                    "$ref": "#/components/schemas/team__EnumListValue"
                  },
                  {
                    "$ref": "#/components/schemas/team__TimestampListValue"
                  },
                  {
                    "$ref": "#/components/schemas/team__DateListValue"
                  },
                  {
                    "$ref": "#/components/schemas/team__MoneyListValue"
                  },
                  {
                    "$ref": "#/components/schemas/team__OptionStringListValue"
                  }
                ]
              }
            ]
          }
        },
        "required": [
          "key",
          "value"
        ],
        "type": "object"
      },
      "team__CustomField.ValueWrapper": {
        "description": "Base class for custom field values",
        "properties": {
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          },
          "value_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__CustomFieldValueType"
              },
              {
                "description": "The type of the custom field value."
              }
            ]
          }
        },
        "required": [
          "data_type",
          "value_type"
        ],
        "type": "object"
      },
      "team__CustomField.ValueWrapper.MultipleValueWrapper": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "Multiple value wrapper for custom fields",
        "properties": {
          "value_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__CustomFieldValueType"
              },
              {
                "description": "The type of the custom field value."
              }
            ]
          }
        },
        "required": [
          "value_type"
        ],
        "type": "object"
      },
      "team__CustomField.ValueWrapper.SingleValueWrapper": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "Single value wrapper for custom fields",
        "properties": {
          "value_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__CustomFieldValueType"
              },
              {
                "description": "The type of the custom field value."
              }
            ]
          }
        },
        "required": [
          "value_type"
        ],
        "type": "object"
      },
      "team__CustomFieldDataType": {
        "description": "The type of the custom field data.",
        "enum": [
          "STRING",
          "DECIMAL",
          "BOOLEAN",
          "ENUM",
          "TIMESTAMP",
          "DATE",
          "MONEY",
          "OPTION_STRING"
        ],
        "required": [
          "true"
        ],
        "type": "string"
      },
      "team__CustomFieldValueType": {
        "description": "The type of the custom field value.",
        "enum": [
          "SINGLE_VALUE",
          "LIST"
        ],
        "required": [
          "true"
        ],
        "type": "string"
      },
      "team__DateListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "Date list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "format": "date",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "DATE"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Date list value",
        "type": "object"
      },
      "team__DateValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "Date value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "DATE"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Date value",
        "type": "object"
      },
      "team__DecimalListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "Decimal list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "type": "number"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "DECIMAL"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Decimal list value",
        "type": "object"
      },
      "team__DecimalValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "Decimal value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "nullable": true,
            "type": "number"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "DECIMAL"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Decimal value",
        "type": "object"
      },
      "team__DepartmentResponse": {
        "properties": {
          "description": {
            "description": "Description of the department",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "description": "Name of the department",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "team__EnumListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "Enum list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "format": "enum",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "ENUM"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Enum list value",
        "type": "object"
      },
      "team__EnumValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "Enum value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "format": "enum",
            "nullable": true,
            "type": "string"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "ENUM"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Enum value",
        "type": "object"
      },
      "team__LegalEntity": {
        "description": "\nA Brex legal entity.\n",
        "properties": {
          "billingAddress": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__Address"
              },
              {
                "description": "\nThe billing address of this legal entity. Also used as billing address for cards issued to users who belong to this entity.\n"
              }
            ]
          },
          "createdAt": {
            "description": "\nTimestamp, in UTC, when this legal entity was created.\n",
            "format": "date-time",
            "type": "string"
          },
          "displayName": {
            "description": "\nThe display name of this legal entity.\n",
            "type": "string"
          },
          "id": {
            "description": "\nThe ID of this legal entity.\n",
            "type": "string"
          },
          "isDefault": {
            "description": "\nWhether this is the default entity of the account.\n",
            "type": "boolean"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__LegalEntityStatus"
              },
              {
                "description": "\nThe current status of this legal entity.\n"
              }
            ]
          }
        },
        "required": [
          "billingAddress",
          "createdAt",
          "displayName",
          "id",
          "status"
        ],
        "title": "\nLegal Entity\n",
        "type": "object"
      },
      "team__LegalEntityStatus": {
        "description": "\nThe possible statuses for an entity's verification in Brex.\n",
        "enum": [
          "UNSUBMITTED",
          "UNVERIFIED",
          "IN_PROGRESS",
          "VERIFIED",
          "REJECTED"
        ],
        "type": "string"
      },
      "team__LimitType": {
        "description": "\n`limit_type = CARD` for vendor cards. Vendor cards must have a `card_type` of `VIRTUAL` \nand do not rely on the user specific limit. \n\nFor corporate cards, `limit_type = USER`.\n\nLearn more about different card types [here](https://support.brex.com/what-are-the-different-types-of-cards-i-can-get/).\n",
        "enum": [
          "CARD",
          "USER"
        ],
        "type": "string"
      },
      "team__LocationResponse": {
        "properties": {
          "description": {
            "description": "Description of the location",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "description": "Name of the location",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "team__LockCardRequest": {
        "description": "Parameters for locking a card.",
        "properties": {
          "description": {
            "description": "Description for locking a card",
            "nullable": true,
            "type": "string"
          },
          "reason": {
            "$ref": "#/components/schemas/team__ChangeCardReason"
          }
        },
        "required": [
          "reason"
        ],
        "type": "object"
      },
      "team__LockedMerchantDetails": {
        "description": "\nMerchant details used for restricting or blocking transactions.\n",
        "properties": {
          "name": {
            "description": "The name of the merchant.",
            "example": "Github",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "team__Money": {
        "description": "\nMoney fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination\nof the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700.\n",
        "properties": {
          "amount": {
            "description": "The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.",
            "example": 700,
            "format": "int64",
            "type": "integer"
          },
          "currency": {
            "default": "USD",
            "description": "The type of currency, in ISO 4217 format.",
            "example": "USD",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "amount"
        ],
        "type": "object"
      },
      "team__MoneyListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "Money list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/team__Money"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "MONEY"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Money list value",
        "type": "object"
      },
      "team__MoneyValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "Money value for a custom field",
        "properties": {
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__Money"
              },
              {
                "description": "The data of the custom field."
              }
            ],
            "nullable": true
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "MONEY"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Money value",
        "type": "object"
      },
      "team__OptionString": {
        "description": "Option string fields have a label and a identifier.",
        "properties": {
          "option_id": {
            "description": "The identifier when custom field data is of type option string.",
            "nullable": true,
            "type": "string"
          },
          "option_label": {
            "description": "The label when custom field data is of type option string.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "team__OptionStringListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "Option string list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/team__OptionString"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "OPTION_STRING"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Option string list value",
        "type": "object"
      },
      "team__OptionStringValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "Option string value for a custom field",
        "properties": {
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__OptionString"
              },
              {
                "description": "The data of the custom field."
              }
            ],
            "nullable": true
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "OPTION_STRING"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Option string value",
        "type": "object"
      },
      "team__OwnerType": {
        "enum": [
          "USER"
        ],
        "type": "string"
      },
      "team__Page_Card_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/team__Card"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "team__Page_CostCenterResponse_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/team__CostCenterResponse"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "team__Page_DepartmentResponse_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/team__DepartmentResponse"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "team__Page_LegalEntity_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/team__LegalEntity"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "team__Page_LocationResponse_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/team__LocationResponse"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "team__Page_RoleResponse_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/team__RoleResponse"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "team__Page_TitleResponse_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/team__TitleResponse"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "team__Page_UserResponse_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/team__UserResponse"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "team__RoleResponse": {
        "properties": {
          "description": {
            "description": "Description of the role",
            "nullable": true,
            "type": "string"
          },
          "display_name": {
            "description": "Display name of the role",
            "type": "string"
          },
          "id": {
            "description": "The role ID",
            "type": "string"
          },
          "is_custom": {
            "description": "Whether this is a custom role",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "display_name",
          "is_custom"
        ],
        "type": "object"
      },
      "team__SecureEmailForCardDetailsRequest": {
        "properties": {
          "expiry_days": {
            "description": "Link expiry in number of days. Defaults to 30",
            "format": "int32",
            "maximum": 30,
            "nullable": true,
            "type": "integer"
          },
          "message": {
            "description": "Message to send with the card details",
            "nullable": true,
            "type": "string"
          },
          "recipient_email": {
            "description": "Email address to send card details to",
            "type": "string"
          },
          "sender_name": {
            "description": "Sender name. Shows up in the subject of the email",
            "type": "string"
          }
        },
        "required": [
          "recipient_email",
          "sender_name"
        ],
        "type": "object"
      },
      "team__SpendControl": {
        "properties": {
          "allowed_merchant_details": {
            "description": "\nList of merchant details where card transactions are allowed. Empty if no allowed merchant details are configured.\n",
            "example": "[{\"name\": \"Github\"}, {\"name\": \"AWS\"}]",
            "items": {
              "$ref": "#/components/schemas/team__LockedMerchantDetails"
            },
            "nullable": true,
            "type": "array"
          },
          "blocked_merchant_details": {
            "description": "\nList of merchant details where card transactions are blocked. Empty if no blocked merchant details are configured.\n",
            "example": "[{\"name\": \"Apple\"}, {\"name\": \"Amazon\"}]",
            "items": {
              "$ref": "#/components/schemas/team__LockedMerchantDetails"
            },
            "nullable": true,
            "type": "array"
          },
          "lock_after_date": {
            "description": "The `lock_after_date` is in UTC.",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "reason": {
            "nullable": true,
            "type": "string"
          },
          "spend_available": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__Money"
              }
            ],
            "nullable": true
          },
          "spend_duration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__SpendDuration"
              }
            ],
            "nullable": true
          },
          "spend_limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__Money"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "team__SpendControlRequest": {
        "description": "\nWhen `limit_type = CARD`, `spend_controls` must be set. When `limit type = USER`, `spend_controls` must be `null`.\n",
        "properties": {
          "allowed_merchant_details": {
            "description": "\nList of merchants where card transactions are allowed. Cannot be used together with blocked_merchant_details. Maximum 50 \nmerchant details.\n",
            "example": "[{\"name\": \"Github\"}, {\"name\": \"AWS\"}]",
            "items": {
              "$ref": "#/components/schemas/team__LockedMerchantDetails"
            },
            "maxItems": 50,
            "nullable": true,
            "type": "array"
          },
          "blocked_merchant_details": {
            "description": "\nList of merchants where card transactions are blocked. Cannot be used together with allowed_merchant_details. Maximum 50 \nmerchant details.\n",
            "example": "[{\"name\": \"Apple\"}, {\"name\": \"Amazon\"}]",
            "items": {
              "$ref": "#/components/schemas/team__LockedMerchantDetails"
            },
            "maxItems": 50,
            "nullable": true,
            "type": "array"
          },
          "lock_after_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "parent_budget_id": {
            "description": "\nIf using the Empower platform, a new `budget` will be created for this card. You can specify a `parent_budget` that your new\n`budget` will be nested under. If `parent_budget_id` is null, we will nest the new budget under the top-level account `budget`.\n",
            "nullable": true,
            "type": "string"
          },
          "policy_id": {
            "nullable": true,
            "type": "string"
          },
          "reason": {
            "nullable": true,
            "type": "string"
          },
          "spend_duration": {
            "$ref": "#/components/schemas/team__SpendDuration"
          },
          "spend_limit": {
            "$ref": "#/components/schemas/team__Money"
          }
        },
        "required": [
          "spend_duration",
          "spend_limit"
        ],
        "type": "object"
      },
      "team__SpendControlUpdateRequest": {
        "properties": {
          "allowed_merchant_details": {
            "description": "\nList of merchants where card transactions are allowed. Cannot be used together with blocked_merchant_details. Maximum 50 \nmerchant details.\n",
            "example": "[{\"name\": \"Github\"}, {\"name\": \"AWS\"}]",
            "items": {
              "$ref": "#/components/schemas/team__LockedMerchantDetails"
            },
            "maxItems": 50,
            "nullable": true,
            "type": "array"
          },
          "blocked_merchant_details": {
            "description": "\nList of merchants where card transactions are blocked. Cannot be used together with allowed_merchant_details. Maximum 50 \nmerchant details.\n",
            "example": "[{\"name\": \"Apple\"}, {\"name\": \"Amazon\"}]",
            "items": {
              "$ref": "#/components/schemas/team__LockedMerchantDetails"
            },
            "maxItems": 50,
            "nullable": true,
            "type": "array"
          },
          "lock_after_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "reason": {
            "nullable": true,
            "type": "string"
          },
          "spend_duration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__SpendDuration"
              }
            ],
            "nullable": true
          },
          "spend_limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__Money"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "team__SpendDuration": {
        "description": "\n    Spend limit refresh frequency\n    - MONTHLY: The spend limit refreshes every month\n    - QUARTERLY: The spend limit refreshes every quarter\n    - YEARLY: The spend limit refreshes every year\n    - ONE_TIME: The limit does not refresh\n",
        "enum": [
          "MONTHLY",
          "QUARTERLY",
          "YEARLY",
          "ONE_TIME"
        ],
        "type": "string"
      },
      "team__StringListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "String list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "STRING"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "String list value",
        "type": "object"
      },
      "team__StringValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "String value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "nullable": true,
            "type": "string"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "STRING"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "String value",
        "type": "object"
      },
      "team__TerminateCardRequest": {
        "description": "Parameters for terminating a card.",
        "properties": {
          "description": {
            "description": "Description for terminating a card",
            "nullable": true,
            "type": "string"
          },
          "reason": {
            "$ref": "#/components/schemas/team__ChangeCardReason"
          }
        },
        "required": [
          "reason"
        ],
        "type": "object"
      },
      "team__ThreeDomainSecureEnabledPreference": {
        "description": "\nWhether to enable 3-D secure protocol on this card. \n",
        "enum": [
          "THREE_DOMAIN_SECURE_ENABLED",
          "THREE_DOMAIN_SECURE_DISABLED"
        ],
        "type": "string"
      },
      "team__TimestampListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "Timestamp list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "format": "date-time",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "TIMESTAMP"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Timestamp list value",
        "type": "object"
      },
      "team__TimestampValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/team__CustomField.ValueWrapper"
          }
        ],
        "description": "Timestamp value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "data_type": {
            "description": "The type of the custom field data.",
            "enum": [
              "TIMESTAMP"
            ],
            "type": "string"
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Timestamp value",
        "type": "object"
      },
      "team__TitleResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "description": "Name of the title",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "team__UpdateCardRequest": {
        "properties": {
          "metadata": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "\nSet of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here.\nLimitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters. \n",
            "nullable": true,
            "type": "object"
          },
          "spend_controls": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__SpendControlUpdateRequest"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "team__UpdateDepartmentRequest": {
        "properties": {
          "description": {
            "description": "Description of the department. Pass null or an empty string to clear it.",
            "maxLength": 255,
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "Name of the department. Cannot be blank when supplied.",
            "maxLength": 255,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "team__UpdateLocationRequest": {
        "properties": {
          "description": {
            "description": "Description of the location. Pass null or an empty string to clear it.",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "Name of the location. Cannot be blank when supplied.",
            "minLength": 1,
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "team__UpdateTitleRequest": {
        "properties": {
          "name": {
            "description": "Name of the title. Cannot be blank or null when supplied.",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "team__UpdateUserRequest": {
        "properties": {
          "cost_center_id": {
            "nullable": true,
            "type": "string"
          },
          "department_id": {
            "nullable": true,
            "type": "string"
          },
          "legal_entity_id": {
            "description": "The legal entity this user reports into. Cannot be null.",
            "type": "string"
          },
          "location_id": {
            "nullable": true,
            "type": "string"
          },
          "manager_id": {
            "description": "The user id of the manager of this user",
            "nullable": true,
            "type": "string"
          },
          "metadata": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "The metadata or customized attributes of the user. Maximum number of entries: 100",
            "nullable": true,
            "type": "object"
          },
          "role_name": {
            "description": "The name of the role to give the user, exactly as the Brex dashboard shows it: `Employee`, `Bookkeeper`, `Card admin`, `User management admin`, `Account admin`, `AP clerk`, or a custom role's `display_name` from `GET /v2/roles`. You can assign only the [roles available on your product tier](https://www.brex.com/support/brex-role-types-and-permissions). Replaces the user's current role; their card access is unchanged.",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__UpdateUserStatus"
              }
            ],
            "nullable": true
          },
          "title_id": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "team__UpdateUserStatus": {
        "description": "\nAcceptable user status for update. The value you send is the status the user ends up in. Only transitions\nthat are legal for the user's current status are accepted; anything else is rejected with a 400.\n\n```\n  ACTIVE   <-->  DISABLED     suspend an active user / unsuspend a suspended one\n  INACTIVE <-->  ARCHIVED     archive an inactive user / restore an archived one\n\n  INVITED   -->  DELETED      withdraw an invitation and delete user\n  INACTIVE  -->  DELETED      delete an inactive user\n```\n",
        "enum": [
          "ACTIVE",
          "DISABLED",
          "ARCHIVED",
          "INACTIVE",
          "DELETED"
        ],
        "type": "string"
      },
      "team__UserOwner": {
        "allOf": [
          {
            "type": "object"
          },
          {
            "properties": {
              "type": {
                "$ref": "#/components/schemas/team__OwnerType"
              },
              "user_id": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "user_id"
            ]
          }
        ],
        "type": "object"
      },
      "team__UserResponse": {
        "properties": {
          "cost_center_id": {
            "nullable": true,
            "type": "string"
          },
          "custom_fields": {
            "description": "A list of custom field values associated with the user.",
            "items": {
              "$ref": "#/components/schemas/team__CustomField"
            },
            "nullable": true,
            "type": "array"
          },
          "department_id": {
            "nullable": true,
            "type": "string"
          },
          "email": {
            "description": "Email address of the user",
            "type": "string"
          },
          "first_name": {
            "description": "First name of the user",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_name": {
            "description": "Last name of the user",
            "type": "string"
          },
          "legal_entity_id": {
            "nullable": true,
            "type": "string"
          },
          "location_id": {
            "nullable": true,
            "type": "string"
          },
          "manager_id": {
            "description": "The user id of the manager of this user",
            "nullable": true,
            "type": "string"
          },
          "metadata": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "The metadata or customized attributes of the user. Maximum number of entries: 100",
            "nullable": true,
            "type": "object"
          },
          "remote_display_id": {
            "description": "Identifier that is displayed on the IDP or HR system, eg, if OKTA identifies you as user xyz",
            "nullable": true,
            "type": "string"
          },
          "role_name": {
            "description": "The user's role, as shown in the Brex dashboard.",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/team__UserStatus"
              }
            ],
            "nullable": true
          },
          "title_id": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "email",
          "first_name",
          "id",
          "last_name"
        ],
        "type": "object"
      },
      "team__UserStatus": {
        "description": "Status of the user",
        "enum": [
          "INVITED",
          "ACTIVE",
          "DISABLED",
          "PENDING_ACTIVATION",
          "INACTIVE",
          "ARCHIVED"
        ],
        "type": "string"
      },
      "transactions__CardAccount": {
        "properties": {
          "account_limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transactions__Money"
              }
            ],
            "nullable": true
          },
          "available_balance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transactions__Money"
              }
            ],
            "nullable": true
          },
          "current_balance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transactions__Money"
              }
            ],
            "nullable": true
          },
          "current_statement_period": {
            "$ref": "#/components/schemas/transactions__StatementPeriod"
          },
          "id": {
            "description": "ID of the card account",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transactions__Status"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "current_statement_period",
          "id"
        ],
        "type": "object"
      },
      "transactions__CardTransaction": {
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/transactions__Money"
          },
          "card_id": {
            "description": "ID of the card used for the transaction. Null when type is REWARDS_CREDIT or COLLECTION.",
            "nullable": true,
            "type": "string"
          },
          "card_metadata": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "\nSet of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here.\nLimitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters. \n",
            "nullable": true,
            "type": "object"
          },
          "card_transaction_operation_reference_id": {
            "description": "The card transaction operation reference ID. Null when type is REWARDS_CREDIT, COLLECTION, or BNPL_FEE.",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": "Description of the transaction",
            "type": "string"
          },
          "expense_id": {
            "description": "The expense ID related to the card transaction.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "initiated_at_date": {
            "description": "ISO 8601 date string",
            "format": "date",
            "type": "string"
          },
          "merchant": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transactions__Merchant"
              }
            ],
            "nullable": true
          },
          "posted_at_date": {
            "description": "ISO 8601 date string",
            "format": "date",
            "type": "string"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transactions__CardTransactionType"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "amount",
          "description",
          "id",
          "initiated_at_date",
          "posted_at_date"
        ],
        "type": "object"
      },
      "transactions__CardTransactionType": {
        "enum": [
          "PURCHASE",
          "REFUND",
          "CHARGEBACK",
          "REWARDS_CREDIT",
          "COLLECTION",
          "BNPL_FEE"
        ],
        "type": "string"
      },
      "transactions__CashAccount": {
        "properties": {
          "account_number": {
            "type": "string"
          },
          "available_balance": {
            "$ref": "#/components/schemas/transactions__Money"
          },
          "current_balance": {
            "$ref": "#/components/schemas/transactions__Money"
          },
          "id": {
            "description": "ID of the cash account",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "primary": {
            "description": "Whether or not this account is the primary account. There will always be only one primary account.",
            "type": "boolean"
          },
          "routing_number": {
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transactions__Status"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "account_number",
          "available_balance",
          "current_balance",
          "id",
          "name",
          "primary",
          "routing_number"
        ],
        "type": "object"
      },
      "transactions__CashTransaction": {
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transactions__Money"
              }
            ],
            "nullable": true
          },
          "description": {
            "description": "Description of the transaction",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "initiated_at_date": {
            "description": "ISO 8601 date of when the payment is initiated",
            "format": "date",
            "type": "string"
          },
          "posted_at_date": {
            "description": "ISO 8601 date of when the payment is posted",
            "format": "date",
            "type": "string"
          },
          "transfer_id": {
            "description": "Transfer ID to fetch additional metadata about the transaction using `https://developer.brex.com/openapi/payments_api/#operation/getTransfersById`",
            "nullable": true,
            "type": "string"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transactions__CashTransactionType"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "description",
          "id",
          "initiated_at_date",
          "posted_at_date"
        ],
        "type": "object"
      },
      "transactions__CashTransactionType": {
        "enum": [
          "PAYMENT",
          "DIVIDEND",
          "FEE",
          "ADJUSTMENT",
          "INTEREST",
          "CARD_COLLECTION",
          "REWARDS_REDEMPTION",
          "RECEIVABLES_OFFERS_ADVANCE",
          "FBO_TRANSFER",
          "RECEIVABLES_OFFERS_REPAYMENT",
          "RECEIVABLES_OFFERS_COLLECTION",
          "BREX_OPERATIONAL_TRANSFER",
          "INTRA_CUSTOMER_ACCOUNT_BOOK_TRANSFER",
          "BOOK_TRANSFER",
          "CRYPTO_BRIDGE",
          "STABLECOIN",
          "TRANSACTION_FEES_COLLECTION",
          "PAYBACK"
        ],
        "type": "string"
      },
      "transactions__Merchant": {
        "properties": {
          "country": {
            "description": "Merchant's country, in ISO 3166-1 alpha-3 format.",
            "type": "string"
          },
          "mcc": {
            "description": "A four-digit number listed in ISO 18245 for retail financial services, e.g. 4121 for Taxicabs and Rideshares. Please refer to https://en.wikipedia.org/wiki/Merchant_category_code for more details.",
            "type": "string"
          },
          "raw_descriptor": {
            "description": "Merchant descriptor, it can be the merchant name.",
            "type": "string"
          }
        },
        "required": [
          "country",
          "mcc",
          "raw_descriptor"
        ],
        "type": "object"
      },
      "transactions__Money": {
        "description": "\nMoney fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination\nof the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700.\n",
        "properties": {
          "amount": {
            "description": "The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.",
            "example": 700,
            "format": "int64",
            "type": "integer"
          },
          "currency": {
            "default": "USD",
            "description": "The type of currency, in ISO 4217 format.",
            "example": "USD",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "amount"
        ],
        "type": "object"
      },
      "transactions__Page_CardTransaction_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/transactions__CardTransaction"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "transactions__Page_CashAccount_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/transactions__CashAccount"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "transactions__Page_CashTransaction_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/transactions__CashTransaction"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "transactions__Page_Statement_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/transactions__Statement"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "transactions__Statement": {
        "properties": {
          "end_balance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transactions__Money"
              }
            ],
            "nullable": true
          },
          "id": {
            "type": "string"
          },
          "period": {
            "$ref": "#/components/schemas/transactions__StatementPeriod"
          },
          "start_balance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/transactions__Money"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "id",
          "period"
        ],
        "type": "object"
      },
      "transactions__StatementPeriod": {
        "properties": {
          "end_date": {
            "description": "End date of the statement period at UTC 00:00:00 (exclusive)",
            "format": "date",
            "type": "string"
          },
          "start_date": {
            "description": "Start date of the statement period at UTC 00:00:00 (inclusive)",
            "format": "date",
            "type": "string"
          }
        },
        "required": [
          "end_date",
          "start_date"
        ],
        "type": "object"
      },
      "transactions__Status": {
        "enum": [
          "ACTIVE"
        ],
        "type": "string"
      },
      "travel__Address": {
        "description": "A location. All fields are optional, but the object will hold as much information as possible.",
        "properties": {
          "address_line_1": {
            "description": "The first line of the address.",
            "example": "Av. Vinte de Janeiro, S/N",
            "nullable": true,
            "type": "string"
          },
          "address_line_2": {
            "description": "The second line of the address.",
            "example": "Ilha do Governador",
            "nullable": true,
            "type": "string"
          },
          "administrative_area": {
            "description": "Depending on the country, this can be a state, a province, or something equivalent to those. May be an abbreviation or the full name.",
            "example": "RJ",
            "nullable": true,
            "type": "string"
          },
          "city": {
            "description": "The city where the address is located.",
            "example": "Rio de Janeiro",
            "nullable": true,
            "type": "string"
          },
          "coordinates": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Address.GeoCoordinates"
              },
              {
                "description": "The coordinates of the address."
              }
            ],
            "nullable": true
          },
          "country": {
            "description": "The country where the address is located. May be an alpha-2 code, an alpha-3 code, or the full name of the country.",
            "example": "Brazil",
            "nullable": true,
            "type": "string"
          },
          "postal_code": {
            "description": "The postal code of the given address.",
            "example": "21941-900",
            "nullable": true,
            "type": "string"
          },
          "timezone": {
            "description": "The timezone in the given address.",
            "example": "America/Sao_Paulo",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "travel__Address.GeoCoordinates": {
        "description": "The coordinates of an address.",
        "properties": {
          "latitude": {
            "example": -22.8145373,
            "format": "double",
            "type": "number"
          },
          "longitude": {
            "example": -43.2465548,
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "latitude",
          "longitude"
        ],
        "type": "object"
      },
      "travel__AirBookingData": {
        "description": "Air-specific booking information.",
        "properties": {
          "journeys": {
            "description": "The journeys that make up this booking.",
            "items": {
              "$ref": "#/components/schemas/travel__AirBookingData.Journey"
            },
            "type": "array"
          },
          "known_traveler_number": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__AirBookingData.DocumentNumber"
              },
              {
                "description": "The Known Traveler Number associated with this booking."
              }
            ],
            "nullable": true
          },
          "redress_number": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__AirBookingData.DocumentNumber"
              },
              {
                "description": "The Redress Number associated with this booking."
              }
            ],
            "nullable": true
          },
          "tickets": {
            "description": "The flight tickets in this booking.",
            "items": {
              "$ref": "#/components/schemas/travel__AirBookingData.FlightTicket"
            },
            "type": "array"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "journeys",
          "tickets"
        ],
        "type": "object"
      },
      "travel__AirBookingData.CabinClass": {
        "description": "The cabin class of a flight.",
        "enum": [
          "ECONOMY",
          "PREMIUM_ECONOMY",
          "BUSINESS",
          "FIRST"
        ],
        "example": "ECONOMY",
        "type": "string"
      },
      "travel__AirBookingData.DocumentNumber": {
        "description": "A document number such as a redress number or a known traveler number.",
        "properties": {
          "document_number": {
            "description": "The actual document number.",
            "example": "1231231",
            "type": "string"
          },
          "issuing_country": {
            "description": "The country that issued this document.",
            "example": "BR",
            "type": "string"
          }
        },
        "required": [
          "document_number",
          "issuing_country"
        ],
        "type": "object"
      },
      "travel__AirBookingData.Flight": {
        "description": "A flight taken by the traveler.",
        "properties": {
          "arrival_time": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Booking.Time"
              },
              {
                "description": "The time when the flight arrives at the destination."
              }
            ]
          },
          "cabin_class": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__AirBookingData.CabinClass"
              },
              {
                "description": "The cabin class for this flight."
              }
            ],
            "nullable": true
          },
          "confirmation_code": {
            "description": "The airline confirmation code.",
            "example": "PWZRTQ",
            "nullable": true,
            "type": "string"
          },
          "departure_time": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Booking.Time"
              },
              {
                "description": "The time when the flight departs the origin."
              }
            ]
          },
          "destination": {
            "$ref": "#/components/schemas/travel__AirBookingData.FlightEndpoint"
          },
          "duration": {
            "description": "The duration of the flight in the ISO 8601 PnYnMnDTnHnMnS format.",
            "example": "PT4h20M",
            "nullable": true,
            "type": "string"
          },
          "marketing_flight": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__AirBookingData.FlightNumber"
              },
              {
                "description": "The marketing flight number. Some flights are sold by one airline, but operated by another in the same alliance. This is the flight that was originally sold."
              }
            ],
            "nullable": true
          },
          "operating_flight": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__AirBookingData.FlightNumber"
              },
              {
                "description": "The operating flight number. Some flights are sold by one airline, but operated by another in the same alliance. This is the flight the traveler is actually taking."
              }
            ],
            "nullable": true
          },
          "origin": {
            "$ref": "#/components/schemas/travel__AirBookingData.FlightEndpoint"
          },
          "seat": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__AirBookingData.FlightSeat"
              },
              {
                "description": "The seat reserved for this flight."
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "arrival_time",
          "departure_time",
          "destination",
          "origin"
        ],
        "type": "object"
      },
      "travel__AirBookingData.FlightEndpoint": {
        "description": "The place where a flight departs from or arrives at.",
        "properties": {
          "airport_code": {
            "description": "The 3-letter IATA code of the airport.",
            "example": "GIG",
            "pattern": "[A-Z]{3}",
            "type": "string"
          },
          "airport_location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Address"
              },
              {
                "description": "The location of the airport."
              }
            ],
            "nullable": true
          },
          "gate": {
            "description": "The gate for boarding or leaving the plane.",
            "example": "B13",
            "nullable": true,
            "type": "string"
          },
          "terminal": {
            "description": "The terminal name and/or number.",
            "example": "T2",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "airport_code"
        ],
        "type": "object"
      },
      "travel__AirBookingData.FlightNumber": {
        "description": "The flight number, including carrier information.",
        "properties": {
          "airline_code": {
            "description": "The IATA code for the airline.",
            "example": "G3",
            "pattern": "[0-9A-Z]{2}",
            "type": "string"
          },
          "airline_name": {
            "description": "The name of the airline.",
            "example": "GOL Linhas Aereas S.A.",
            "nullable": true,
            "type": "string"
          },
          "number": {
            "description": "The number of the flight.",
            "example": "1234",
            "pattern": "\\d{1,4}",
            "type": "string"
          }
        },
        "required": [
          "airline_code",
          "number"
        ],
        "type": "object"
      },
      "travel__AirBookingData.FlightSeat": {
        "description": "Seat information in a flight.",
        "properties": {
          "number": {
            "description": "The seat number.",
            "example": "31D",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__AirBookingData.FlightSeatStatus"
              },
              {}
            ],
            "nullable": true
          }
        },
        "required": [
          "number"
        ],
        "type": "object"
      },
      "travel__AirBookingData.FlightSeatStatus": {
        "description": "The status of a flight seat.",
        "enum": [
          "PENDING",
          "CONFIRMED",
          "CANCELED"
        ],
        "example": "CONFIRMED",
        "type": "string"
      },
      "travel__AirBookingData.FlightTicket": {
        "description": "A flight ticket.",
        "properties": {
          "issue_date": {
            "description": "The date when the ticket was issued.",
            "example": "2017-12-27",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "number": {
            "description": "The ticket number provided by the airline.",
            "example": "0017959463925",
            "type": "string"
          }
        },
        "required": [
          "number"
        ],
        "type": "object"
      },
      "travel__AirBookingData.Journey": {
        "description": "A journey is composed of one or more flight segments that take a passenger from an origin to a final destination. E.g. if a traveler is doing a round trip from GIG to SFO, but they need to make a connection in IAH in each direction, the booking will contain 2 journeys. The first will contain 2 segments: GIG > IAH, and IAH > SFO. The second journey will also contain 2 segments: SFO > IAH, and IAH > GIG.",
        "properties": {
          "cabin_display_name": {
            "description": "The cabin name as shown by the airline.",
            "example": "Flexible Economy",
            "nullable": true,
            "type": "string"
          },
          "flights": {
            "description": "The flights that make up this journey.",
            "items": {
              "$ref": "#/components/schemas/travel__AirBookingData.Flight"
            },
            "type": "array"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__BookingStatus"
              },
              {
                "description": "The status of this specific journey."
              }
            ]
          }
        },
        "required": [
          "flights",
          "status"
        ],
        "type": "object"
      },
      "travel__Booking": {
        "description": "A booking representation.",
        "properties": {
          "booking_data": {
            "$ref": "#/components/schemas/travel__Booking.Data"
          },
          "booking_reference": {
            "description": "The booking reference number shown in the dashboard and used when contacting Brex Support. This is the reference from the travel provider, not the Brex internal booking ID. May be null if the booking has no associated reference.",
            "example": "7117228246",
            "nullable": true,
            "type": "string"
          },
          "created_at": {
            "description": "The time when the booking was created.",
            "example": "2017-12-27T15:42:30Z",
            "format": "date-time",
            "type": "string"
          },
          "custom_fields": {
            "description": "Custom field values associated with this resource.",
            "items": {
              "$ref": "#/components/schemas/travel__CustomField"
            },
            "nullable": true,
            "type": "array"
          },
          "id": {
            "description": "The ID of the booking.",
            "example": "booking_cl9t5dnu800040m3071dandeq",
            "type": "string"
          },
          "policy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Booking.Policy"
              }
            ],
            "description": "The result of evaluating the customer's travel policy against this booking, as shown to the traveler when the booking was made. Mirrors the policy information available in the booking export. May be null when no policy was evaluated for the booking.",
            "nullable": true
          },
          "source": {
            "$ref": "#/components/schemas/travel__Booking.Source"
          },
          "status": {
            "$ref": "#/components/schemas/travel__BookingStatus"
          },
          "trip_id": {
            "description": "The ID of the trip to which this booking belongs.",
            "example": "trip_cl9rh1n8g001e0j84w6fb4fd1",
            "type": "string"
          },
          "trip_reference": {
            "description": "The trip reference number shown in the dashboard and used when contacting Brex Support. This is the reference from the travel provider, not the Brex internal trip ID. May be null if the trip has no associated reference.",
            "example": "7117228246",
            "nullable": true,
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/travel__Booking.Type"
          },
          "updated_at": {
            "description": "The time when the booking was last updated.",
            "example": "2017-12-27T15:42:30Z",
            "format": "date-time",
            "type": "string"
          },
          "version": {
            "description": "The current version of the booking.",
            "example": 2,
            "format": "int32",
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "booking_data",
          "created_at",
          "id",
          "source",
          "status",
          "trip_id",
          "type",
          "updated_at",
          "version"
        ],
        "type": "object"
      },
      "travel__Booking.Data": {
        "description": "Type-specific booking data.",
        "discriminator": {
          "mapping": {
            "AIR": "#/components/schemas/travel__AirBookingData",
            "CAR_RENTAL": "#/components/schemas/travel__CarRentalBookingData",
            "LODGING": "#/components/schemas/travel__LodgingBookingData",
            "RAIL": "#/components/schemas/travel__RailBookingData"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/travel__AirBookingData"
          },
          {
            "$ref": "#/components/schemas/travel__CarRentalBookingData"
          },
          {
            "$ref": "#/components/schemas/travel__LodgingBookingData"
          },
          {
            "$ref": "#/components/schemas/travel__RailBookingData"
          }
        ],
        "type": "object"
      },
      "travel__Booking.Policy": {
        "description": "The result of evaluating the customer's travel policy against this booking, as shown to the traveler when the booking was made. Mirrors the policy information available in the booking export. May be null when no policy was evaluated for the booking.",
        "properties": {
          "out_of_policy": {
            "description": "Whether the booking is out of policy, i.e. at least one travel policy rule was broken.",
            "example": true,
            "type": "boolean"
          },
          "violations": {
            "description": "The specific travel policy rules that this booking violated. Empty when the booking is in policy.",
            "items": {
              "$ref": "#/components/schemas/travel__Booking.PolicyViolation"
            },
            "type": "array"
          }
        },
        "required": [
          "out_of_policy"
        ],
        "type": "object"
      },
      "travel__Booking.PolicyViolation": {
        "description": "A travel policy rule that a booking violated.",
        "properties": {
          "code": {
            "$ref": "#/components/schemas/travel__Booking.PolicyViolationCode"
          },
          "description": {
            "description": "A human-readable description of the policy violation.",
            "example": "Fare exceeds maximum allowed",
            "type": "string"
          }
        },
        "required": [
          "code",
          "description"
        ],
        "type": "object"
      },
      "travel__Booking.PolicyViolationCode": {
        "description": "A machine-readable code identifying the policy rule that was violated:\n  * `MIN_DAYS_IN_ADVANCE` - The booking was made less than the minimum number of days in advance.\n  * `MAX_FARE_PER_TRAVELER` - The fare exceeds the maximum allowed per traveler.\n  * `TICKET_REFUNDABILITY` - The ticket refundability does not meet policy requirements.\n  * `TICKET_CHANGEABILITY` - The ticket changeability does not meet policy requirements.\n  * `AMOUNT_LIMIT_BY_FLIGHT_DURATION` - The fare exceeds the maximum allowed for the flight duration.\n  * `ALLOWED_CABIN_CLASSES_BY_DURATION` - The cabin class is not allowed for the flight duration.\n  * `ALLOWED_CABIN_CLASSES_BY_DURATION_DOMESTIC` - The cabin class is not allowed for the domestic flight duration.\n  * `ALLOWED_CABIN_CLASSES_BY_DURATION_INTERNATIONAL` - The cabin class is not allowed for the international flight duration.\n  * `MEDIAN_PRICE` - The price exceeds the median price.\n  * `LOWEST_LOGICAL_FARE` - The price exceeds the lowest logical fare.\n  * `MAX_STARS` - The hotel rating exceeds the maximum allowed.\n  * `DEFAULT_NIGHTLY_RATE` - The nightly rate exceeds the maximum allowed.\n  * `NIGHTLY_RATE_FOR_LOCATION` - The nightly rate exceeds the maximum allowed for the location.\n  * `MAX_HOTEL_BOOKING_PRICE` - The hotel booking price exceeds the maximum allowed.\n  * `ALLOWED_CAR_CLASSES` - The car class is not allowed.\n  * `MAX_DAILY_RATE` - The daily rate exceeds the maximum allowed.\n  * `OTHER` - A policy violation that is not covered by the other codes.",
        "enum": [
          "MIN_DAYS_IN_ADVANCE",
          "MAX_FARE_PER_TRAVELER",
          "TICKET_REFUNDABILITY",
          "TICKET_CHANGEABILITY",
          "AMOUNT_LIMIT_BY_FLIGHT_DURATION",
          "ALLOWED_CABIN_CLASSES_BY_DURATION",
          "ALLOWED_CABIN_CLASSES_BY_DURATION_DOMESTIC",
          "ALLOWED_CABIN_CLASSES_BY_DURATION_INTERNATIONAL",
          "MEDIAN_PRICE",
          "LOWEST_LOGICAL_FARE",
          "MAX_STARS",
          "DEFAULT_NIGHTLY_RATE",
          "NIGHTLY_RATE_FOR_LOCATION",
          "MAX_HOTEL_BOOKING_PRICE",
          "ALLOWED_CAR_CLASSES",
          "MAX_DAILY_RATE",
          "OTHER"
        ],
        "example": "MAX_FARE_PER_TRAVELER",
        "type": "string"
      },
      "travel__Booking.Source": {
        "description": "The original source of a booking:\n  * `BREX_TRAVEL` - The booking was created via Brex Travel.\n  * `EXTERNAL` - The booking was manually inserted, e.g. a hotel room block for a group event.",
        "enum": [
          "BREX_TRAVEL",
          "EXTERNAL"
        ],
        "example": "BREX_TRAVEL",
        "type": "string"
      },
      "travel__Booking.Time": {
        "description": "A time within a booking, including local time in the relevant location, and a timestamp when possible.",
        "properties": {
          "local_time": {
            "description": "The local time in the relevant location in the ISO 8601 format.",
            "format": "date-time",
            "type": "string"
          },
          "timestamp": {
            "description": "An ISO 8601 timestamp.",
            "example": "2017-12-27T15:42:30Z",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "local_time"
        ],
        "type": "object"
      },
      "travel__Booking.Type": {
        "description": "The type of a booking.",
        "enum": [
          "AIR",
          "CAR_RENTAL",
          "LODGING",
          "RAIL"
        ],
        "example": "AIR",
        "type": "string"
      },
      "travel__BookingStatus": {
        "description": "The status of the booking:\n  * `HOLD` - The booking is a hold, and may be canceled without being charged.\n  * `PENDING` - Some action needs to be completed before the booking is confirmed. Usually the action is the payment being confirmed.\n  * `CONFIRMED` - The booking is confirmed.\n  * `COMPLETED` - The booking has already happened.\n  * `CANCELED` - The booking has been canceled.\n  * `IN_PROGRESS` - The booking is currently in progress.\n  * `REFUNDED` - A refund has been issued. It may or may not be a full refund.\n  * `VOIDED` - Voided is similar to (and can be treated the same as) canceled.\n  * `PROCESSING` - The booking has been created or changed, but confirmation from the vendor has not been received yet.\n  * `UNCONFIRMED` - The booking was in the `PROCESSING` state for too long and some action is probably required to get this booking confirmed.\n  * `AIRLINE_CONTROL` - The airline has taken control of the booking and further updates may not be visible.\n  * `PAYMENT_DECLINED` - The payment for the booking has failed.\n  * `SCHEDULE_CHANGE` - Some change has happened to the booking schedule, e.g. the flight getting canceled and the passenger reallocated to another flight. Travel support should reach out to confirm the traveler accepts the new schedule.\n  * `APPROVAL_REQUESTED` - The booking is subject to approval, and it is waiting for a review.\n  * `APPROVAL_DENIED` - A reviewer has denied the booking, or the deadline to approve the booking has passed and it got canceled.\n  * `CANCELLATION_IN_PROGRESS` - The booking is currently being canceled.",
        "enum": [
          "HOLD",
          "PENDING",
          "CONFIRMED",
          "COMPLETED",
          "CANCELED",
          "IN_PROGRESS",
          "REFUNDED",
          "VOIDED",
          "PROCESSING",
          "UNCONFIRMED",
          "AIRLINE_CONTROL",
          "PAYMENT_DECLINED",
          "SCHEDULE_CHANGE",
          "APPROVAL_REQUESTED",
          "APPROVAL_DENIED",
          "CANCELLATION_IN_PROGRESS"
        ],
        "example": "CONFIRMED",
        "type": "string"
      },
      "travel__BooleanListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "Boolean list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "type": "boolean"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Boolean list value",
        "type": "object"
      },
      "travel__BooleanValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "Boolean value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "nullable": true,
            "type": "boolean"
          },
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Boolean value",
        "type": "object"
      },
      "travel__CarRentalBookingData": {
        "description": "Car rental-specific booking information.",
        "properties": {
          "car_details": {
            "$ref": "#/components/schemas/travel__CarRentalBookingData.CarDetails"
          },
          "reservation_details": {
            "$ref": "#/components/schemas/travel__CarRentalBookingData.ReservationDetails"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "car_details",
          "reservation_details"
        ],
        "type": "object"
      },
      "travel__CarRentalBookingData.CarClass": {
        "description": "The kind of car.",
        "enum": [
          "ECONOMY",
          "COMPACT",
          "INTERMEDIATE",
          "PREMIUM",
          "LUXURY",
          "CONVERTIBLE",
          "COMPACT_SUV",
          "INTERMEDIATE_SUV",
          "PREMIUM_SUV",
          "LUXURY_SUV",
          "MINI_VAN",
          "PASSENGER_VAN",
          "PICKUP_TRUCK",
          "HYBRID",
          "ELECTRIC",
          "MINI",
          "STANDARD",
          "FULL_SIZE",
          "SUV",
          "SPORTS",
          "SPECIAL",
          "RECREATIONAL_VEHICLE",
          "OTHER"
        ],
        "example": "INTERMEDIATE",
        "type": "string"
      },
      "travel__CarRentalBookingData.CarDetails": {
        "description": "Information on a rental car.",
        "properties": {
          "car_class": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CarRentalBookingData.CarClass"
              },
              {}
            ],
            "nullable": true
          },
          "display_name": {
            "description": "The name of the car as displayed to the user.",
            "example": "Intermediate car",
            "type": "string"
          }
        },
        "required": [
          "display_name"
        ],
        "type": "object"
      },
      "travel__CarRentalBookingData.RentalEndpoint": {
        "description": "Information about the car pickup or drop-off.",
        "properties": {
          "location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Address"
              },
              {
                "description": "The location where the car can be picked up or where it must be returned."
              }
            ]
          },
          "time": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Booking.Time"
              },
              {
                "description": "The time when the car will be available for pickup or by when it must be returned."
              }
            ]
          }
        },
        "required": [
          "location",
          "time"
        ],
        "type": "object"
      },
      "travel__CarRentalBookingData.ReservationDetails": {
        "description": "Information on a car reservation such as pickup, drop-off, etc.",
        "properties": {
          "confirmation_code": {
            "description": "The confirmation code given by the vendor.",
            "example": "7003XBQ504",
            "nullable": true,
            "type": "string"
          },
          "drop_off": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CarRentalBookingData.RentalEndpoint"
              },
              {
                "description": "Information on the car return."
              }
            ]
          },
          "pickup": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CarRentalBookingData.RentalEndpoint"
              },
              {
                "description": "Information on the car pickup."
              }
            ]
          },
          "rental_company": {
            "description": "Name of car rental company.",
            "example": "Catch-A-Ride",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "drop_off",
          "pickup"
        ],
        "type": "object"
      },
      "travel__CustomField": {
        "properties": {
          "key": {
            "description": "The key of the custom field.",
            "type": "string"
          },
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
              },
              {
                "description": "The value of the custom field.",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/travel__StringValue"
                  },
                  {
                    "$ref": "#/components/schemas/travel__DecimalValue"
                  },
                  {
                    "$ref": "#/components/schemas/travel__BooleanValue"
                  },
                  {
                    "$ref": "#/components/schemas/travel__EnumValue"
                  },
                  {
                    "$ref": "#/components/schemas/travel__TimestampValue"
                  },
                  {
                    "$ref": "#/components/schemas/travel__DateValue"
                  },
                  {
                    "$ref": "#/components/schemas/travel__MoneyValue"
                  },
                  {
                    "$ref": "#/components/schemas/travel__OptionStringValue"
                  },
                  {
                    "$ref": "#/components/schemas/travel__StringListValue"
                  },
                  {
                    "$ref": "#/components/schemas/travel__DecimalListValue"
                  },
                  {
                    "$ref": "#/components/schemas/travel__BooleanListValue"
                  },
                  {
                    "$ref": "#/components/schemas/travel__EnumListValue"
                  },
                  {
                    "$ref": "#/components/schemas/travel__TimestampListValue"
                  },
                  {
                    "$ref": "#/components/schemas/travel__DateListValue"
                  },
                  {
                    "$ref": "#/components/schemas/travel__MoneyListValue"
                  },
                  {
                    "$ref": "#/components/schemas/travel__OptionStringListValue"
                  }
                ]
              }
            ]
          }
        },
        "required": [
          "key",
          "value"
        ],
        "type": "object"
      },
      "travel__CustomField.ValueWrapper": {
        "description": "Base class for custom field values",
        "properties": {
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          },
          "value_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldValueType"
              },
              {
                "description": "The type of the custom field value."
              }
            ]
          }
        },
        "required": [
          "data_type",
          "value_type"
        ],
        "type": "object"
      },
      "travel__CustomField.ValueWrapper.MultipleValueWrapper": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "Multiple value wrapper for custom fields",
        "properties": {
          "value_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldValueType"
              },
              {
                "description": "The type of the custom field value."
              }
            ]
          }
        },
        "required": [
          "value_type"
        ],
        "type": "object"
      },
      "travel__CustomField.ValueWrapper.SingleValueWrapper": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "Single value wrapper for custom fields",
        "properties": {
          "value_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldValueType"
              },
              {
                "description": "The type of the custom field value."
              }
            ]
          }
        },
        "required": [
          "value_type"
        ],
        "type": "object"
      },
      "travel__CustomFieldDataType": {
        "description": "The type of the custom field data.",
        "enum": [
          "STRING",
          "DECIMAL",
          "BOOLEAN",
          "ENUM",
          "TIMESTAMP",
          "DATE",
          "MONEY",
          "OPTION_STRING"
        ],
        "type": "string"
      },
      "travel__CustomFieldValueType": {
        "description": "The type of the custom field value.",
        "enum": [
          "SINGLE_VALUE",
          "LIST"
        ],
        "type": "string"
      },
      "travel__DateListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "Date list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "format": "date",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Date list value",
        "type": "object"
      },
      "travel__DateValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "Date value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "format": "date",
            "nullable": true,
            "type": "string"
          },
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Date value",
        "type": "object"
      },
      "travel__DecimalListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "Decimal list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "type": "number"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Decimal list value",
        "type": "object"
      },
      "travel__DecimalValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "Decimal value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "nullable": true,
            "type": "number"
          },
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Decimal value",
        "type": "object"
      },
      "travel__EnumListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "Enum list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "format": "enum",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Enum list value",
        "type": "object"
      },
      "travel__EnumValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "Enum value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "format": "enum",
            "nullable": true,
            "type": "string"
          },
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Enum value",
        "type": "object"
      },
      "travel__LodgingBookingData": {
        "description": "Lodging-specific booking information.",
        "properties": {
          "lodging_details": {
            "$ref": "#/components/schemas/travel__LodgingBookingData.LodgingDetails"
          },
          "reservation_details": {
            "$ref": "#/components/schemas/travel__LodgingBookingData.ReservationDetails"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "lodging_details",
          "reservation_details"
        ],
        "type": "object"
      },
      "travel__LodgingBookingData.ContactInfo": {
        "description": "Contact information of a venue.",
        "properties": {
          "email": {
            "description": "The email address of the venue.",
            "example": "city@hotelchain.com",
            "nullable": true,
            "type": "string"
          },
          "fax": {
            "description": "The fax number of the venue.",
            "example": 12345554321,
            "nullable": true,
            "type": "string"
          },
          "phone": {
            "description": "The phone number of the venue.",
            "example": 12345554321,
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "travel__LodgingBookingData.LodgingDetails": {
        "description": "Information on a lodging venue.",
        "properties": {
          "brand_name": {
            "description": "The brand name of the hotel.",
            "example": "Marriott Hotels",
            "nullable": true,
            "type": "string"
          },
          "chain_name": {
            "description": "The name of the hotel chain.",
            "example": "Accor Hotels",
            "nullable": true,
            "type": "string"
          },
          "contact_information": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__LodgingBookingData.ContactInfo"
              },
              {}
            ],
            "nullable": true
          },
          "display_name": {
            "description": "The name of the venue as displayed to the user.",
            "example": "Fancy Hotel",
            "type": "string"
          },
          "location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Address"
              },
              {
                "description": "The location of the hotel."
              }
            ],
            "nullable": true
          },
          "star_rating": {
            "description": "The star rating of the hotel. Some hotels have half stars.",
            "example": 3.5,
            "format": "float",
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "display_name"
        ],
        "type": "object"
      },
      "travel__LodgingBookingData.ReservationDetails": {
        "description": "Information on a reservation such as check-in, checkout, etc.",
        "properties": {
          "check_in_time": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Booking.Time"
              },
              {
                "description": "The time when check-in will be available."
              }
            ]
          },
          "checkout_time": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Booking.Time"
              },
              {
                "description": "The time limit for checkout."
              }
            ]
          },
          "confirmation_code": {
            "description": "Confirmation code provided by the vendor.",
            "example": "7003XBQ504",
            "nullable": true,
            "type": "string"
          },
          "room": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__LodgingBookingData.Room"
              },
              {}
            ],
            "nullable": true
          }
        },
        "required": [
          "check_in_time",
          "checkout_time"
        ],
        "type": "object"
      },
      "travel__LodgingBookingData.Room": {
        "description": "Information on a room that was booked.",
        "properties": {
          "bed_count": {
            "description": "The number of beds.",
            "example": 1,
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "bed_type": {
            "description": "The kind of bed.",
            "example": "DOUBLE",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": "A description of the room.",
            "example": "Superior room",
            "nullable": true,
            "type": "string"
          },
          "display_name": {
            "description": "The name of the room as displayed to the user.",
            "example": "Standard room",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "travel__Money": {
        "description": "\nMoney fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination\nof the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700.\n",
        "properties": {
          "amount": {
            "description": "The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.",
            "example": 700,
            "format": "int64",
            "type": "integer"
          },
          "currency": {
            "default": "USD",
            "description": "The type of currency, in ISO 4217 format.",
            "example": "USD",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "amount"
        ],
        "type": "object"
      },
      "travel__MoneyListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "Money list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/travel__Money"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Money list value",
        "type": "object"
      },
      "travel__MoneyValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "Money value for a custom field",
        "properties": {
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Money"
              },
              {
                "description": "The data of the custom field."
              }
            ],
            "nullable": true
          },
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Money value",
        "type": "object"
      },
      "travel__OptionString": {
        "description": "Option string fields have a label and a identifier.",
        "properties": {
          "option_id": {
            "description": "The identifier when custom field data is of type option string.",
            "nullable": true,
            "type": "string"
          },
          "option_label": {
            "description": "The label when custom field data is of type option string.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "travel__OptionStringListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "Option string list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/travel__OptionString"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Option string list value",
        "type": "object"
      },
      "travel__OptionStringValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "Option string value for a custom field",
        "properties": {
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__OptionString"
              },
              {
                "description": "The data of the custom field."
              }
            ],
            "nullable": true
          },
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Option string value",
        "type": "object"
      },
      "travel__Page_Booking_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/travel__Booking"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "travel__Page_Trip_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/travel__Trip"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "travel__RailBookingData": {
        "description": "Rail-specific booking information.",
        "properties": {
          "journeys": {
            "description": "The journeys that make up this booking.",
            "items": {
              "$ref": "#/components/schemas/travel__RailBookingData.RailJourney"
            },
            "type": "array"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "journeys"
        ],
        "type": "object"
      },
      "travel__RailBookingData.RailClass": {
        "description": "The class of travel for a rail leg.",
        "enum": [
          "FIRST",
          "STANDARD",
          "BUSINESS",
          "SLEEPER",
          "STANDARD_PREMIUM",
          "BUSINESS_PREMIUM",
          "COACH",
          "ROOM",
          "EXECUTIVE"
        ],
        "example": "SLEEPER",
        "type": "string"
      },
      "travel__RailBookingData.RailJourney": {
        "description": "A journey is composed of the legs that take a passenger from an origin to a final destination. E.g. if a traveler is going from Aberdeen to London, but they need to change trains in Edinburgh, the booking will contain 1 journey composed of 2 legs. The first leg is Aberdeen to Edinburgh, and the second is Edinburgh to London.",
        "properties": {
          "legs": {
            "description": "The legs that make up this journey.",
            "items": {
              "$ref": "#/components/schemas/travel__RailBookingData.RailLeg"
            },
            "type": "array"
          }
        },
        "required": [
          "legs"
        ],
        "type": "object"
      },
      "travel__RailBookingData.RailLeg": {
        "description": "A leg is a portion of the journey between two consecutive stops.",
        "properties": {
          "arrival_time": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Booking.Time"
              },
              {
                "description": "The time when the leg ends."
              }
            ]
          },
          "departure_time": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Booking.Time"
              },
              {
                "description": "The time when the leg starts."
              }
            ]
          },
          "destination": {
            "$ref": "#/components/schemas/travel__RailBookingData.RailStation"
          },
          "duration": {
            "description": "PT4h20M",
            "example": "PT4h20M",
            "nullable": true,
            "type": "string"
          },
          "origin": {
            "$ref": "#/components/schemas/travel__RailBookingData.RailStation"
          },
          "rail_class": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__RailBookingData.RailClass"
              },
              {}
            ],
            "nullable": true
          },
          "seat": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__RailBookingData.RailSeat"
              },
              {
                "description": "The seat that has been reserved for this leg."
              }
            ],
            "nullable": true
          },
          "vehicle": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__RailBookingData.Vehicle"
              },
              {
                "description": "The vehicle that will be used in this leg."
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "arrival_time",
          "departure_time",
          "destination",
          "origin"
        ],
        "type": "object"
      },
      "travel__RailBookingData.RailSeat": {
        "description": "A seat in a train leg.",
        "properties": {
          "coach_number": {
            "description": "The number of the coach.",
            "example": "12",
            "nullable": true,
            "type": "string"
          },
          "seat_number": {
            "description": "The number of the seat.",
            "example": "41",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "travel__RailBookingData.RailStation": {
        "description": "An endpoint in a rail leg.",
        "properties": {
          "location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Address"
              },
              {
                "description": "The location of the station."
              }
            ],
            "nullable": true
          },
          "name": {
            "description": "The name of the station.",
            "example": "London - King's Cross",
            "nullable": true,
            "type": "string"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__RailBookingData.RailStationType"
              },
              {}
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "travel__RailBookingData.RailStationType": {
        "description": "The kind of station. Some rail itineraries include taking a bus or walking between stations, and these are represented as legs in the journey.\n  * `INDIVIDUAL` - A regular train station.\n  * `GROUP` - Stations grouped together, usually in a major European city. E.g. \"London, Any\".\n  * `METRO` - A metro/subway station.\n  * `BUS_STOP` - A bus stop.\n  * `FERRY_TERMINAL` - A ferry terminal.",
        "enum": [
          "INDIVIDUAL",
          "GROUP",
          "METRO",
          "BUS_STOP",
          "FERRY_TERMINAL"
        ],
        "example": "INDIVIDUAL",
        "type": "string"
      },
      "travel__RailBookingData.Vehicle": {
        "description": "A vehicle used in a train leg. Some rail itineraries include taking a bus or walking between stations, and these are represented as legs in the journey.",
        "properties": {
          "carrier": {
            "description": "The carrier that operates this leg. E.g. Amtrak, Thameslink.",
            "example": "Amtrak",
            "nullable": true,
            "type": "string"
          },
          "timetable_id": {
            "description": "The timetable ID for the vehicle. The concept is similar to a flight number.",
            "example": "L79727",
            "nullable": true,
            "type": "string"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__RailBookingData.VehicleType"
              },
              {}
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "travel__RailBookingData.VehicleType": {
        "description": "The kind of vehicle to be used in a leg. Some rail itineraries include taking a bus or walking between stations, and these are represented as legs in the journey.\n  * `TRAIN` - A regular train.\n  * `BUS` - A bus.\n  * `FERRY` - A ferry.\n  * `WALK`- Walking between stations.\n  * `TAXI` - A taxi between stations.\n  * `TRAM` - Tram/light rail.\n  * `METRO` - Metro/subway.\n  * `TUBE` - London underground.",
        "enum": [
          "TRAIN",
          "BUS",
          "FERRY",
          "WALK",
          "TAXI",
          "TRAM",
          "METRO",
          "TUBE"
        ],
        "example": "TRAIN",
        "type": "string"
      },
      "travel__StringListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "String list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          }
        },
        "required": [
          "data_type"
        ],
        "title": "String list value",
        "type": "object"
      },
      "travel__StringValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "String value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "nullable": true,
            "type": "string"
          },
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          }
        },
        "required": [
          "data_type"
        ],
        "title": "String value",
        "type": "object"
      },
      "travel__TimestampListValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper.MultipleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "Timestamp list value for a custom field",
        "properties": {
          "data": {
            "items": {
              "description": "The data of the custom field.",
              "format": "date-time",
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Timestamp list value",
        "type": "object"
      },
      "travel__TimestampValue": {
        "allOf": [
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper.SingleValueWrapper"
          },
          {
            "$ref": "#/components/schemas/travel__CustomField.ValueWrapper"
          }
        ],
        "description": "Timestamp value for a custom field",
        "properties": {
          "data": {
            "description": "The data of the custom field.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "data_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__CustomFieldDataType"
              },
              {
                "description": "The type of the custom field data."
              }
            ]
          }
        },
        "required": [
          "data_type"
        ],
        "title": "Timestamp value",
        "type": "object"
      },
      "travel__Traveler": {
        "description": "Information on the person who will be traveling.",
        "properties": {
          "guest_email": {
            "description": "If the traveler is a guest, this is their email.",
            "example": "guest@gmail.com",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Traveler.Name"
              },
              {}
            ],
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/travel__Traveler.Type"
          },
          "user_id": {
            "description": "If the traveler is an employee, this is their user ID.",
            "example": "cuuser_cky0xs54b004h01pidi0pcuz1",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "travel__Traveler.Name": {
        "description": "The name of the traveler.",
        "properties": {
          "first_name": {
            "description": "The traveler's first name.",
            "example": "John",
            "type": "string"
          },
          "last_name": {
            "description": "The traveler's last name.",
            "example": "Doe",
            "type": "string"
          },
          "middle_name": {
            "description": "The traveler's middle name.",
            "example": "Paul",
            "nullable": true,
            "type": "string"
          },
          "suffix": {
            "description": "The suffix in the traveler's name.",
            "example": "Jr.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "travel__Traveler.Type": {
        "description": "Whether the trip is for an employee or a guest.",
        "enum": [
          "EMPLOYEE",
          "GUEST"
        ],
        "example": "EMPLOYEE",
        "type": "string"
      },
      "travel__Trip": {
        "description": "A trip representation.",
        "properties": {
          "billable_at": {
            "description": "The time when the trip became billable. If absent, the trip is currently not billable.",
            "example": "2017-12-27T15:42:30Z",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "booker_user_id": {
            "description": "The ID of the user who booked the trip. If the trip was created on copilot mode, this will be the ID of the user on behalf of whom the trip was booked.",
            "example": "cuuser_cky0xs54b004h01pidi0pcuz1",
            "type": "string"
          },
          "created_at": {
            "description": "The time when the trip was created.",
            "example": "2017-12-27T15:42:30Z",
            "format": "date-time",
            "type": "string"
          },
          "custom_fields": {
            "description": "Custom field values associated with this resource.",
            "items": {
              "$ref": "#/components/schemas/travel__CustomField"
            },
            "nullable": true,
            "type": "array"
          },
          "ends_at": {
            "description": "The time when the last booking in the trip ends.",
            "example": "2017-12-27T15:42:30Z",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "The ID of the trip.",
            "example": "trip_cl9rh1n8g001e0j84w6fb4fd1",
            "type": "string"
          },
          "name": {
            "description": "The name of the trip as seen in the dashboard.",
            "example": "Trip to Rio de Janeiro",
            "maxLength": 100,
            "nullable": true,
            "type": "string"
          },
          "starts_at": {
            "description": "The time when the first booking in the trip starts.",
            "example": "2017-12-27T15:42:30Z",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Trip.Status"
              },
              {
                "description": "The current status of the trip."
              }
            ]
          },
          "traveler": {
            "allOf": [
              {
                "$ref": "#/components/schemas/travel__Traveler"
              },
              {
                "description": "Information on the person who will be traveling."
              }
            ],
            "nullable": true
          },
          "trip_reference": {
            "description": "The trip reference number shown in the dashboard and used when contacting Brex Support. This is the reference from the travel provider, not the Brex internal trip ID. May be null if the trip has no associated reference.",
            "example": "7117228246",
            "nullable": true,
            "type": "string"
          },
          "updated_at": {
            "description": "The time when the latest trip update happened.",
            "example": "2017-12-27T15:42:30Z",
            "format": "date-time",
            "type": "string"
          },
          "version": {
            "description": "The current version of the trip.",
            "example": 2,
            "format": "int32",
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "booker_user_id",
          "created_at",
          "id",
          "status",
          "updated_at",
          "version"
        ],
        "type": "object"
      },
      "travel__Trip.Status": {
        "description": "The current status of a trip.",
        "enum": [
          "PENDING",
          "UPCOMING",
          "IN_PROGRESS",
          "COMPLETED",
          "CANCELED",
          "REFUNDED",
          "VOIDED",
          "DRAFT",
          "DELETED",
          "PROCESSING",
          "UNCONFIRMED",
          "AIRLINE_CONTROL",
          "PAYMENT_DECLINED",
          "SCHEDULE_CHANGE",
          "HOLD",
          "APPROVAL_REQUESTED",
          "APPROVAL_DENIED",
          "CANCELLATION_IN_PROGRESS"
        ],
        "example": "UPCOMING",
        "type": "string"
      },
      "webhooks__AccountingRecordReadyForExport": {
        "allOf": [
          {
            "$ref": "#/components/schemas/webhooks__EventWrapper"
          }
        ],
        "description": "A list of accounting records are ready for export.",
        "properties": {
          "accountingRecordIds": {
            "description": "List of accounting record IDs ready for export.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "companyId": {
            "description": "This is the `id` returned in the [Get Company](/openapi/team_api/#operation/getCompany) endpoint.\nYou can use the `company_id` to determine which access token to use when you get the details from our API endpoints.\n",
            "type": "string"
          },
          "event_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/webhooks__WebhookEventType"
              },
              {
                "example": "ACCOUNTING_RECORD_READY_FOR_EXPORT"
              }
            ]
          }
        },
        "required": [
          "accountingRecordIds",
          "companyId",
          "event_type"
        ],
        "type": "object"
      },
      "webhooks__AddWebhookGroupMembersRequest": {
        "properties": {
          "members": {
            "description": "The list of webhook group members to add to the group.",
            "items": {
              "$ref": "#/components/schemas/webhooks__WebhookGroupMemberInput"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "members"
        ],
        "type": "object"
      },
      "webhooks__ApplicationStatus": {
        "description": "Application status of a product.\n\n`NO_ACCOUNT` - There is no active application, and the product account is not provisioned.\n\n`ACTIVE` - The application is approved, and the product account is provisioned.\n\n`NOT_SUBMITTED` - The application is started but not yet submitted.\n\n`INFORMATION_PENDING` - The application is submitted and additional information is requested.\n\n`MANUAL_REVIEW` - The application is under manual review.\n\n`PROCESSING` - The application is submitted and is under review.\n\n`REJECTED` - The application is rejected.\n\n`CLOSED` - The product account is closed.\n",
        "enum": [
          "NO_ACCOUNT",
          "ACTIVE",
          "NOT_SUBMITTED",
          "INFORMATION_PENDING",
          "MANUAL_REVIEW",
          "PROCESSING",
          "REJECTED",
          "CLOSED"
        ],
        "type": "string"
      },
      "webhooks__CreateWebhookGroupRequest": {
        "properties": {
          "name": {
            "description": "The name for the webhook group.",
            "example": "Some Webhook Group",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "webhooks__CreateWebhookSubscriptionRequest": {
        "properties": {
          "event_types": {
            "description": "A list of the webhook event types this subscription will listen to.",
            "items": {
              "$ref": "#/components/schemas/webhooks__WebhookEventType"
            },
            "minItems": 1,
            "type": "array"
          },
          "group_id": {
            "description": "ID of the webhook group to which this subscription applies, if any. This is only available for partners.",
            "example": "wg_123",
            "nullable": true,
            "type": "string"
          },
          "url": {
            "description": "The URL to which webhook events will be sent. Must be a valid HTTPS URL.",
            "example": "https://example.com/webhook",
            "type": "string"
          }
        },
        "required": [
          "event_types",
          "url"
        ],
        "type": "object"
      },
      "webhooks__EventWrapper": {
        "type": "object"
      },
      "webhooks__ExpensePaymentStatus": {
        "description": "`PENDING`:The transaction is yet to be captured. It may be approved, yet to be approved, or yet to be declined.\n\n`DECLINED`: The transaction was declined.\n    ",
        "enum": [
          "PENDING",
          "DECLINED"
        ],
        "type": "string"
      },
      "webhooks__ExpensePaymentType": {
        "description": "`PURCHASE`: A pending transaction for making a purchase.\n\n`REFUND`: A pending transaction for a refund.\n\n`WITHDRAWAL`: A pending transaction for a withdrawal.\n\n`DECLINED`: A pending transaction that was declined and will not be completed.\n    ",
        "enum": [
          "PURCHASE",
          "REFUND",
          "WITHDRAWAL",
          "DECLINED"
        ],
        "type": "string"
      },
      "webhooks__ExpensePaymentUpdated": {
        "allOf": [
          {
            "$ref": "#/components/schemas/webhooks__EventWrapper"
          }
        ],
        "description": "The webhook will be sent when an expense payment changes status.\n Subscription must be registered with a user with the CARD_ADMIN role.",
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/webhooks__Money"
              },
              {
                "deprecated": true,
                "description": "Succeeded by the billing_amount field."
              }
            ],
            "nullable": true
          },
          "billing_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/webhooks__Money"
              },
              {
                "description": "The billing amount of the expense is the amount that the entity is charged, on the entity's currency, for reimbursements or card spends."
              }
            ],
            "nullable": true
          },
          "card_id": {
            "description": "The ID of the card that is associated with the expense.",
            "type": "string"
          },
          "company_id": {
            "description": "This is the `id` returned in the [Get Company](/openapi/team_api/#operation/getCompany) endpoint.\nYou can use the `company_id` to determine which access token to use when you get the details from our API endpoints.\n",
            "type": "string"
          },
          "event_type": {
            "$ref": "#/components/schemas/webhooks__WebhookEventType"
          },
          "expense_id": {
            "description": "Unique ID associated with the expense.",
            "type": "string"
          },
          "merchant": {
            "allOf": [
              {
                "$ref": "#/components/schemas/webhooks__Merchant"
              },
              {
                "description": "The merchant associated with the expense."
              }
            ]
          },
          "original_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/webhooks__Money"
              },
              {
                "description": "The original amount of the expense is the amount that the employee submitted or incurred for reimbursements or card spends."
              }
            ],
            "nullable": true
          },
          "payment_authorization_code": {
            "description": "The authorization code of the associated card expense.",
            "nullable": true,
            "type": "string"
          },
          "payment_description": {
            "deprecated": true,
            "description": "Succeeded by the merchant::raw_descriptor field.",
            "type": "string"
          },
          "payment_status": {
            "$ref": "#/components/schemas/webhooks__ExpensePaymentStatus"
          },
          "payment_status_reason": {
            "$ref": "#/components/schemas/webhooks__PaymentStatusReason"
          },
          "payment_type": {
            "$ref": "#/components/schemas/webhooks__ExpensePaymentType"
          },
          "purchased_at": {
            "description": "The time the purchase was made.",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "version": {
            "description": "Version of this expense. This value starts at 1 and is incremented by 1 with every update.",
            "example": 1,
            "format": "int32",
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "card_id",
          "company_id",
          "event_type",
          "expense_id",
          "merchant",
          "payment_description",
          "payment_status",
          "payment_status_reason",
          "payment_type",
          "version"
        ],
        "type": "object"
      },
      "webhooks__Merchant": {
        "properties": {
          "country": {
            "description": "Merchant's country, in ISO 3166-1 alpha-3 format.",
            "type": "string"
          },
          "mcc": {
            "description": "A four-digit number listed in ISO 18245 for retail financial services, e.g. 4121 for Taxicabs and Rideshares. Please refer to https://en.wikipedia.org/wiki/Merchant_category_code for more details.",
            "type": "string"
          },
          "raw_descriptor": {
            "description": "Merchant descriptor, it can be the merchant name.",
            "type": "string"
          }
        },
        "required": [
          "country",
          "mcc",
          "raw_descriptor"
        ],
        "type": "object"
      },
      "webhooks__Money": {
        "description": "\nMoney fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination\nof the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700.\n",
        "properties": {
          "amount": {
            "description": "The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.",
            "example": 700,
            "format": "int64",
            "type": "integer"
          },
          "currency": {
            "default": "USD",
            "description": "The type of currency, in ISO 4217 format.",
            "example": "USD",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "amount"
        ],
        "type": "object"
      },
      "webhooks__Page_WebhookGroupMember_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/webhooks__WebhookGroupMember"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "webhooks__Page_WebhookGroup_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/webhooks__WebhookGroup"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "webhooks__Page_WebhookSubscription_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/webhooks__WebhookSubscription"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "webhooks__PaymentStatusReason": {
        "description": "The reason for the payment's status.",
        "enum": [
          "OTHER",
          "APPROVED",
          "EXCEEDED_BUDGET_LIMIT",
          "BUDGET_EXPIRED",
          "NO_BUDGET",
          "BUDGET_NOT_YET_STARTED",
          "BUDGET_CATEGORY_RESTRICTION",
          "BUDGET_MERCHANT_RESTRICTION",
          "SUSPECTED_FRAUD",
          "EXCEEDED_GLOBAL_LIMIT",
          "EXCEEDED_USER_LIMIT",
          "EXCEEDED_CARD_LIMIT",
          "INVALID_EXPIRATION_DATE",
          "CARD_NOT_ACTIVE",
          "INVALID_CARD_CREDENTIALS",
          "INVALID_BILLING_ADDRESS",
          "CARD_SUSPENDED",
          "CARD_TERMINATED",
          "CARD_EXPIRED",
          "MCC_BLOCKED",
          "USER_SUSPENDED",
          "INVALID_PIN",
          "INVALID_CVV",
          "EXCEEDED_PIN_ATTEMPTS",
          "INSIDE_SANCTIONED_COUNTRY",
          "SOFT_EXPIRATION",
          "TRANSFERRED_CARD_NEW_MERCHANT",
          "EXCEEDED_ANCESTOR_BUDGET_LIMIT",
          "EXCEEDED_BUDGET_TRANSACTION_LIMIT",
          "TOS_BLOCKED",
          "COMPLIANCE_BLOCKED"
        ],
        "type": "string"
      },
      "webhooks__PaymentType": {
        "description": "Only ACH, DOMESTIC_WIRE, CHEQUE, INTERNATIONAL_WIRE, BOOK_TRANSFER, and STABLECOIN details can be retrieved from the Payments API.",
        "enum": [
          "ACH",
          "DOMESTIC_WIRE",
          "CHEQUE",
          "INTERNATIONAL_WIRE",
          "BOOK_TRANSFER",
          "STABLECOIN",
          "ACH_RETURN",
          "WIRE_RETURN",
          "CHEQUE_RETURN"
        ],
        "type": "string"
      },
      "webhooks__ProductApplication": {
        "description": "The product application details for the referral.",
        "properties": {
          "cash": {
            "$ref": "#/components/schemas/webhooks__ApplicationStatus"
          }
        },
        "required": [
          "cash"
        ],
        "type": "object"
      },
      "webhooks__ReferralActivated": {
        "allOf": [
          {
            "$ref": "#/components/schemas/webhooks__EventWrapper"
          }
        ],
        "description": "The webhook will be sent when a user signs up with the referral link.",
        "properties": {
          "event_type": {
            "$ref": "#/components/schemas/webhooks__WebhookEventType"
          },
          "referral_id": {
            "description": "The referral ID",
            "type": "string"
          }
        },
        "required": [
          "event_type",
          "referral_id"
        ],
        "type": "object"
      },
      "webhooks__ReferralApplicationStatusChanged": {
        "allOf": [
          {
            "$ref": "#/components/schemas/webhooks__EventWrapper"
          }
        ],
        "description": "The webhook will be sent when the application status is changed.",
        "properties": {
          "application": {
            "$ref": "#/components/schemas/webhooks__ProductApplication"
          },
          "event_type": {
            "$ref": "#/components/schemas/webhooks__WebhookEventType"
          },
          "referral_id": {
            "description": "The referral ID",
            "type": "string"
          }
        },
        "required": [
          "application",
          "event_type",
          "referral_id"
        ],
        "type": "object"
      },
      "webhooks__ReferralCreated": {
        "allOf": [
          {
            "$ref": "#/components/schemas/webhooks__EventWrapper"
          }
        ],
        "description": "The webhook will be sent when a referral is created.",
        "properties": {
          "event_type": {
            "$ref": "#/components/schemas/webhooks__WebhookEventType"
          },
          "referral_id": {
            "description": "The referral ID",
            "type": "string"
          }
        },
        "required": [
          "event_type",
          "referral_id"
        ],
        "type": "object"
      },
      "webhooks__RemoveWebhookGroupMembersRequest": {
        "properties": {
          "members": {
            "description": "The list of webhook group members to remove from the group.",
            "items": {
              "$ref": "#/components/schemas/webhooks__WebhookGroupMemberInput"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "members"
        ],
        "type": "object"
      },
      "webhooks__TransferFailed": {
        "allOf": [
          {
            "$ref": "#/components/schemas/webhooks__EventWrapper"
          }
        ],
        "description": "The webhook will be sent when a transfer failed.",
        "properties": {
          "company_id": {
            "description": "This is the `id` returned in the [Get Company](/openapi/team_api/#operation/getCompany) endpoint. You can use the `company_id` to determine which access token to use when you get the details from our API endpoints.",
            "type": "string"
          },
          "event_type": {
            "$ref": "#/components/schemas/webhooks__WebhookEventType"
          },
          "payment_type": {
            "$ref": "#/components/schemas/webhooks__PaymentType"
          },
          "return_for_id": {
            "description": "The original transaction ID that is returned when the payment type is ACH_RETURN, WIRE_RETURN and CHEQUE_RETURN.",
            "nullable": true,
            "type": "string"
          },
          "transfer_id": {
            "description": "The transfer ID",
            "type": "string"
          }
        },
        "required": [
          "company_id",
          "event_type",
          "payment_type",
          "transfer_id"
        ],
        "type": "object"
      },
      "webhooks__TransferProcessed": {
        "allOf": [
          {
            "$ref": "#/components/schemas/webhooks__EventWrapper"
          }
        ],
        "description": "The webhook will be sent when a transfer is processed.",
        "properties": {
          "company_id": {
            "description": "This is the `id` returned in the [Get Company](/openapi/team_api/#operation/getCompany) endpoint. You can use the `company_id` to determine which access token to use when you get the details from our API endpoints.",
            "type": "string"
          },
          "event_type": {
            "$ref": "#/components/schemas/webhooks__WebhookEventType"
          },
          "payment_type": {
            "$ref": "#/components/schemas/webhooks__PaymentType"
          },
          "return_for_id": {
            "description": "The original transaction ID that is returned when the payment type is ACH_RETURN, WIRE_RETURN and CHEQUE_RETURN.",
            "nullable": true,
            "type": "string"
          },
          "transfer_id": {
            "description": "The transfer ID",
            "type": "string"
          }
        },
        "required": [
          "company_id",
          "event_type",
          "payment_type",
          "transfer_id"
        ],
        "type": "object"
      },
      "webhooks__UpdateWebhookSubscriptionRequest": {
        "properties": {
          "event_types": {
            "description": "A list of the webhook event types this subscription will listen to.",
            "items": {
              "$ref": "#/components/schemas/webhooks__WebhookEventType"
            },
            "type": "array"
          },
          "group_id": {
            "description": "ID of the webhook group to which this subscription applies, if any. This is only available for partners.",
            "example": "wg_123",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/webhooks__WebhookSubscriptionStatus"
              },
              {
                "description": "The status to set for this webhook subscription.",
                "example": "ACTIVE"
              }
            ]
          },
          "url": {
            "description": "The URL to which webhook events will be sent. Must be a valid HTTPS URL.",
            "example": "https://example.com/webhook",
            "type": "string"
          }
        },
        "required": [
          "event_types",
          "status",
          "url"
        ],
        "type": "object"
      },
      "webhooks__UserAttributes": {
        "enum": [
          "STATUS",
          "MANAGER_ID",
          "DEPARTMENT_ID",
          "LOCATION_ID"
        ],
        "type": "string"
      },
      "webhooks__UserUpdated": {
        "allOf": [
          {
            "$ref": "#/components/schemas/webhooks__EventWrapper"
          }
        ],
        "description": "The webhook will be sent when a user is updated.",
        "properties": {
          "company_id": {
            "type": "string"
          },
          "event_type": {
            "$ref": "#/components/schemas/webhooks__WebhookEventType"
          },
          "updated_attributes": {
            "items": {
              "$ref": "#/components/schemas/webhooks__UserAttributes"
            },
            "type": "array"
          },
          "user_id": {
            "type": "string"
          }
        },
        "required": [
          "company_id",
          "event_type",
          "updated_attributes",
          "user_id"
        ],
        "type": "object"
      },
      "webhooks__WebhookEventType": {
        "enum": [
          "REFERRAL_CREATED",
          "REFERRAL_ACTIVATED",
          "REFERRAL_APPLICATION_STATUS_CHANGED",
          "TRANSFER_PROCESSED",
          "TRANSFER_FAILED",
          "EXPENSE_PAYMENT_UPDATED",
          "USER_UPDATED",
          "EMBEDDED_CARD_TRANSACTION_UPDATED",
          "EMBEDDED_CARD_UPDATED",
          "EMBEDDED_ACCOUNT_UPDATED",
          "EMBEDDED_CARD_SHIPPING_UPDATED",
          "EMBEDDED_DISPUTE_UPDATED",
          "PARTNERSHIP_INTEGRATION_CONNECTION_UPDATED",
          "EMBEDDED_CARD_AUTHORIZATION",
          "EMBEDDED_FRAUD_ALERT",
          "EMBEDDED_BILLING_GROUP_UPDATED",
          "EMBEDDED_LEGAL_ENTITY_UPDATED",
          "EMBEDDED_BILLING_STATEMENT_UPDATED",
          "EMBEDDED_USER_STATUS_UPDATED",
          "ACCOUNTING_RECORD_READY_FOR_EXPORT"
        ],
        "type": "string"
      },
      "webhooks__WebhookGroup": {
        "description": "A webhook group, which can be used by webhook subscriptions to target only the webhook group members. When an event occurs and it belongs to a member of the group, the webhooks will be sent only to the subscriptions that are associated with the group. If there is no group associated with the event, then the webhook will be sent to all subscriptions that are not associated with any group. Webhook groups are only available for partners.",
        "properties": {
          "id": {
            "description": "The ID of the webhook group.",
            "example": "wg_123",
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "description": "The name for the webhook group.",
            "example": "Some Webhook Group",
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "Webhook Group",
        "type": "object",
        "x-tags": [
          "Schemas"
        ]
      },
      "webhooks__WebhookGroupMember": {
        "description": "A member of a webhook group.",
        "properties": {
          "group_id": {
            "description": "The ID of the webhook group this member belongs to.",
            "example": "wg_123",
            "minLength": 1,
            "type": "string"
          },
          "member_id": {
            "description": "The ID of the webhook group member.",
            "example": "cuacc_123",
            "minLength": 1,
            "type": "string"
          },
          "member_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/webhooks__WebhookGroupMemberType"
              },
              {
                "description": "The type of webhook group member.",
                "example": "ACCOUNT"
              }
            ]
          }
        },
        "required": [
          "group_id",
          "member_id",
          "member_type"
        ],
        "title": "Webhook Group Member",
        "type": "object",
        "x-tags": [
          "Schemas"
        ]
      },
      "webhooks__WebhookGroupMemberInput": {
        "properties": {
          "member_id": {
            "description": "The ID of the webhook group member.",
            "minLength": 1,
            "type": "string"
          },
          "member_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/webhooks__WebhookGroupMemberType"
              },
              {
                "description": "The type of webhook group member."
              }
            ]
          }
        },
        "required": [
          "member_id",
          "member_type"
        ],
        "type": "object"
      },
      "webhooks__WebhookGroupMemberType": {
        "description": "The type of a webhook group member.",
        "enum": [
          "ACCOUNT"
        ],
        "type": "string",
        "x-enumDescriptions": {
          "ACCOUNT": "The webhook group member is a customer account."
        }
      },
      "webhooks__WebhookSecret": {
        "description": "A webhook secret, which can be used to validate that incoming webhook messages were sent by Brex.",
        "properties": {
          "secret": {
            "description": "The payload of the secret to be used for webhook validation.",
            "example": "whsec_123",
            "minLength": 1,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/webhooks__WebhookSecretStatus"
              },
              {
                "description": "The status of this webhook secret."
              }
            ]
          }
        },
        "required": [
          "secret",
          "status"
        ],
        "title": "Webhook Secret",
        "type": "object",
        "x-tags": [
          "Schemas"
        ]
      },
      "webhooks__WebhookSecretStatus": {
        "description": "The status of a webhook secret.",
        "enum": [
          "ACTIVE",
          "PENDING_REVOKE",
          "REVOKED"
        ],
        "type": "string",
        "x-enumDescriptions": {
          "ACTIVE": "The webhook secret is active and can be used to validate webhooks from Brex.",
          "PENDING_REVOKE": "The webhook secret is still active, but it will soon be revoked. This may happen during key rotations.",
          "REVOKED": "The webhook secret is no longer active. It cannot be used to validate webhooks from Brex."
        }
      },
      "webhooks__WebhookSubscription": {
        "description": "A webhook subscription. When events of the specified event types occur, they will be sent to the given URL. If the subscription applies to a webhook group, then only events that apply to the members of that group will be sent. If it does not apply to any group, then only events that don't apply to any specific group will be sent. Webhook groups are only available for partners.",
        "properties": {
          "event_types": {
            "description": "List of event types that this webhook subscription listens to.",
            "example": "[\"EXPENSE_PAYMENT_UPDATED\"]",
            "items": {
              "$ref": "#/components/schemas/webhooks__WebhookEventType"
            },
            "type": "array"
          },
          "group_id": {
            "description": "ID of the webhook group to which this subscription applies, if any.",
            "example": "wg_123",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "ID of the webhook subscription.",
            "example": "wsub_123",
            "minLength": 1,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/webhooks__WebhookSubscriptionStatus"
              },
              {
                "description": "The status of this webhook subscription.",
                "example": "ACTIVE"
              }
            ]
          },
          "url": {
            "description": "The URL to which webhook events will be sent. Must be a valid HTTPS URL.",
            "example": "https://example.com/webhook",
            "type": "string"
          }
        },
        "required": [
          "event_types",
          "id",
          "status",
          "url"
        ],
        "title": "Webhook Subscription",
        "type": "object",
        "x-tags": [
          "Schemas"
        ]
      },
      "webhooks__WebhookSubscriptionStatus": {
        "description": "The status of a webhook subscription.",
        "enum": [
          "ACTIVE",
          "INACTIVE"
        ],
        "type": "string",
        "x-enumDescriptions": {
          "ACTIVE": "The webhook subscription is active and the associated URL will receive the subscribed event types.",
          "INACTIVE": "The webhook subscription is no longer active."
        }
      }
    },
    "securitySchemes": {
      "accounting__bearer": {
        "bearerFormat": "JWT",
        "description": "Bearer token authentication using JWT or developer tokens (bxt_*)",
        "scheme": "bearer",
        "type": "http"
      },
      "accounting__oauth2": {
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://accounts-api.brex.com/oauth2/default/v1/authorize",
            "scopes": {
              "accounting.integration.read": "View accounting integration",
              "accounting.integration.write": "View and manage accounting integration",
              "accounting.record.read": "View accounting records",
              "accounting.record.write": "View and manage accounting records",
              "accounts.card.readonly": "View card account data",
              "accounts.cash.readonly": "View business accounts data",
              "audit_logs.readonly": "View audit log data",
              "automation.rules.read": "View automation rules",
              "automation.rules.write": "View and manage automation rules",
              "billing_groups.readonly": "View billing groups, balances and billing transactions",
              "budgets": "View and manage budgets data",
              "budgets.readonly": "View budgets data",
              "cards": "View and manage card data",
              "cards.pan": "View and Send card number data",
              "cards.readonly": "View card data",
              "companies.readonly": "View company data",
              "departments": "View and manage department data",
              "departments.readonly": "View department data",
              "expenses.bill": "View and manage bill expenses data",
              "expenses.card": "View and manage card expenses data",
              "expenses.card.readonly": "View card expenses data",
              "field_values.read": "View custom field values",
              "field_values.write": "View and manage custom field values",
              "fields.read": "View custom fields",
              "fields.write": "View and manage custom fields",
              "https://onboarding.brexapis.com/referrals": "View and manage referral data.",
              "incoming_transfers": "View and manage incoming transfer data",
              "invoices": "View and manage invoices",
              "invoices.readonly": "View invoices",
              "legal_entities": "View and manage legal entities",
              "legal_entities.readonly": "View legal entities",
              "linked_accounts.readonly": "View linked accounts",
              "locations": "View and manage location data",
              "locations.readonly": "View location data",
              "statements.card.readonly": "View card statement data",
              "statements.cash.readonly": "View business accounts statement data",
              "tasks.readonly": "View all the tasks waiting on you",
              "titles": "View and manage title data",
              "titles.readonly": "View title data",
              "transactions.card.readonly": "View card transaction data",
              "transactions.cash.readonly": "View business accounts transaction data",
              "transfers": "View and manage transfer data",
              "transfers.readonly": "View transfer data",
              "travel.trips.readonly": "View Brex Travel data",
              "users": "View and manage user data",
              "users.readonly": "View user data",
              "vendors": "View and manage vendor data",
              "vendors.readonly": "View vendor data"
            },
            "tokenUrl": "https://accounts-api.brex.com/oauth2/default/v1/token"
          }
        },
        "type": "oauth2"
      },
      "budgets__OAuth2": {
        "description": "OAuth2 security scheme",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://accounts-api.brex.com/oauth2/default/v1/authorize",
            "scopes": {
              "budgets": "View and manage budgets data",
              "budgets.readonly": "View budgets data",
              "offline_access": "offline access",
              "openid": "openid"
            },
            "tokenUrl": "https://accounts-api.brex.com/oauth2/default/v1/token"
          }
        },
        "type": "oauth2"
      },
      "expenses__OAuth2": {
        "description": "OAuth2 security scheme",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://accounts-api.brex.com/oauth2/default/v1/authorize",
            "scopes": {
              "expenses.card": "View and manage card expenses data",
              "expenses.card.readonly": "View card expenses data",
              "offline_access": "offline access",
              "openid": "openid"
            },
            "tokenUrl": "https://accounts-api.brex.com/oauth2/default/v1/token"
          }
        },
        "type": "oauth2"
      },
      "fields__OAuth2": {
        "description": "OAuth2 security scheme",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://accounts-api.brex.com/oauth2/default/v1/authorize",
            "scopes": {
              "field_values.read": "View custom field values",
              "field_values.write": "View and manage custom field values",
              "fields.read": "View custom fields",
              "fields.write": "View and manage custom fields",
              "offline_access": "offline access",
              "openid": "openid"
            },
            "tokenUrl": "https://accounts-api.brex.com/oauth2/default/v1/token"
          }
        },
        "type": "oauth2"
      },
      "onboarding__oAuth2ClientCredentials": {
        "description": "\nRefer to [these](https://developer.brex.com/docs/partner_authentication/) docs on how to use client credentials.\n",
        "flows": {
          "clientCredentials": {
            "scopes": {
              "https://onboarding.brexapis.com/referrals": "View and manage referral data.",
              "offline_access": "offline access",
              "openid": "openid"
            },
            "tokenUrl": "https://accounts-api.brex.com/oauth2/default/v1/token"
          }
        },
        "type": "oauth2"
      },
      "payments__OAuth2": {
        "description": "OAuth2 security scheme",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://accounts-api.brex.com/oauth2/default/v1/authorize",
            "scopes": {
              "incoming_transfers": "View and manage incoming transfer data",
              "linked_accounts.readonly": "View linked accounts",
              "offline_access": "offline access",
              "openid": "openid",
              "transfers": "View and manage transfer data",
              "transfers.readonly": "View transfer data",
              "vendors": "View and manage vendor data",
              "vendors.readonly": "View vendor data"
            },
            "tokenUrl": "https://accounts-api.brex.com/oauth2/default/v1/token"
          }
        },
        "type": "oauth2"
      },
      "team__OAuth2": {
        "description": "OAuth2 security scheme",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://accounts-api.brex.com/oauth2/default/v1/authorize",
            "scopes": {
              "cards": "View and manage card data",
              "cards.pan": "View and Send card number data",
              "cards.readonly": "View card data",
              "cost_centers": "View and manage cost center data",
              "cost_centers.readonly": "View cost center data",
              "departments": "View and manage department data",
              "departments.readonly": "View department data",
              "legal_entities": "View and manage legal entities",
              "legal_entities.readonly": "View legal entities",
              "locations": "View and manage location data",
              "locations.readonly": "View location data",
              "offline_access": "offline access",
              "openid": "openid",
              "roles": "View and manage role data",
              "roles.readonly": "View role data",
              "titles": "View and manage title data",
              "titles.readonly": "View title data",
              "users": "View and manage user data",
              "users.readonly": "View user data"
            },
            "tokenUrl": "https://accounts-api.brex.com/oauth2/default/v1/token"
          }
        },
        "type": "oauth2"
      },
      "transactions__OAuth2": {
        "description": "OAuth2 security scheme",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://accounts-api.brex.com/oauth2/default/v1/authorize",
            "scopes": {
              "accounts.card.readonly": "View card account data",
              "accounts.cash.readonly": "View business accounts data",
              "offline_access": "offline access",
              "openid": "openid",
              "statements.card.readonly": "View card statement data",
              "transactions.card.readonly": "View card transaction data"
            },
            "tokenUrl": "https://accounts-api.brex.com/oauth2/default/v1/token"
          }
        },
        "type": "oauth2"
      },
      "travel__OAuth2": {
        "description": "OAuth2 security scheme",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://accounts-api.brex.com/oauth2/default/v1/authorize",
            "scopes": {
              "offline_access": "offline access",
              "openid": "openid"
            },
            "tokenUrl": "https://accounts-api.brex.com/oauth2/default/v1/token"
          }
        },
        "type": "oauth2"
      },
      "travel__oAuth2ClientCredentials": {
        "description": "\nRefer to [these](https://developer.brex.com/docs/onboarding_examples/) docs on how to use client credentials \n",
        "flows": {
          "clientCredentials": {
            "scopes": {
              "offline_access": "offline access",
              "openid": "openid"
            },
            "tokenUrl": "https://accounts-api.brex.com/oauth2/default/v1/token"
          }
        },
        "type": "oauth2"
      },
      "webhooks__OAuth2": {
        "description": "OAuth2 security scheme",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://accounts-api.brex.com/oauth2/default/v1/authorize",
            "scopes": {
              "offline_access": "offline access",
              "openid": "openid"
            },
            "tokenUrl": "https://accounts-api.brex.com/oauth2/default/v1/token"
          },
          "clientCredentials": {
            "scopes": {
              "offline_access": "offline access",
              "openid": "openid"
            },
            "tokenUrl": "https://accounts-api.brex.com/oauth2/default/v1/token"
          }
        },
        "type": "oauth2"
      }
    }
  },
  "info": {
    "title": "Brex API",
    "version": "2026-09-28"
  },
  "openapi": "3.0.3",
  "paths": {
    "/v1/budget_programs": {
      "get": {
        "description": "\nLists Budget Programs belonging to this account\n",
        "operationId": "budgets:listBudgetPrograms",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/budgets__Page_BudgetProgram_"
                }
              }
            },
            "description": "\nA page with a list of Budget Programs\n"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "budgets__OAuth2": [
              "budgets.readonly",
              "budgets"
            ]
          }
        ],
        "summary": "\nList Budget Programs\n",
        "tags": [
          "Budget Programs"
        ],
        "x-brex-product": "budgets",
        "x-brex-source-pointer": "#/paths/~1v1~1budget_programs/get"
      }
    },
    "/v1/budget_programs/{id}": {
      "get": {
        "description": "\nRetrieves a Budget Program by ID\n",
        "operationId": "budgets:getBudgetProgramById",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/budgets__BudgetProgram"
                }
              }
            },
            "description": "\nThe Budget Program that was retrieved\n"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {
            "budgets__OAuth2": [
              "budgets.readonly",
              "budgets"
            ]
          }
        ],
        "summary": "\nGet Budget Program\n",
        "tags": [
          "Budget Programs"
        ],
        "x-brex-product": "budgets",
        "x-brex-source-pointer": "#/paths/~1v1~1budget_programs~1{id}/get"
      }
    },
    "/v1/budgets": {
      "get": {
        "description": "\nLists Spend Limits belonging to this account\n",
        "operationId": "budgets:listBudgets",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/budgets__Page_Budget_"
                }
              }
            },
            "description": "\nA page with a list of Spend Limits\n"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "budgets__OAuth2": [
              "budgets.readonly",
              "budgets"
            ]
          }
        ],
        "summary": "\nList Spend Limits\n",
        "tags": [
          "Spend Limits (v1)"
        ],
        "x-brex-product": "budgets",
        "x-brex-source-pointer": "#/paths/~1v1~1budgets/get"
      }
    },
    "/v1/budgets/{id}": {
      "get": {
        "description": "\nRetrieves a Spend Limit by ID\n",
        "operationId": "budgets:getBudgetById",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/budgets__Budget"
                }
              }
            },
            "description": "\nThe Spend Limit that was retrieved\n"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {
            "budgets__OAuth2": [
              "budgets.readonly",
              "budgets"
            ]
          }
        ],
        "summary": "\nGet Spend Limit\n",
        "tags": [
          "Spend Limits (v1)"
        ],
        "x-brex-product": "budgets",
        "x-brex-source-pointer": "#/paths/~1v1~1budgets~1{id}/get"
      }
    },
    "/v1/budgets/{id}/archive": {
      "post": {
        "description": "\nArchives a Spend Limit, making it unusable for future expenses and removing it from the UI\n",
        "operationId": "budgets:archiveBudget",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "\nThe Spend Limit that was archived\n"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {
            "budgets__OAuth2": [
              "budgets"
            ]
          }
        ],
        "summary": "\nArchive a Spend Limit\n",
        "tags": [
          "Spend Limits (v1)"
        ],
        "x-brex-product": "budgets",
        "x-brex-source-pointer": "#/paths/~1v1~1budgets~1{id}~1archive/post"
      }
    },
    "/v1/expenses": {
      "get": {
        "description": "List expenses under the same account. Admin and bookkeeper have access to any expense, and regular users can only access their own.",
        "operationId": "expenses:listExpenses",
        "parameters": [
          {
            "description": "Get additional details for the expense, e.g. merchant mcc code, by passing in `expand[]=merchant`. Query parameters include `location`, `department`, `cost_center`, `merchant`, `receipts.download_uris`, `user`, `budget`, `payment`, `spending_entity` and `policy`.",
            "example": "\n?expand[]=merchant&expand[]=location\n",
            "in": "query",
            "name": "expand[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Get expenses belong to provided user(s).",
            "in": "query",
            "name": "user_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Get itemized expenses belong to provided parent expenses ID(s).",
            "in": "query",
            "name": "parent_expense_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "budget_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "spending_entity_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "expense_type[]",
            "schema": {
              "items": {
                "$ref": "#/components/schemas/expenses__ExpenseType"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "status[]",
            "schema": {
              "items": {
                "$ref": "#/components/schemas/expenses__ExpenseStatus"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "payment_status[]",
            "schema": {
              "items": {
                "$ref": "#/components/schemas/expenses__ExpensePaymentStatus"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Filter by documentation compliance status. Use `DUE` and `OVERDUE` to list expenses currently missing required documentation such as receipts, memos, attendees, or coding.",
            "in": "query",
            "name": "compliance_status[]",
            "schema": {
              "items": {
                "$ref": "#/components/schemas/expenses__ExpenseComplianceStatus"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Filter by derived compliance status, which combines documentation and review compliance. Use `DOCUMENTATION_DUE` to list expenses currently missing submitter documentation.",
            "in": "query",
            "name": "derived_compliance_status[]",
            "schema": {
              "items": {
                "$ref": "#/components/schemas/expenses__ExpenseDerivedComplianceStatus"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "\nShows only expenses with a `purchased_at` on or after this date-time. This parameter is the date-time notation as defined by [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6), e.g. 2022-11-12T23:59:59.999\n",
            "example": "\n2023-01-01T23:59:59.999\n",
            "in": "query",
            "name": "purchased_at_start",
            "schema": {
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "\nShows only expenses with a `purchased_at` on or before this date-time. This parameter is the date-time notation as defined by [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6), e.g. 2022-11-12T23:59:59.999\n",
            "example": "\n2023-01-10T23:59:59.999\n",
            "in": "query",
            "name": "purchased_at_end",
            "schema": {
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "\nShows only expenses with a `updated_at` on or after this date-time. This parameter is the date-time notation as defined by [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6), e.g. 2022-11-12T23:59:59.999\n",
            "example": "\n2023-01-01T23:59:59.999\n",
            "in": "query",
            "name": "updated_at_start",
            "schema": {
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "\nShows only expenses with a `updated_at` on or before this date-time. This parameter is the date-time notation as defined by [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6), e.g. 2022-11-12T23:59:59.999\n",
            "example": "\n2023-01-10T23:59:59.999\n",
            "in": "query",
            "name": "updated_at_end",
            "schema": {
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "\nShows only expenses with a `payment_posted_at` on or after this date-time. This parameter is the date-time notation as defined by [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6), e.g. 2022-11-12T23:59:59.999\n",
            "example": "\n2023-01-01T23:59:59.999\n",
            "in": "query",
            "name": "payment_posted_at_start",
            "schema": {
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "\nShows only expenses with a `payment_posted_at` on or before this date-time. This parameter is the date-time notation as defined by [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6), e.g. 2022-11-12T23:59:59.999\n",
            "example": "\n2023-01-10T23:59:59.999\n",
            "in": "query",
            "name": "payment_posted_at_end",
            "schema": {
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "Load custom fields for the expenses.",
            "in": "query",
            "name": "load_custom_fields",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          },
          {
            "description": "\nLoad the expense's addenda: structured purchase data that card networks and merchants send alongside a transaction, such as lodging folios, airline tickets, and the customer code the cardholder gave the merchant. Most addenda arrive with the card transaction's clearing, but some travel data can arrive days later, and many transactions never receive any.\n",
            "in": "query",
            "name": "load_expense_addenda",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          },
          {
            "description": "\nThe cursor to use for pagination. This is the `next_cursor` value returned from the previous response.\n",
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "\nControls the maximum number of expenses returned in the response, can't be greater than 100\n",
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/expenses__Page_ExpandableExpense_"
                }
              }
            },
            "description": "List expenses response."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "expenses__OAuth2": [
              "expenses.card.readonly",
              "expenses.card"
            ]
          }
        ],
        "summary": "List expenses",
        "tags": [
          "Expenses"
        ],
        "x-brex-product": "expenses",
        "x-brex-source-pointer": "#/paths/~1v1~1expenses/get"
      }
    },
    "/v1/expenses/card": {
      "get": {
        "deprecated": true,
        "description": "This endpoint is deprecated. Use the \"List expenses\" (`GET /v1/expenses`) endpoint instead.",
        "operationId": "expenses:listExpenses_1",
        "parameters": [
          {
            "description": "Get additional details for the expense, e.g. merchant mcc code, by passing in `expand[]=merchant`. Query parameters include `location`, `department`, `cost_center`, `merchant`, `receipts.download_uris`, `user`, `budget`, `payment`, `spending_entity` and `policy`.",
            "example": "\n?expand[]=merchant&expand[]=location\n",
            "in": "query",
            "name": "expand[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Get expenses belong to provided user(s).",
            "in": "query",
            "name": "user_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Get itemized expenses belong to provided parent expenses ID(s).",
            "in": "query",
            "name": "parent_expense_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "budget_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "spending_entity_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "status[]",
            "schema": {
              "items": {
                "$ref": "#/components/schemas/expenses__ExpenseStatus"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "payment_status[]",
            "schema": {
              "items": {
                "$ref": "#/components/schemas/expenses__ExpensePaymentStatus"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Filter by documentation compliance status. Use `DUE` and `OVERDUE` to list expenses currently missing required documentation such as receipts, memos, attendees, or coding.",
            "in": "query",
            "name": "compliance_status[]",
            "schema": {
              "items": {
                "$ref": "#/components/schemas/expenses__ExpenseComplianceStatus"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Filter by derived compliance status, which combines documentation and review compliance. Use `DOCUMENTATION_DUE` to list expenses currently missing submitter documentation.",
            "in": "query",
            "name": "derived_compliance_status[]",
            "schema": {
              "items": {
                "$ref": "#/components/schemas/expenses__ExpenseDerivedComplianceStatus"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "\nShows only expenses with a `purchased_at` on or after this date-time. This parameter is the date-time notation as defined by [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6), e.g. 2022-11-12T23:59:59.999\n",
            "example": "\n2023-01-01T23:59:59.999\n",
            "in": "query",
            "name": "purchased_at_start",
            "schema": {
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "\nShows only expenses with a `purchased_at` on or before this date-time. This parameter is the date-time notation as defined by [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6), e.g. 2022-11-12T23:59:59.999\n",
            "example": "\n2023-01-10T23:59:59.999\n",
            "in": "query",
            "name": "purchased_at_end",
            "schema": {
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "\nShows only expenses with a `updated_at` on or after this date-time. This parameter is the date-time notation as defined by [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6), e.g. 2022-11-12T23:59:59.999\n",
            "example": "\n2023-01-01T23:59:59.999\n",
            "in": "query",
            "name": "updated_at_start",
            "schema": {
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "\nShows only expenses with a `updated_at` on or before this date-time. This parameter is the date-time notation as defined by [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6), e.g. 2022-11-12T23:59:59.999\n",
            "example": "\n2023-01-10T23:59:59.999\n",
            "in": "query",
            "name": "updated_at_end",
            "schema": {
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "\nShows only expenses with a `payment_posted_at` on or after this date-time. This parameter is the date-time notation as defined by [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6), e.g. 2022-11-12T23:59:59.999\n",
            "example": "\n2023-01-01T23:59:59.999\n",
            "in": "query",
            "name": "payment_posted_at_start",
            "schema": {
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "\nShows only expenses with a `payment_posted_at` on or before this date-time. This parameter is the date-time notation as defined by [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6), e.g. 2022-11-12T23:59:59.999\n",
            "example": "\n2023-01-10T23:59:59.999\n",
            "in": "query",
            "name": "payment_posted_at_end",
            "schema": {
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "Load custom fields for the expenses.",
            "in": "query",
            "name": "load_custom_fields",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          },
          {
            "description": "\nLoad the expense's addenda: structured purchase data that card networks and merchants send alongside a transaction, such as lodging folios, airline tickets, and the customer code the cardholder gave the merchant. Most addenda arrive with the card transaction's clearing, but some travel data can arrive days later, and many transactions never receive any.\n",
            "in": "query",
            "name": "load_expense_addenda",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          },
          {
            "description": "\nThe cursor to use for pagination. This is the `next_cursor` value returned from the previous response.\n",
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "\nControls the maximum number of expenses returned in the response, can't be greater than 100\n",
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/expenses__Page_ExpandableExpense_"
                }
              }
            },
            "description": "List expenses response."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "expenses__OAuth2": [
              "expenses.card.readonly",
              "expenses.card"
            ]
          }
        ],
        "summary": "List card expenses",
        "tags": [
          "Card Expenses"
        ],
        "x-brex-product": "expenses",
        "x-brex-source-pointer": "#/paths/~1v1~1expenses~1card/get"
      }
    },
    "/v1/expenses/card/receipt_match": {
      "post": {
        "description": "\nThe `uri` will be a pre-signed S3 URL allowing you to upload the receipt securely. This URL can only be used for a `PUT` operation and expires 30 minutes after its creation. Once your upload is complete, we will try to match the receipt with existing expenses.\n\nRefer to these [docs](https://docs.aws.amazon.com/AmazonS3/latest/dev/PresignedUrlUploadObject.html) on how to upload to this pre-signed S3 URL. We highly recommend using one of AWS SDKs if they're available for your language to upload these files.\n",
        "operationId": "expenses:receiptMatch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/expenses__ReceiptMatchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/expenses__CreateAsyncFileUploadResponse"
                }
              }
            },
            "description": "Create a new receipt match response."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "expenses__OAuth2": []
          }
        ],
        "summary": "Create a new receipt match",
        "tags": [
          "Receipt Match"
        ],
        "x-brex-product": "expenses",
        "x-brex-source-pointer": "#/paths/~1v1~1expenses~1card~1receipt_match/post"
      }
    },
    "/v1/expenses/card/{expense_id}": {
      "get": {
        "deprecated": true,
        "description": "This endpoint is deprecated. Use the \"Get an expense\" (`GET /v1/expenses/{id}`) endpoint instead.",
        "operationId": "expenses:getCardExpense",
        "parameters": [
          {
            "in": "path",
            "name": "expense_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Get additional details for the expense, e.g. merchant mcc code, by passing in `expand[]=merchant`. Query parameters include `location`, `department`, `cost_center`, `merchant`, `receipts.download_uris`, `user`, `budget`, `payment`, `spending_entity` and `policy`.",
            "example": "\n?expand[]=merchant&expand[]=location\n",
            "in": "query",
            "name": "expand[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Load custom fields for the expense.",
            "in": "query",
            "name": "load_custom_fields",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          },
          {
            "description": "\nLoad the expense's addenda: structured purchase data that card networks and merchants send alongside a transaction, such as lodging folios, airline tickets, and the customer code the cardholder gave the merchant. Most addenda arrive with the card transaction's clearing, but some travel data can arrive days later, and many transactions never receive any.\n",
            "in": "query",
            "name": "load_expense_addenda",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/expenses__ExpandableExpense"
                }
              }
            },
            "description": "Get an expense response."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          }
        },
        "security": [
          {
            "expenses__OAuth2": [
              "expenses.card.readonly",
              "expenses.card"
            ]
          }
        ],
        "summary": "Get a card expense",
        "tags": [
          "Card Expenses"
        ],
        "x-brex-product": "expenses",
        "x-brex-source-pointer": "#/paths/~1v1~1expenses~1card~1{expense_id}/get"
      },
      "put": {
        "description": "Update an expense. Admin and bookkeeper have access to any expense, and regular users can only access their own.",
        "operationId": "expenses:updateExpense",
        "parameters": [
          {
            "in": "path",
            "name": "expense_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/expenses__UpdateExpenseRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/expenses__Expense"
                }
              }
            },
            "description": "Update an expense response."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          }
        },
        "security": [
          {
            "expenses__OAuth2": [
              "expenses.card"
            ]
          }
        ],
        "summary": "Update an expense",
        "tags": [
          "Card Expenses"
        ],
        "x-brex-product": "expenses",
        "x-brex-source-pointer": "#/paths/~1v1~1expenses~1card~1{expense_id}/put"
      }
    },
    "/v1/expenses/card/{expense_id}/receipt_upload": {
      "post": {
        "description": "\nThe `uri` will be a pre-signed S3 URL allowing you to upload the receipt securely. This URL can only be used for a `PUT` operation and expires 30 minutes after its creation. Once your upload is complete, we will try to match the receipt with existing expenses.\n\nRefer to these [docs](https://docs.aws.amazon.com/AmazonS3/latest/dev/PresignedUrlUploadObject.html) on how to upload to this pre-signed S3 URL. We highly recommend using one of AWS SDKs if they're available for your language to upload these files.\n",
        "operationId": "expenses:receiptUpload",
        "parameters": [
          {
            "in": "path",
            "name": "expense_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/expenses__ReceiptUploadRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/expenses__CreateAsyncFileUploadResponse"
                }
              }
            },
            "description": "Upload a new receipt response."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          }
        },
        "security": [
          {
            "expenses__OAuth2": []
          }
        ],
        "summary": "Create a new receipt upload",
        "tags": [
          "Receipt Upload"
        ],
        "x-brex-product": "expenses",
        "x-brex-source-pointer": "#/paths/~1v1~1expenses~1card~1{expense_id}~1receipt_upload/post"
      }
    },
    "/v1/expenses/{id}": {
      "get": {
        "description": "Get an expense by its ID.",
        "operationId": "expenses:getExpense",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Get additional details for the expense, e.g. merchant mcc code, by passing in `expand[]=merchant`. Query parameters include `location`, `department`, `cost_center`, `merchant`, `receipts.download_uris`, `user`, `budget`, `payment`, `spending_entity` and `policy`.",
            "example": "\n?expand[]=merchant&expand[]=location\n",
            "in": "query",
            "name": "expand[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Load custom fields for the expense.",
            "in": "query",
            "name": "load_custom_fields",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          },
          {
            "description": "\nLoad the expense's addenda: structured purchase data that card networks and merchants send alongside a transaction, such as lodging folios, airline tickets, and the customer code the cardholder gave the merchant. Most addenda arrive with the card transaction's clearing, but some travel data can arrive days later, and many transactions never receive any.\n",
            "in": "query",
            "name": "load_expense_addenda",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/expenses__ExpandableExpense"
                }
              }
            },
            "description": "Get an expense response."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          }
        },
        "security": [
          {
            "expenses__OAuth2": [
              "expenses.card.readonly",
              "expenses.card"
            ]
          }
        ],
        "summary": "Get an expense",
        "tags": [
          "Expenses"
        ],
        "x-brex-product": "expenses",
        "x-brex-source-pointer": "#/paths/~1v1~1expenses~1{id}/get"
      }
    },
    "/v1/fields": {
      "get": {
        "description": "List custom fields under the same account",
        "operationId": "fields:listFields",
        "parameters": [
          {
            "description": "The Brex identifiers of the field to filter by",
            "example": "extended_field_foobar",
            "in": "query",
            "name": "field_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "The cursor to use for pagination. This is the `next_cursor` value returned from the previous response.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "Controls the maximum number of field values returned in the response. It can't be greater than 1000.",
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/fields__Page_Field_"
                }
              }
            },
            "description": "List custom fields response"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "fields__OAuth2": [
              "fields.read",
              "fields.write"
            ]
          }
        ],
        "summary": "List custom fields",
        "tags": [
          "Fields"
        ],
        "x-brex-product": "fields",
        "x-brex-source-pointer": "#/paths/~1v1~1fields/get"
      },
      "post": {
        "description": "Create a custom field",
        "operationId": "fields:createField",
        "parameters": [
          {
            "description": "Idempotency key for this request.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/fields__FieldCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/fields__Field"
                }
              }
            },
            "description": "Create custom field response"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "fields__OAuth2": [
              "fields.write"
            ]
          }
        ],
        "summary": "Create a custom field",
        "tags": [
          "Fields"
        ],
        "x-brex-product": "fields",
        "x-brex-source-pointer": "#/paths/~1v1~1fields/post"
      }
    },
    "/v1/fields/{field_id}/values": {
      "delete": {
        "description": "Delete custom field values (up to 1000 values at once) for a specific field",
        "operationId": "fields:deleteFieldValues",
        "parameters": [
          {
            "description": "The Field Brex identifier",
            "example": "extended_field_foobar",
            "in": "path",
            "name": "field_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/fields__DeleteFieldValueListBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/fields__DeletedFieldValueListResponse"
                }
              }
            },
            "description": "Delete custom field value list response"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "fields__OAuth2": [
              "fields.write"
            ]
          }
        ],
        "summary": "Delete custom field values",
        "tags": [
          "Field Values"
        ],
        "x-brex-product": "fields",
        "x-brex-source-pointer": "#/paths/~1v1~1fields~1{field_id}~1values/delete"
      },
      "get": {
        "description": "List values under the same custom field",
        "operationId": "fields:listFieldValues",
        "parameters": [
          {
            "description": "The Field Brex identifier",
            "example": "extended_field_foobar",
            "in": "path",
            "name": "field_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Field value Brex identifier(s) to filter by",
            "example": "efo_foobar",
            "in": "query",
            "name": "brex_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Field value identifier(s) to filter by",
            "example": "FooBar",
            "in": "query",
            "name": "value_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Field value remote identifier(s) to filter by",
            "example": "foo_bar",
            "in": "query",
            "name": "remote_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "The cursor to use for pagination. This is the `next_cursor` value returned from the previous response.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "Controls the maximum number of field values returned in the response. It can't be greater than 1000.",
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          },
          {
            "description": "Field value's value to filter by",
            "example": "Foobar",
            "in": "query",
            "name": "value",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/fields__Page_FieldValue_"
                }
              }
            },
            "description": "List custom field values response"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "fields__OAuth2": [
              "field_values.read",
              "field_values.write"
            ]
          }
        ],
        "summary": "List custom field values",
        "tags": [
          "Field Values"
        ],
        "x-brex-product": "fields",
        "x-brex-source-pointer": "#/paths/~1v1~1fields~1{field_id}~1values/get"
      },
      "post": {
        "description": "Create custom field values (up to 1000 values at once) for a specific field",
        "operationId": "fields:createFieldValues",
        "parameters": [
          {
            "description": "The Field Brex identifier",
            "example": "extended_field_foobar",
            "in": "path",
            "name": "field_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Idempotency key for this request.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/fields__CreateFieldValueListBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/fields__CreateFieldValueListResponse"
                }
              }
            },
            "description": "Create custom field values response"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "fields__OAuth2": [
              "field_values.write"
            ]
          }
        ],
        "summary": "Create custom field values",
        "tags": [
          "Field Values"
        ],
        "x-brex-product": "fields",
        "x-brex-source-pointer": "#/paths/~1v1~1fields~1{field_id}~1values/post"
      },
      "put": {
        "description": "Update custom field values (up to 1000 values at once) for a specific field",
        "operationId": "fields:updateFieldValues",
        "parameters": [
          {
            "description": "The Field Brex identifier",
            "example": "extended_field_foobar",
            "in": "path",
            "name": "field_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/fields__UpdateFieldValueListBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/fields__UpdateFieldValueListResponse"
                }
              }
            },
            "description": "Update custom field value list response"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "fields__OAuth2": [
              "field_values.write"
            ]
          }
        ],
        "summary": "Update custom field values",
        "tags": [
          "Field Values"
        ],
        "x-brex-product": "fields",
        "x-brex-source-pointer": "#/paths/~1v1~1fields~1{field_id}~1values/put"
      }
    },
    "/v1/fields/{field_id}/values/{brex_id}": {
      "get": {
        "description": "Get a field value by field ID and field value ID",
        "operationId": "fields:getFieldValueById",
        "parameters": [
          {
            "description": "The Field Brex identifier",
            "example": "extended_field_foobar",
            "in": "path",
            "name": "field_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The field value ID (`brex_id`) to retrieve.",
            "example": "efo_foobar",
            "in": "path",
            "name": "brex_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/fields__FieldValue"
                }
              }
            },
            "description": "Get a field value response"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "fields__OAuth2": [
              "field_values.read",
              "field_values.write"
            ]
          }
        ],
        "summary": "Get a field value",
        "tags": [
          "Field Values"
        ],
        "x-brex-product": "fields",
        "x-brex-source-pointer": "#/paths/~1v1~1fields~1{field_id}~1values~1{brex_id}/get"
      }
    },
    "/v1/fields/{id}": {
      "delete": {
        "description": "Delete a custom field by Brex ID",
        "operationId": "fields:deleteField",
        "parameters": [
          {
            "description": "The Brex identifier of the field to delete",
            "example": "extended_field_foobar",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Delete custom field response"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "fields__OAuth2": [
              "fields.write"
            ]
          }
        ],
        "summary": "Delete a custom field",
        "tags": [
          "Fields"
        ],
        "x-brex-product": "fields",
        "x-brex-source-pointer": "#/paths/~1v1~1fields~1{id}/delete"
      },
      "get": {
        "description": "Get a custom field by Brex ID",
        "operationId": "fields:getFieldById",
        "parameters": [
          {
            "description": "The Brex identifier of the field to retrieve",
            "example": "extended_field_foobar",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/fields__Field"
                }
              }
            },
            "description": "Get custom field response"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "fields__OAuth2": [
              "fields.read",
              "fields.write"
            ]
          }
        ],
        "summary": "Get custom field",
        "tags": [
          "Fields"
        ],
        "x-brex-product": "fields",
        "x-brex-source-pointer": "#/paths/~1v1~1fields~1{id}/get"
      },
      "put": {
        "description": "Update a field by ID",
        "operationId": "fields:updateField",
        "parameters": [
          {
            "description": "The Brex identifier of the field to update",
            "example": "extended_field_foobar",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/fields__FieldUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/fields__Field"
                }
              }
            },
            "description": "Update custom field response"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "fields__OAuth2": [
              "fields.write"
            ]
          }
        ],
        "summary": "Update a custom field",
        "tags": [
          "Fields"
        ],
        "x-brex-product": "fields",
        "x-brex-source-pointer": "#/paths/~1v1~1fields~1{id}/put"
      }
    },
    "/v1/incoming_transfers": {
      "post": {
        "description": "\nThis endpoint creates a new incoming transfer. You may use use any eligible bank account connection to fund (ACH Debit) \nany active Brex business account.\n\n**Reminder**: You may not use the Brex API for any activity that requires a license or registration from any \ngovernmental authority without Brex's prior review and approval. This includes but is not limited to any money services\nbusiness or money transmission activity.\n\nPlease review the <a href=\"https://www.brex.com/legal/developer-portal/\">Brex Access Agreement</a> and contact us if \nyou have any questions.\n",
        "operationId": "payments:createIncomingTransfer",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/payments__CreateIncomingTransferRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payments__Transfer"
                }
              }
            },
            "description": "createIncomingTransfer 200 response"
          }
        },
        "security": [
          {
            "payments__OAuth2": [
              "incoming_transfers"
            ]
          }
        ],
        "summary": "\nCreate incoming transfer\n",
        "tags": [
          "Transfers"
        ],
        "x-brex-product": "payments",
        "x-brex-source-pointer": "#/paths/~1v1~1incoming_transfers/post"
      }
    },
    "/v1/linked_accounts": {
      "get": {
        "description": "\nThis endpoint lists all bank connections that are eligible to make ACH transfers to Brex business account\n",
        "operationId": "payments:listLinkedAccounts",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payments__Page_BankConnection_"
                }
              }
            },
            "description": "Returns a list of bank connections"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "payments__OAuth2": [
              "linked_accounts.readonly"
            ]
          }
        ],
        "summary": "\nLists linked accounts\n",
        "tags": [
          "Linked Accounts"
        ],
        "x-brex-product": "payments",
        "x-brex-source-pointer": "#/paths/~1v1~1linked_accounts/get"
      }
    },
    "/v1/referrals": {},
    "/v1/referrals/{id}": {},
    "/v1/referrals/{id}/document_upload": {},
    "/v1/referrals/{id}/process_ein_document": {},
    "/v1/transfers": {
      "get": {
        "description": "\nThis endpoint lists existing transfers for an account.\n\nCurrently, the API can only return transfers for the following payment rails:\n- ACH\n- DOMESTIC_WIRE\n- CHEQUE\n- INTERNATIONAL_WIRE\n",
        "operationId": "payments:listTransfers",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payments__Page_Transfer_"
                }
              }
            },
            "description": "Returns a list of transfers."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "payments__OAuth2": [
              "transfers.readonly",
              "incoming_transfers"
            ]
          }
        ],
        "summary": "\nLists transfers \n",
        "tags": [
          "Transfers"
        ],
        "x-brex-product": "payments",
        "x-brex-source-pointer": "#/paths/~1v1~1transfers/get"
      },
      "post": {
        "description": "\nThis endpoint creates a new transfer.\n\nCurrently, the API can only create transfers for the following payment rails:\n- ACH\n- DOMESTIC_WIRE\n- CHEQUE\n- INTERNATIONAL_WIRES\n\n**Transaction Descriptions**\n* For outgoing check payments, a successful transfer will return a response containing a description value with a format of `Check #<check number> to <recipient_name> - <external_memo>`.\n* For book transfers (from one Brex Business account to another), the recipient value will have a format of `<customer_account.dba_name> - <external_memo>` and the sender will have a format of `<target customer account's dba name> - <external_memo>`.\n* For other payment rails, the format will be `<counterparty_name> - <external_memo>`, where Counterparty name is `payment_instrument.beneficiary_name` or `contact.name`\nFor vendors created from the Payments API, the `counterparty_name` will be the `company_name` [field](/openapi/payments_api/#operation/createVendor!path=company_name&t=request).\n\n**Reminder**: You may not use the Brex API for any activity that requires a license or registration from any \ngovernmental authority without Brex's prior review and approval. This includes but is not limited to any money services\nbusiness or money transmission activity.\n\nPlease review the <a href=\"https://www.brex.com/legal/developer-portal/\">Brex Access Agreement</a> and contact us if \nyou have any questions.\n",
        "operationId": "payments:createTransfer",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/payments__CreateTransferRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payments__Transfer"
                }
              }
            },
            "description": "createTransfer 200 response"
          }
        },
        "security": [
          {
            "payments__OAuth2": [
              "transfers"
            ]
          }
        ],
        "summary": "\nCreate transfer\n",
        "tags": [
          "Transfers"
        ],
        "x-brex-product": "payments",
        "x-brex-source-pointer": "#/paths/~1v1~1transfers/post"
      }
    },
    "/v1/transfers/{id}": {
      "get": {
        "description": "\nThis endpoint gets a transfer by ID.\n\nCurrently, the API can only return transfers for the following payment rails:\n- ACH\n- DOMESTIC_WIRE\n- CHEQUE\n- INTERNATIONAL_WIRE\n",
        "operationId": "payments:getTransfersById",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payments__Transfer"
                }
              }
            },
            "description": "Returns a transfer."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "payments__OAuth2": [
              "transfers.readonly",
              "incoming_transfers"
            ]
          }
        ],
        "summary": "\nGet transfer\n",
        "tags": [
          "Transfers"
        ],
        "x-brex-product": "payments",
        "x-brex-source-pointer": "#/paths/~1v1~1transfers~1{id}/get"
      }
    },
    "/v1/trips": {
      "get": {
        "description": "Lists trips according to the filters passed in the query string.",
        "operationId": "travel:listTrips",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "format": "int64",
              "nullable": true,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "last_updated_after",
            "required": false,
            "schema": {
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "Whether to load custom field values on the returned resources.",
            "in": "query",
            "name": "load_custom_fields",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/travel__Page_Trip_"
                }
              }
            },
            "description": "A page with a list of trips."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "travel__OAuth2": [
              "travel.trips",
              "travel.trips.readonly"
            ]
          }
        ],
        "summary": "List trips",
        "tags": [
          "Trips"
        ],
        "x-brex-product": "travel",
        "x-brex-source-pointer": "#/paths/~1v1~1trips/get"
      }
    },
    "/v1/trips/{trip_id}": {
      "get": {
        "description": "Retrieves a trip by ID.",
        "operationId": "travel:getTrip",
        "parameters": [
          {
            "in": "path",
            "name": "trip_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to load custom field values on the returned resources.",
            "in": "query",
            "name": "load_custom_fields",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/travel__Trip"
                }
              }
            },
            "description": "The trip that was retrieved."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "travel__OAuth2": [
              "travel.trips",
              "travel.trips.readonly"
            ]
          }
        ],
        "summary": "Get trip",
        "tags": [
          "Trips"
        ],
        "x-brex-product": "travel",
        "x-brex-source-pointer": "#/paths/~1v1~1trips~1{trip_id}/get"
      }
    },
    "/v1/trips/{trip_id}/bookings": {
      "get": {
        "description": "Lists the bookings within a trip.",
        "operationId": "travel:listTripBookings",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "format": "int64",
              "nullable": true,
              "type": "integer"
            }
          },
          {
            "description": "Whether to load custom field values on the returned resources.",
            "in": "query",
            "name": "load_custom_fields",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          },
          {
            "in": "path",
            "name": "trip_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/travel__Page_Booking_"
                }
              }
            },
            "description": "A page with a list of bookings."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "travel__OAuth2": [
              "travel.trips",
              "travel.trips.readonly"
            ]
          }
        ],
        "summary": "List trip bookings",
        "tags": [
          "Trips"
        ],
        "x-brex-product": "travel",
        "x-brex-source-pointer": "#/paths/~1v1~1trips~1{trip_id}~1bookings/get"
      }
    },
    "/v1/trips/{trip_id}/bookings/{booking_id}": {
      "get": {
        "description": "Retrieves a booking by trip and booking ID.",
        "operationId": "travel:getBooking",
        "parameters": [
          {
            "in": "path",
            "name": "trip_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "booking_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to load custom field values on the returned resources.",
            "in": "query",
            "name": "load_custom_fields",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/travel__Booking"
                }
              }
            },
            "description": "The booking that was retrieved."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "travel__OAuth2": [
              "travel.trips",
              "travel.trips.readonly"
            ]
          }
        ],
        "summary": "Get booking",
        "tags": [
          "Trips"
        ],
        "x-brex-product": "travel",
        "x-brex-source-pointer": "#/paths/~1v1~1trips~1{trip_id}~1bookings~1{booking_id}/get"
      }
    },
    "/v1/vendors": {
      "get": {
        "description": "\nThis endpoint lists all existing vendors for an account.\nTakes an optional parameter to match by vendor name.\n",
        "operationId": "payments:listVendors",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payments__Page_VendorResponse_"
                }
              }
            },
            "description": "Returns a list of vendor objects."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "payments__OAuth2": [
              "vendors.readonly"
            ]
          }
        ],
        "summary": "\nLists vendors \n",
        "tags": [
          "Vendors"
        ],
        "x-brex-product": "payments",
        "x-brex-source-pointer": "#/paths/~1v1~1vendors/get"
      },
      "post": {
        "description": "\nThis endpoint creates a new vendor.\n",
        "operationId": "payments:createVendor",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/payments__CreateVendorRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payments__VendorResponse"
                }
              }
            },
            "description": "createVendor 200 response"
          }
        },
        "security": [
          {
            "payments__OAuth2": [
              "vendors"
            ]
          }
        ],
        "summary": "\nCreate vendor\n",
        "tags": [
          "Vendors"
        ],
        "x-brex-product": "payments",
        "x-brex-source-pointer": "#/paths/~1v1~1vendors/post"
      }
    },
    "/v1/vendors/{id}": {
      "delete": {
        "description": "\nThis endpoint deletes a vendor by ID.\n",
        "operationId": "payments:deleteVendor",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "deleteVendor 200 response"
          }
        },
        "security": [
          {
            "payments__OAuth2": [
              "vendors"
            ]
          }
        ],
        "summary": "\nDelete vendor.\n",
        "tags": [
          "Vendors"
        ],
        "x-brex-product": "payments",
        "x-brex-source-pointer": "#/paths/~1v1~1vendors~1{id}/delete"
      },
      "get": {
        "description": "\nThis endpoint gets a vendor by ID.\n",
        "operationId": "payments:getVendorById",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payments__VendorResponse"
                }
              }
            },
            "description": "Returns a vendor object."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "payments__OAuth2": [
              "vendors.readonly"
            ]
          }
        ],
        "summary": "\nGet vendor\n",
        "tags": [
          "Vendors"
        ],
        "x-brex-product": "payments",
        "x-brex-source-pointer": "#/paths/~1v1~1vendors~1{id}/get"
      },
      "put": {
        "description": "\n    Updates an existing vendor by ID.\n",
        "operationId": "payments:updateVendor",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/payments__UpdateVendorRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payments__VendorResponse"
                }
              }
            },
            "description": "updateVendor 200 response"
          }
        },
        "security": [
          {
            "payments__OAuth2": [
              "vendors"
            ]
          }
        ],
        "summary": "Update vendor",
        "tags": [
          "Vendors"
        ],
        "x-brex-product": "payments",
        "x-brex-source-pointer": "#/paths/~1v1~1vendors~1{id}/put"
      }
    },
    "/v1/webhooks": {
      "get": {
        "description": "List the webhooks you have registered",
        "operationId": "webhooks:listWebhookSubscriptions",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhooks__Page_WebhookSubscription_"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "webhooks__OAuth2": []
          }
        ],
        "summary": "List Webhooks",
        "tags": [
          "Webhook Subscriptions"
        ],
        "x-brex-product": "webhooks",
        "x-brex-source-pointer": "#/paths/~1v1~1webhooks/get"
      },
      "post": {
        "description": "Register an endpoint to start receiving selected webhook events",
        "operationId": "webhooks:createWebhookSubscription",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/webhooks__CreateWebhookSubscriptionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhooks__WebhookSubscription"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "webhooks__OAuth2": []
          }
        ],
        "summary": "Register Webhook",
        "tags": [
          "Webhook Subscriptions"
        ],
        "x-brex-product": "webhooks",
        "x-brex-source-pointer": "#/paths/~1v1~1webhooks/post"
      }
    },
    "/v1/webhooks/groups": {
      "get": {
        "description": "Lists webhook groups.",
        "operationId": "webhooks:listWebhookGroups",
        "parameters": [
          {
            "description": "Cursor for pagination.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "Limit for pagination. If not provided, defaults to 100. Cannot be greater than 1000.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 100,
              "format": "int32",
              "maximum": 1000,
              "minimum": 0,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhooks__Page_WebhookGroup_"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "webhooks__OAuth2": []
          }
        ],
        "summary": "List Webhook Groups",
        "tags": [
          "Webhook Groups"
        ],
        "x-brex-product": "webhooks",
        "x-brex-source-pointer": "#/paths/~1v1~1webhooks~1groups/get"
      },
      "post": {
        "description": "Creates a webhook group.",
        "operationId": "webhooks:createWebhookGroup",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/webhooks__CreateWebhookGroupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhooks__WebhookGroup"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "webhooks__OAuth2": []
          }
        ],
        "summary": "Create Webhook Group",
        "tags": [
          "Webhook Groups"
        ],
        "x-brex-product": "webhooks",
        "x-brex-source-pointer": "#/paths/~1v1~1webhooks~1groups/post"
      }
    },
    "/v1/webhooks/groups/{id}": {
      "delete": {
        "description": "Deletes a webhook group and all its members.",
        "operationId": "webhooks:deleteWebhookGroup",
        "parameters": [
          {
            "description": "The ID of the webhook group to delete.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "webhooks__OAuth2": []
          }
        ],
        "summary": "Delete Webhook Group",
        "tags": [
          "Webhook Groups"
        ],
        "x-brex-product": "webhooks",
        "x-brex-source-pointer": "#/paths/~1v1~1webhooks~1groups~1{id}/delete"
      },
      "get": {
        "description": "Gets a webhook group.",
        "operationId": "webhooks:getWebhookGroup",
        "parameters": [
          {
            "description": "The ID of the webhook group to retrieve.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhooks__WebhookGroup"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "webhooks__OAuth2": []
          }
        ],
        "summary": "Get Webhook Group",
        "tags": [
          "Webhook Groups"
        ],
        "x-brex-product": "webhooks",
        "x-brex-source-pointer": "#/paths/~1v1~1webhooks~1groups~1{id}/get"
      }
    },
    "/v1/webhooks/groups/{id}/add_members": {
      "post": {
        "description": "Adds members to webhook groups.",
        "operationId": "webhooks:addWebhookGroupMembers",
        "parameters": [
          {
            "description": "The ID of the webhook group to add members to.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/webhooks__AddWebhookGroupMembersRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "webhooks__OAuth2": []
          }
        ],
        "summary": "Add Webhook Group Members",
        "tags": [
          "Webhook Groups"
        ],
        "x-brex-product": "webhooks",
        "x-brex-source-pointer": "#/paths/~1v1~1webhooks~1groups~1{id}~1add_members/post"
      }
    },
    "/v1/webhooks/groups/{id}/members": {
      "get": {
        "description": "Lists the members currently in the specified webhook group.",
        "operationId": "webhooks:listWebhookGroupMembers",
        "parameters": [
          {
            "description": "Cursor for pagination.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "Limit for pagination. If not provided, defaults to 100. Cannot be greater than 1000.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 100,
              "format": "int32",
              "maximum": 1000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "The ID of the webhook group to retrieve members for.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhooks__Page_WebhookGroupMember_"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "webhooks__OAuth2": []
          }
        ],
        "summary": "List Webhook Group Members",
        "tags": [
          "Webhook Groups"
        ],
        "x-brex-product": "webhooks",
        "x-brex-source-pointer": "#/paths/~1v1~1webhooks~1groups~1{id}~1members/get"
      }
    },
    "/v1/webhooks/groups/{id}/remove_members": {
      "post": {
        "description": "Removes members from webhook groups.",
        "operationId": "webhooks:removeWebhookGroupMembers",
        "parameters": [
          {
            "description": "The ID of the webhook group to remove members from.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/webhooks__RemoveWebhookGroupMembersRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "webhooks__OAuth2": []
          }
        ],
        "summary": "Remove Webhook Group Members",
        "tags": [
          "Webhook Groups"
        ],
        "x-brex-product": "webhooks",
        "x-brex-source-pointer": "#/paths/~1v1~1webhooks~1groups~1{id}~1remove_members/post"
      }
    },
    "/v1/webhooks/secrets": {
      "get": {
        "description": "\nThis endpoint returns a set of webhook signing secrets used to validate the webhook.\nUsually only one key will be returned in the response. After key rotation, this endpoint will return two keys:\nthe new key, and the key that will be revoked soon. There will also be two signatures in the 'Webhook-Signature' request header.\nYour application should use all keys available to validate the webhook request. If validation passes for any\nof the keys returned, the webhook payload is valid.\n",
        "operationId": "webhooks:listWebhookSecrets",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/webhooks__WebhookSecret"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "webhooks__OAuth2": []
          }
        ],
        "summary": "List Webhook Secrets",
        "tags": [
          "Webhook Subscriptions"
        ],
        "x-brex-product": "webhooks",
        "x-brex-source-pointer": "#/paths/~1v1~1webhooks~1secrets/get"
      }
    },
    "/v1/webhooks/{id}": {
      "delete": {
        "description": "Unregister a webhook if you want to stop receiving webhook events",
        "operationId": "webhooks:deleteWebhookSubscription",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "webhooks__OAuth2": []
          }
        ],
        "summary": "Unregister Webhook",
        "tags": [
          "Webhook Subscriptions"
        ],
        "x-brex-product": "webhooks",
        "x-brex-source-pointer": "#/paths/~1v1~1webhooks~1{id}/delete"
      },
      "get": {
        "description": "Get details of a webhook",
        "operationId": "webhooks:getWebhookSubscription",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhooks__WebhookSubscription"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "webhooks__OAuth2": []
          }
        ],
        "summary": "Get Webhook",
        "tags": [
          "Webhook Subscriptions"
        ],
        "x-brex-product": "webhooks",
        "x-brex-source-pointer": "#/paths/~1v1~1webhooks~1{id}/get"
      },
      "put": {
        "description": "Update a webhook.\nYou can update the endpoint url, event types that the endpoint receives, or temporarily deactivate the webhook.\n",
        "operationId": "webhooks:updateWebhookSubscription",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/webhooks__UpdateWebhookSubscriptionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhooks__WebhookSubscription"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "webhooks__OAuth2": []
          }
        ],
        "summary": "Update Webhook",
        "tags": [
          "Webhook Subscriptions"
        ],
        "x-brex-product": "webhooks",
        "x-brex-source-pointer": "#/paths/~1v1~1webhooks~1{id}/put"
      }
    },
    "/v2/accounts/card": {
      "get": {
        "description": "\nThis endpoint lists all accounts of card type.\n",
        "operationId": "transactions:listCardAccounts",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/transactions__CardAccount"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Returns a list of card accounts."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "transactions__OAuth2": [
              "accounts.card.readonly"
            ]
          }
        ],
        "summary": "\nList card accounts\n",
        "tags": [
          "Accounts"
        ],
        "x-brex-product": "transactions",
        "x-brex-source-pointer": "#/paths/~1v2~1accounts~1card/get"
      }
    },
    "/v2/accounts/card/primary/statements": {
      "get": {
        "description": "\nThis endpoint lists all finalized statements for the primary card account.\n",
        "operationId": "transactions:listPrimaryCardStatements",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/transactions__Page_Statement_"
                }
              }
            },
            "description": "Returns a list of primary card account statements."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "transactions__OAuth2": [
              "statements.card.readonly"
            ]
          }
        ],
        "summary": "\nList primary card account statements. \n",
        "tags": [
          "Accounts"
        ],
        "x-brex-product": "transactions",
        "x-brex-source-pointer": "#/paths/~1v2~1accounts~1card~1primary~1statements/get"
      }
    },
    "/v2/accounts/cash": {
      "get": {
        "description": "\nThis endpoint lists all the existing cash accounts with their status.\n",
        "operationId": "transactions:listAccounts",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/transactions__Page_CashAccount_"
                }
              }
            },
            "description": "Returns a list of cash accounts."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "transactions__OAuth2": [
              "accounts.cash.readonly"
            ]
          }
        ],
        "summary": "\nList cash accounts\n",
        "tags": [
          "Accounts"
        ],
        "x-brex-product": "transactions",
        "x-brex-source-pointer": "#/paths/~1v2~1accounts~1cash/get"
      }
    },
    "/v2/accounts/cash/primary": {
      "get": {
        "description": "\nThis endpoint returns the primary cash account with its status. There will always be only one primary account.\n",
        "operationId": "transactions:getPrimaryAccount",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/transactions__CashAccount"
                }
              }
            },
            "description": "Returns the primary cash account."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "transactions__OAuth2": [
              "accounts.cash.readonly"
            ]
          }
        ],
        "summary": "\nGet primary cash account\n",
        "tags": [
          "Accounts"
        ],
        "x-brex-product": "transactions",
        "x-brex-source-pointer": "#/paths/~1v2~1accounts~1cash~1primary/get"
      }
    },
    "/v2/accounts/cash/{id}": {
      "get": {
        "description": "\nThis endpoint returns the cash account associated with the provided ID with its status.\n",
        "operationId": "transactions:getAccount",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/transactions__CashAccount"
                }
              }
            },
            "description": "Returns the cash account."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "transactions__OAuth2": [
              "accounts.cash.readonly"
            ]
          }
        ],
        "summary": "\nGet cash account by ID\n",
        "tags": [
          "Accounts"
        ],
        "x-brex-product": "transactions",
        "x-brex-source-pointer": "#/paths/~1v2~1accounts~1cash~1{id}/get"
      }
    },
    "/v2/accounts/cash/{id}/statements": {
      "get": {
        "description": "\nThis endpoint lists all finalized statements for the cash account by ID.\n",
        "operationId": "transactions:listCashStatements",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/transactions__Page_Statement_"
                }
              }
            },
            "description": "Returns a list of cash account statements."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "transactions__OAuth2": [
              "statements.cash.readonly"
            ]
          }
        ],
        "summary": "\nList cash account statements.    \n",
        "tags": [
          "Accounts"
        ],
        "x-brex-product": "transactions",
        "x-brex-source-pointer": "#/paths/~1v2~1accounts~1cash~1{id}~1statements/get"
      }
    },
    "/v2/budgets": {
      "get": {
        "description": "\nRetrieves a list of Budgets\n",
        "operationId": "budgets:listSpendBudgets",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/budgets__Page_SpendBudget_"
                }
              }
            },
            "description": "\nA page with a list of Budgets\n"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {
            "budgets__OAuth2": [
              "budgets.readonly",
              "budgets"
            ]
          }
        ],
        "summary": "\nList Budgets\n",
        "tags": [
          "Budgets"
        ],
        "x-brex-product": "budgets",
        "x-brex-source-pointer": "#/paths/~1v2~1budgets/get"
      }
    },
    "/v2/budgets/{id}": {
      "get": {
        "description": "\nRetrieves a Budget by ID\n",
        "operationId": "budgets:getSpendBudgetById",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/budgets__SpendBudget"
                }
              }
            },
            "description": "\nThe Budget that was retrieved\n"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {
            "budgets__OAuth2": [
              "budgets.readonly",
              "budgets"
            ]
          }
        ],
        "summary": "\nGet Budget\n",
        "tags": [
          "Budgets"
        ],
        "x-brex-product": "budgets",
        "x-brex-source-pointer": "#/paths/~1v2~1budgets~1{id}/get"
      }
    },
    "/v2/budgets/{id}/archive": {
      "post": {
        "description": "\nArchives a Budget, making any Spend Limits beneath it unusable for future expenses and removing it from the UI\n",
        "operationId": "budgets:archiveSpendBudget",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "\nThe Budget that was archived\n"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {
            "budgets__OAuth2": [
              "budgets"
            ]
          }
        ],
        "summary": "\nArchive a Budget\n",
        "tags": [
          "Budgets"
        ],
        "x-brex-product": "budgets",
        "x-brex-source-pointer": "#/paths/~1v2~1budgets~1{id}~1archive/post"
      }
    },
    "/v2/cards": {
      "get": {
        "description": "\nLists all cards by a `user_id`.\nOnly cards with `limit_type = CARD` have `spend_controls`\n",
        "operationId": "team:listCardsByUserId",
        "parameters": [
          {
            "in": "query",
            "name": "user_id",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__Page_Card_"
                }
              }
            },
            "description": "listCardsByUserId 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "cards.readonly",
              "cards"
            ]
          }
        ],
        "summary": "\nList cards\n",
        "tags": [
          "Cards"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1cards/get"
      },
      "post": {
        "description": "\nCreates a new card.\nThe `spend_controls` field is required when `limit_type` = `CARD`.\nThe `mailing_address` field is required for physical cards and is the shipping address used to send the card; it is not the same as the billing and mailing address used for online purchases.\nThe first 2 lines of this address must be under 60 characters long. Each user can only have up to 10 active physical cards.\nFor Empower accounts, this endpoint requires budget management. If your account does not have access to budget management features, a 403 response status will be returned. \nIf this is the case and you want to gain access to this endpoint, please contact Brex support.\n",
        "operationId": "team:createCard",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/team__CreateCardRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__Card"
                }
              }
            },
            "description": "createCard 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "cards"
            ]
          }
        ],
        "summary": "\nCreate card\n",
        "tags": [
          "Cards"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1cards/post"
      }
    },
    "/v2/cards/{id}": {
      "get": {
        "description": "\nRetrieves a card by ID. Only cards with `limit_type = CARD` have `spend_controls`\n",
        "operationId": "team:getCardById",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__Card"
                }
              }
            },
            "description": "getCardById 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "cards",
              "cards.readonly"
            ]
          }
        ],
        "summary": "\nGet card\n",
        "tags": [
          "Cards"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1cards~1{id}/get"
      },
      "put": {
        "description": "\nUpdate an existing vendor card\n",
        "operationId": "team:updateCard",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/team__UpdateCardRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__Card"
                }
              }
            },
            "description": "updateCard 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "cards"
            ]
          }
        ],
        "summary": "\nUpdate card\n",
        "tags": [
          "Cards"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1cards~1{id}/put"
      }
    },
    "/v2/cards/{id}/lock": {
      "post": {
        "description": "\nLocks an existing, unlocked card. And the card owner will receive a notification about it.\n",
        "operationId": "team:lockCard",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/team__LockCardRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__Card"
                }
              }
            },
            "description": "lockCard 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "cards"
            ]
          }
        ],
        "summary": "\nLock card\n",
        "tags": [
          "Cards"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1cards~1{id}~1lock/post"
      }
    },
    "/v2/cards/{id}/pan": {
      "get": {
        "description": "\nRetrieves card number, CVV, and expiration date of a card by ID.\n",
        "operationId": "team:getCardNumber",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__CardNumberResponse"
                }
              }
            },
            "description": "getCardNumber 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "cards.pan"
            ]
          }
        ],
        "servers": [
          {
            "description": "Production",
            "url": "https://api.brex.com"
          },
          {
            "description": "Staging (Note: This is not a sandbox. It will not work with customer tokens.)",
            "url": "https://api-staging.brex.com"
          }
        ],
        "summary": "\nGet card number\n",
        "tags": [
          "Cards"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1cards~1{id}~1pan/get"
      }
    },
    "/v2/cards/{id}/secure_email": {
      "post": {
        "description": "\nCreates a secure email to send card number, CVV, and expiration date of a card by ID to the specified email.\n\nThis endpoint is currently gated. If you would like to request access, please reach out to\ndeveloper-support@brex.com\n",
        "operationId": "team:emailCardNumber",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/team__SecureEmailForCardDetailsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "emailCardNumber 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "cards.pan"
            ]
          }
        ],
        "summary": "\nCreate secure email to send card number \n",
        "tags": [
          "Cards"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1cards~1{id}~1secure_email/post"
      }
    },
    "/v2/cards/{id}/terminate": {
      "post": {
        "description": "\nTerminates an existing card. The card owner will receive a notification about it.\n",
        "operationId": "team:terminateCard",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/team__TerminateCardRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__Card"
                }
              }
            },
            "description": "terminateCard 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "cards"
            ]
          }
        ],
        "summary": "\nTerminate card\n",
        "tags": [
          "Cards"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1cards~1{id}~1terminate/post"
      }
    },
    "/v2/cards/{id}/unlock": {
      "post": {
        "description": "\nUnlocks an existing card.\n",
        "operationId": "team:unlockCard",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__Card"
                }
              }
            },
            "description": "unlockCard 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "cards"
            ]
          }
        ],
        "summary": "\nUnlock card\n",
        "tags": [
          "Cards"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1cards~1{id}~1unlock/post"
      }
    },
    "/v2/company": {
      "get": {
        "description": "\nThis endpoint returns the company associated with the OAuth2 access token.\n",
        "operationId": "team:getCompany",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__CompanyResponse"
                }
              }
            },
            "description": "getCompany 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "companies.readonly"
            ]
          }
        ],
        "summary": "\nGet company\n",
        "tags": [
          "Companies"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1company/get"
      }
    },
    "/v2/cost_centers": {
      "get": {
        "description": "\nThis endpoint lists all cost centers.\n",
        "operationId": "team:listCostCenters",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__Page_CostCenterResponse_"
                }
              }
            },
            "description": "listCostCenters 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "cost_centers.readonly"
            ]
          },
          {
            "team__OAuth2": [
              "cost_centers"
            ]
          }
        ],
        "summary": "\nList cost centers\n",
        "tags": [
          "Cost Centers"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1cost_centers/get"
      }
    },
    "/v2/cost_centers/{id}": {
      "get": {
        "description": "\nThis endpoint gets a cost center by ID.\n",
        "operationId": "team:getCostCenterById",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__CostCenterResponse"
                }
              }
            },
            "description": "getCostCenterById 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "cost_centers.readonly"
            ]
          },
          {
            "team__OAuth2": [
              "cost_centers"
            ]
          }
        ],
        "summary": "\nGet cost center\n",
        "tags": [
          "Cost Centers"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1cost_centers~1{id}/get"
      }
    },
    "/v2/departments": {
      "get": {
        "description": "\nThis endpoint lists all departments.\n",
        "operationId": "team:listDepartments",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__Page_DepartmentResponse_"
                }
              }
            },
            "description": "listDepartments 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "departments.readonly"
            ]
          },
          {
            "team__OAuth2": [
              "departments"
            ]
          }
        ],
        "summary": "\nList departments\n",
        "tags": [
          "Departments"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1departments/get"
      },
      "post": {
        "description": "\nThis endpoint creates a new department\n",
        "operationId": "team:createDepartment",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/team__CreateDepartmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__DepartmentResponse"
                }
              }
            },
            "description": "createDepartment 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "departments"
            ]
          }
        ],
        "summary": "\nCreate department\n",
        "tags": [
          "Departments"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1departments/post"
      }
    },
    "/v2/departments/{id}": {
      "delete": {
        "description": "\nThis endpoint deletes a department by ID. A department cannot be deleted while users are still assigned to it or while it is used as a filter on an active group.\n",
        "operationId": "team:deleteDepartment",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "deleteDepartment 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "departments"
            ]
          }
        ],
        "summary": "\nDelete department\n",
        "tags": [
          "Departments"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1departments~1{id}/delete"
      },
      "get": {
        "description": "\nThis endpoint gets a department by ID.\n",
        "operationId": "team:getDepartmentById",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__DepartmentResponse"
                }
              }
            },
            "description": "getDepartmentById 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "departments.readonly"
            ]
          },
          {
            "team__OAuth2": [
              "departments"
            ]
          }
        ],
        "summary": "\nGet department\n",
        "tags": [
          "Departments"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1departments~1{id}/get"
      },
      "put": {
        "description": "\nThis endpoint updates a department by ID. Only the fields present in the request body are changed.\n",
        "operationId": "team:updateDepartment",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/team__UpdateDepartmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__DepartmentResponse"
                }
              }
            },
            "description": "updateDepartment 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "departments"
            ]
          }
        ],
        "summary": "\nUpdate department\n",
        "tags": [
          "Departments"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1departments~1{id}/put"
      }
    },
    "/v2/legal_entities": {
      "get": {
        "description": "\nList legal entities for the account.\n",
        "operationId": "team:listLegalEntities",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__Page_LegalEntity_"
                }
              }
            },
            "description": "listLegalEntities 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "legal_entities",
              "legal_entities.readonly"
            ]
          }
        ],
        "summary": "\nList legal entities\n",
        "tags": [
          "Legal Entities"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1legal_entities/get"
      }
    },
    "/v2/legal_entities/{id}": {
      "get": {
        "description": "\nGet a legal entity by its ID.\n",
        "operationId": "team:getLegalEntity",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__LegalEntity"
                }
              }
            },
            "description": "getLegalEntity 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "legal_entities",
              "legal_entities.readonly"
            ]
          }
        ],
        "summary": "\nGet legal entity\n",
        "tags": [
          "Legal Entities"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1legal_entities~1{id}/get"
      }
    },
    "/v2/locations": {
      "get": {
        "description": "\nThis endpoint lists all locations.\n",
        "operationId": "team:listLocations",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__Page_LocationResponse_"
                }
              }
            },
            "description": "listLocations 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "locations.readonly"
            ]
          },
          {
            "team__OAuth2": [
              "locations"
            ]
          }
        ],
        "summary": "\nList locations\n",
        "tags": [
          "Locations"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1locations/get"
      },
      "post": {
        "description": "\nThis endpoint creates a new location.\n",
        "operationId": "team:createLocation",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/team__CreateLocationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__LocationResponse"
                }
              }
            },
            "description": "createLocation 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "locations"
            ]
          }
        ],
        "summary": "\nCreate location\n",
        "tags": [
          "Locations"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1locations/post"
      }
    },
    "/v2/locations/{id}": {
      "delete": {
        "description": "\nThis endpoint deletes a location by ID. A location cannot be deleted while users are still assigned to it or while it is used as a filter on an active group.\n",
        "operationId": "team:deleteLocation",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "deleteLocation 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "locations"
            ]
          }
        ],
        "summary": "\nDelete location\n",
        "tags": [
          "Locations"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1locations~1{id}/delete"
      },
      "get": {
        "description": "\nThis endpoint gets a location by ID.\n",
        "operationId": "team:getLocationById",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__LocationResponse"
                }
              }
            },
            "description": "getLocationById 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "locations.readonly"
            ]
          },
          {
            "team__OAuth2": [
              "locations"
            ]
          }
        ],
        "summary": "\nGet location\n",
        "tags": [
          "Locations"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1locations~1{id}/get"
      },
      "put": {
        "description": "\nThis endpoint updates a location by ID. Only the fields present in the request body are changed.\n",
        "operationId": "team:updateLocation",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/team__UpdateLocationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__LocationResponse"
                }
              }
            },
            "description": "updateLocation 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "locations"
            ]
          }
        ],
        "summary": "\nUpdate location\n",
        "tags": [
          "Locations"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1locations~1{id}/put"
      }
    },
    "/v2/roles": {
      "get": {
        "description": "\nThis endpoint lists the custom roles defined for the account. A page can contain fewer roles than `limit`, or none, while `next_cursor` is still set. Keep requesting the next page until `next_cursor` is null, even when `items` is empty.\n",
        "operationId": "team:listRoles",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__Page_RoleResponse_"
                }
              }
            },
            "description": "listRoles 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "roles.readonly"
            ]
          },
          {
            "team__OAuth2": [
              "roles"
            ]
          }
        ],
        "summary": "\nList roles\n",
        "tags": [
          "Roles"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1roles/get"
      }
    },
    "/v2/spend_limits": {
      "get": {
        "description": "\nRetrieves a list of Spend Limits\n",
        "operationId": "budgets:listSpendLimits",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "member_user_id[]",
            "schema": {
              "description": "\nFilter for spend limits these user ids are members of.\n",
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/budgets__Page_SpendLimit_"
                }
              }
            },
            "description": "\nA page with a list of Spend Limits\n"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {
            "budgets__OAuth2": [
              "budgets.readonly",
              "budgets"
            ]
          }
        ],
        "summary": "\nList Spend Limits\n",
        "tags": [
          "Spend Limits (v2)"
        ],
        "x-brex-product": "budgets",
        "x-brex-source-pointer": "#/paths/~1v2~1spend_limits/get"
      }
    },
    "/v2/spend_limits/{id}": {
      "get": {
        "description": "\nRetrieves a Spend Limit by ID\n",
        "operationId": "budgets:getSpendLimitById",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/budgets__SpendLimit"
                }
              }
            },
            "description": "\nThe Spend Limit that was retrieved\n"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {
            "budgets__OAuth2": [
              "budgets.readonly",
              "budgets"
            ]
          }
        ],
        "summary": "\nGet Spend Limit\n",
        "tags": [
          "Spend Limits (v2)"
        ],
        "x-brex-product": "budgets",
        "x-brex-source-pointer": "#/paths/~1v2~1spend_limits~1{id}/get"
      }
    },
    "/v2/spend_limits/{id}/archive": {
      "post": {
        "description": "\nArchives a Spend Limit, making it unusable for future expenses and removing it from the UI\n",
        "operationId": "budgets:archiveSpendLimit",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "\nThe Spend Limit that was archived\n"
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {
            "budgets__OAuth2": [
              "budgets"
            ]
          }
        ],
        "summary": "\nArchive a Spend Limit\n",
        "tags": [
          "Spend Limits (v2)"
        ],
        "x-brex-product": "budgets",
        "x-brex-source-pointer": "#/paths/~1v2~1spend_limits~1{id}~1archive/post"
      }
    },
    "/v2/titles": {
      "get": {
        "description": "\nThis endpoint lists all titles.\n",
        "operationId": "team:listTitles",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__Page_TitleResponse_"
                }
              }
            },
            "description": "listTitles 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "titles.readonly"
            ]
          },
          {
            "team__OAuth2": [
              "titles"
            ]
          }
        ],
        "summary": "\nList titles\n",
        "tags": [
          "Titles"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1titles/get"
      },
      "post": {
        "description": "\nThis endpoint creates a new title\n",
        "operationId": "team:createTitle",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/team__CreateTitleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__TitleResponse"
                }
              }
            },
            "description": "createTitle 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "titles"
            ]
          }
        ],
        "summary": "\nCreate title\n",
        "tags": [
          "Titles"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1titles/post"
      }
    },
    "/v2/titles/{id}": {
      "delete": {
        "description": "\nThis endpoint deletes a title by ID. A title cannot be deleted while users are still assigned to it or while it is used as a filter on an active group.\n",
        "operationId": "team:deleteTitle",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "deleteTitle 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "titles"
            ]
          }
        ],
        "summary": "\nDelete title\n",
        "tags": [
          "Titles"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1titles~1{id}/delete"
      },
      "get": {
        "description": "\nThis endpoint gets a title by ID.\n",
        "operationId": "team:getTitleById",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__TitleResponse"
                }
              }
            },
            "description": "getTitleById 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "titles.readonly"
            ]
          },
          {
            "team__OAuth2": [
              "titles"
            ]
          }
        ],
        "summary": "\nGet title\n",
        "tags": [
          "Titles"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1titles~1{id}/get"
      },
      "put": {
        "description": "\nThis endpoint updates a title by ID. Only the fields present in the request body are changed. The request must contain at least one field to update.\n",
        "operationId": "team:updateTitle",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/team__UpdateTitleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__TitleResponse"
                }
              }
            },
            "description": "updateTitle 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "titles"
            ]
          }
        ],
        "summary": "\nUpdate title\n",
        "tags": [
          "Titles"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1titles~1{id}/put"
      }
    },
    "/v2/transactions/card/primary": {
      "get": {
        "description": "\nThis endpoint lists all settled transactions for all card accounts.\nRegular users may only fetch their own \"PURCHASE\",\"REFUND\" and \"CHARGEBACK\" settled transactions.\n\nNote: there may be a small lag when fetching transactions with cursor and time ranges. It is important\nto have at least a 1+ day lookback when syncing transactions to ensure the delayed transactions are\nproperly handled.\n",
        "operationId": "transactions:listPrimaryCardTransactions",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "user_ids",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "\nShows only transactions with a `posted_at_date` on or after this date-time. This parameter is the date-time notation as defined by [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6)\n\nWhen polling for new transactions, we recommend using a lookback window that overlaps with your previous request rather than advancing `posted_at_start` to the exact time of your last poll. Set `posted_at_start` earlier than the end of your previous query window (we recommend overlapping by a few days) so that transactions are not missed if a prior request or response failed, or if a transaction was posted with a slight delay. De-duplicate the overlapping results by transaction `id`.\n",
            "example": "\n2022-12-12T23:59:59.999\n",
            "in": "query",
            "name": "posted_at_start",
            "schema": {
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "expand[]",
            "schema": {
              "description": "`expense_id` can be passed to `expand[]` query parameter to get expanded, e.g., `?expand[]=expense_id`.",
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/transactions__Page_CardTransaction_"
                }
              }
            },
            "description": "Returns a list of card transactions."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "transactions__OAuth2": [
              "transactions.card.readonly"
            ]
          }
        ],
        "summary": "\nList transactions for all card accounts.\n",
        "tags": [
          "Transactions"
        ],
        "x-brex-product": "transactions",
        "x-brex-source-pointer": "#/paths/~1v2~1transactions~1card~1primary/get"
      }
    },
    "/v2/transactions/cash/{id}": {
      "get": {
        "description": "\nThis endpoint lists all transactions for the cash account with the selected ID.\n",
        "operationId": "transactions:listCashTransactions",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          },
          {
            "description": "\nShows only transactions with a `posted_at_date` on or after this date-time. This parameter is the date-time notation as defined by [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6)\n\nWhen polling for new transactions, we recommend using a lookback window that overlaps with your previous request rather than advancing `posted_at_start` to the exact time of your last poll. Set `posted_at_start` earlier than the end of your previous query window (for example, overlapping by a few days) so that transactions are not missed if a prior request or response failed, or if a transaction was posted with a slight delay. De-duplicate the overlapping results by transaction `id`.\n",
            "example": "\n2022-12-12T23:59:59.999\n",
            "in": "query",
            "name": "posted_at_start",
            "schema": {
              "format": "date-time",
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/transactions__Page_CashTransaction_"
                }
              }
            },
            "description": "Returns a list of cash transactions."
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "transactions__OAuth2": [
              "transactions.cash.readonly"
            ]
          }
        ],
        "summary": "\nList transactions for the selected cash account.\n",
        "tags": [
          "Transactions"
        ],
        "x-brex-product": "transactions",
        "x-brex-source-pointer": "#/paths/~1v2~1transactions~1cash~1{id}/get"
      }
    },
    "/v2/users": {
      "get": {
        "description": "\nThis endpoint lists all users.\n\nResults can be narrowed with the filter query parameters below. Values within a single\nfilter are OR-ed, and separate filters are AND-ed together.\n\nFilters that accept multiple values take them either as a comma-separated list or as a repeated\nparameter: `?status[]=ACTIVE,INVITED` and `?status[]=ACTIVE&status[]=INVITED` are equivalent.\n\nThe legacy singular `email` and `remote_display_id` parameters perform an exact lookup that returns\nat most one user, and cannot be combined with the filters above.\n",
        "operationId": "team:listUsers",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "nullable": true,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "email",
            "schema": {
              "description": "Currently only support filtering by a single email or a single remote_display_id.",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "remote_display_id",
            "schema": {
              "description": "Currently only support filtering by a single email or a single remote_display_id.",
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "Fuzzy, case-insensitive match against the user's first name, last name and email.",
            "in": "query",
            "name": "name",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "description": "Filter by email address. Accepts several emails, e.g. `?email[]=a@example.com,b@example.com`.",
            "in": "query",
            "name": "email[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Filter by user status. Accepts several statuses, e.g. `?status[]=ACTIVE,INVITED`. By default, deleted and archived users are excluded.",
            "in": "query",
            "name": "status[]",
            "schema": {
              "items": {
                "enum": [
                  "INVITED",
                  "ACTIVE",
                  "DISABLED",
                  "PENDING_ACTIVATION",
                  "INACTIVE",
                  "ARCHIVED"
                ],
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Filter by the user_id of the manager. Accepts a list of managers.",
            "in": "query",
            "name": "manager_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Filter by department_id. Accepts a list of departments.",
            "in": "query",
            "name": "department_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Filter by location_id. Accepts a list of locations.",
            "in": "query",
            "name": "location_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Filter by title_id. Accepts a list of titles.",
            "in": "query",
            "name": "title_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Filter by cost_center_id. Accepts a list of cost centers.",
            "in": "query",
            "name": "cost_center_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Filter by legal_entity_id. Accepts a list of legal entities.",
            "in": "query",
            "name": "legal_entity_id[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          },
          {
            "description": "Load custom field values for the users.",
            "in": "query",
            "name": "load_custom_fields",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          },
          {
            "description": "Filter by custom field value, given as `key:option_id`. Accepts a list of custom fields. Values within a single key are OR-ed, and separate keys are AND-ed together.",
            "in": "query",
            "name": "custom_field[]",
            "schema": {
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__Page_UserResponse_"
                }
              }
            },
            "description": "listUsers 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "users.readonly"
            ]
          },
          {
            "team__OAuth2": [
              "users"
            ]
          }
        ],
        "summary": "\nList users\n",
        "tags": [
          "Users"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1users/get"
      }
    },
    "/v2/users/create": {
      "post": {
        "description": "\nThis endpoint creates a new user as an employee without inviting them, leaving the user `INACTIVE`.\nUse it to load your team into Brex ahead of time; invite them later with\n[Invite user](#tag/Users/operation/createUser), on the Dashboard, or by using auto-invite rules.\n\nThe user is assigned to `legal_entity_id` when provided, and to your account's default legal entity otherwise.\n",
        "operationId": "team:addUser",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/team__AddUserRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__UserResponse"
                }
              }
            },
            "description": "addUser 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "users"
            ]
          }
        ],
        "summary": "\nCreate user\n",
        "tags": [
          "Users"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1users~1create/post"
      }
    },
    "/v2/users/me": {
      "get": {
        "description": "\nThis endpoint returns the user associated with the OAuth2 access token.\n",
        "operationId": "team:getMe",
        "parameters": [
          {
            "description": "Load custom field values for the users.",
            "in": "query",
            "name": "load_custom_fields",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__UserResponse"
                }
              }
            },
            "description": "getMe 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "users.readonly"
            ]
          },
          {
            "team__OAuth2": [
              "users"
            ]
          }
        ],
        "summary": "\nGet current user\n",
        "tags": [
          "Users"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1users~1me/get"
      }
    },
    "/v2/users/{id}": {
      "get": {
        "description": "\nThis endpoint gets a user by ID.\n",
        "operationId": "team:getUserById",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Load custom field values for the users.",
            "in": "query",
            "name": "load_custom_fields",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/team__UserResponse"
                }
              }
            },
            "description": "getUserById 200 response"
          }
        },
        "security": [
          {
            "team__OAuth2": [
              "users.readonly"
            ]
          },
          {
            "team__OAuth2": [
              "users"
            ]
          }
        ],
        "summary": "\nGet user\n",
        "tags": [
          "Users"
        ],
        "x-brex-product": "team",
        "x-brex-source-pointer": "#/paths/~1v2~1users~1{id}/get"
      }
    },
    "/v3/accounting/integration": {
      "post": {
        "description": "Create a new accounting integration. The behavior depends on the existing active integration:\n\n- If no active integration exists: Creates and returns new integration\n- If active integration exists with same vendor and vendor_account_id: Returns the existing active integration\n- If active integration exists with same vendor but different vendor_account_id: Returns 409 error\n- If active integration exists with different vendor: Returns 409 error\n\nThis ensures only one active integration exists per account.\n\nSet `amortization: true` to also provision the amortization fields and enable the AMORTIZATION capability for the integration. Amortization is not available to every account yet; when it is unavailable, the request returns 403. The ERP opts into amortization by having these fields provisioned, so this works for any accounting integration created through this endpoint. Omitting the field (or passing false) leaves integration behavior unchanged.\n\nOptionally accepts `subsidiaries` to enable/disable VAT per subsidiary on creation, so VAT can be turned on in the same call instead of a follow-up PATCH.",
        "operationId": "accounting:createIntegration",
        "parameters": [
          {
            "description": "Caller-generated key (recommend a v4 UUID) that uniquely identifies this logical request. Reuse the same value when retrying so the request is de-duplicated.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/accounting__CreateIntegrationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "created_integration": {
                    "value": {
                      "created_at": "2025-08-15T10:00:00Z",
                      "integration_id": "int_abc123",
                      "status": "ACTIVE",
                      "vendor": "RILLET",
                      "vendor_account_id": "vendor_account_id"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__Integration"
                }
              }
            },
            "description": "Integration created successfully"
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "bad_request": {
                    "value": {
                      "error_code": "INVALID_REQUEST",
                      "message": "The request is malformed or contains invalid data."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Bad request"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "unauthorized": {
                    "value": {
                      "error_code": "UNAUTHORIZED",
                      "message": "Authentication credentials are missing or invalid."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "forbidden": {
                    "value": {
                      "error_code": "FORBIDDEN",
                      "message": "You do not have permission to perform this action."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "active_integration_exists": {
                    "summary": "Different vendor already exists",
                    "value": {
                      "details": {
                        "existing_integration_id": "int_xyz789",
                        "existing_vendor": "ERP_A",
                        "requested_vendor": "ERP_B"
                      },
                      "error_code": "ACTIVE_INTEGRATION_EXISTS",
                      "message": "Cannot create or recreate integration. An active integration with a different vendor already exists."
                    }
                  },
                  "vendor_account_id_mismatch": {
                    "summary": "Same vendor but different vendor account ID",
                    "value": {
                      "details": {
                        "existing_integration_id": "int_xyz789",
                        "existing_vendor_account_id": "vendor_account_abc",
                        "requested_vendor_account_id": "vendor_account_def"
                      },
                      "error_code": "VENDOR_ACCOUNT_ID_MISMATCH",
                      "message": "Cannot create integration. An active integration for this vendor already exists with a different vendor account ID."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Active integration exists with different vendor or different vendor account ID"
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error_code": "INTERNAL_ERROR",
                      "message": "An unexpected error occurred. Please try again later."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "accounting__oauth2": [
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "Create accounting integration",
        "tags": [
          "Accounting"
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration/post",
        "x-stability-level": "stable"
      }
    },
    "/v3/accounting/integration/{integration_id}": {
      "get": {
        "description": "Get a single accounting integration by ID, with its subsidiaries and per-subsidiary VAT status.",
        "operationId": "accounting:getIntegration",
        "parameters": [
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__Integration"
                }
              }
            },
            "description": "Integration found"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Integration not found"
          }
        },
        "security": [
          {
            "accounting__oauth2": [
              "accounting.integration.read",
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "Get accounting integration",
        "tags": [
          "Accounting"
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}/get",
        "x-stability-level": "stable"
      }
    },
    "/v3/accounting/integration/{integration_id}/amortization": {
      "get": {
        "description": "List the integration's amortization templates. Hidden templates are excluded unless include_disabled is set. Follow next_cursor until it is null to read every template.",
        "operationId": "accounting:listAmortizationTemplates",
        "parameters": [
          {
            "description": "Cursor to start from. Omit to fetch the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Include templates hidden from selection. Defaults to false (active templates only).",
            "in": "query",
            "name": "include_disabled",
            "required": false,
            "schema": {
              "example": false,
              "type": "boolean"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "maximum": 100,
              "minimum": 1,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AmortizationTemplatePaginatedResponse"
                }
              }
            },
            "description": "Amortization templates listed successfully"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Accounting integration not found, or amortization is not enabled for it"
          }
        },
        "security": [
          {
            "accounting__bearer": []
          },
          {
            "accounting__oauth2": [
              "accounting.integration.read",
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "List amortization templates",
        "tags": [
          "Accounting Amortization"
        ],
        "x-badges": [
          {
            "color": "orange",
            "name": "Alpha",
            "position": "before"
          }
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1amortization/get",
        "x-stability-level": "alpha"
      },
      "post": {
        "description": "Create an amortization template for a non-native integration. Amortization does not have to be enabled first: if the integration has no amortization fields yet, creating a template provisions them. The first template also makes amortization selectable on expenses. Native ERP integrations are not eligible because their amortization data is owned by the ERP sync.",
        "operationId": "accounting:createAmortizationTemplate",
        "parameters": [
          {
            "description": "Caller-generated key (recommend a v4 UUID) that uniquely identifies this logical request. Reuse the same value when retrying so the request is de-duplicated.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/accounting__CreateAmortizationTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AmortizationTemplate"
                }
              }
            },
            "description": "Amortization template created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Bad request (e.g. blank name), or amortization could not be enabled for the integration"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Accounting integration not found"
          }
        },
        "security": [
          {
            "accounting__bearer": []
          },
          {
            "accounting__oauth2": [
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "Create amortization template",
        "tags": [
          "Accounting Amortization"
        ],
        "x-badges": [
          {
            "color": "orange",
            "name": "Alpha",
            "position": "before"
          }
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1amortization/post",
        "x-stability-level": "alpha"
      }
    },
    "/v3/accounting/integration/{integration_id}/amortization/{brex_id}": {
      "delete": {
        "description": "Delete an amortization template. Expenses that already reference it keep the reference, so use is_disabled to hide a template instead of deleting it. Retrying a delete that already succeeded returns 204 again, so a lost response is safe to retry.",
        "operationId": "accounting:deleteAmortizationTemplate",
        "parameters": [
          {
            "in": "path",
            "name": "brex_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Amortization template deleted, or already was"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Amortization template not found"
          }
        },
        "security": [
          {
            "accounting__bearer": []
          },
          {
            "accounting__oauth2": [
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "Delete amortization template",
        "tags": [
          "Accounting Amortization"
        ],
        "x-badges": [
          {
            "color": "orange",
            "name": "Alpha",
            "position": "before"
          }
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1amortization~1{brex_id}/delete",
        "x-stability-level": "alpha"
      },
      "get": {
        "description": "Fetch a single amortization template. Returns 200 even when the template is hidden from selection.",
        "operationId": "accounting:getAmortizationTemplate",
        "parameters": [
          {
            "in": "path",
            "name": "brex_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AmortizationTemplate"
                }
              }
            },
            "description": "Amortization template retrieved successfully"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Amortization template not found"
          }
        },
        "security": [
          {
            "accounting__bearer": []
          },
          {
            "accounting__oauth2": [
              "accounting.integration.read",
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "Get amortization template",
        "tags": [
          "Accounting Amortization"
        ],
        "x-badges": [
          {
            "color": "orange",
            "name": "Alpha",
            "position": "before"
          }
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1amortization~1{brex_id}/get",
        "x-stability-level": "alpha"
      },
      "patch": {
        "description": "Change a template's name or visibility. Omitted fields are left unchanged. At least one field must be supplied. This endpoint does not use an `Idempotency-Key`: sending one has no effect, and since the update sets the supplied fields to the supplied values, replaying the same request converges on the same state.",
        "operationId": "accounting:updateAmortizationTemplate",
        "parameters": [
          {
            "in": "path",
            "name": "brex_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/accounting__UpdateAmortizationTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AmortizationTemplate"
                }
              }
            },
            "description": "Amortization template updated"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Bad request (e.g. no fields supplied, unknown value)"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Amortization template not found"
          }
        },
        "security": [
          {
            "accounting__bearer": []
          },
          {
            "accounting__oauth2": [
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "Update amortization template",
        "tags": [
          "Accounting Amortization"
        ],
        "x-badges": [
          {
            "color": "orange",
            "name": "Alpha",
            "position": "before"
          }
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1amortization~1{brex_id}/patch",
        "x-stability-level": "alpha"
      }
    },
    "/v3/accounting/integration/{integration_id}/disconnect": {
      "post": {
        "description": "Disconnect an active accounting integration.\n\n- If integration is ACTIVE: Disconnects and returns success\n- If integration ID doesn't exist: Returns 404 error\n- If integration is not currently active: Returns 409 error",
        "operationId": "accounting:disconnectIntegration",
        "parameters": [
          {
            "description": "Caller-generated key (recommend a v4 UUID) that uniquely identifies this logical request. Reuse the same value when retrying so the request is de-duplicated.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "disconnected_integration": {
                    "value": {
                      "created_at": "2025-08-15T10:00:00Z",
                      "integration_id": "int_abc123",
                      "status": "DISABLED",
                      "vendor": "RILLET",
                      "vendor_account_id": "vendor_account_id"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__Integration"
                }
              }
            },
            "description": "Integration disconnected successfully"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "unauthorized": {
                    "value": {
                      "error_code": "UNAUTHORIZED",
                      "message": "Authentication credentials are missing or invalid."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "forbidden": {
                    "value": {
                      "error_code": "FORBIDDEN",
                      "message": "You do not have permission to perform this action."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error_code": "NOT_FOUND",
                      "message": "Integration not found."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Integration not found"
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "already_disconnected": {
                    "value": {
                      "details": {
                        "current_status": "DISABLED",
                        "integration_id": "int_abc123"
                      },
                      "error_code": "INTEGRATION_NOT_ACTIVE",
                      "message": "Cannot disconnect integration. Integration is not active."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Integration is not active"
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error_code": "INTERNAL_ERROR",
                      "message": "An unexpected error occurred. Please try again later."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "accounting__oauth2": [
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "Disconnect accounting integration",
        "tags": [
          "Accounting"
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1disconnect/post",
        "x-stability-level": "stable"
      }
    },
    "/v3/accounting/integration/{integration_id}/reactivate": {
      "post": {
        "description": "Reactivate a disconnected accounting integration.\n\n- If integration is DISABLED: Reactivates and returns success\n- If integration ID doesn't exist: Returns 404 error\n- If an active integration already exists: Returns 409 error",
        "operationId": "accounting:reactivateIntegration",
        "parameters": [
          {
            "description": "Caller-generated key (recommend a v4 UUID) that uniquely identifies this logical request. Reuse the same value when retrying so the request is de-duplicated.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "reactivated_integration": {
                    "value": {
                      "created_at": "2025-08-15T10:00:00Z",
                      "integration_id": "int_abc123",
                      "status": "ACTIVE",
                      "vendor": "RILLET",
                      "vendor_account_id": "vendor_account_id"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__Integration"
                }
              }
            },
            "description": "Integration reactivated successfully"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "unauthorized": {
                    "value": {
                      "error_code": "UNAUTHORIZED",
                      "message": "Authentication credentials are missing or invalid."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "forbidden": {
                    "value": {
                      "error_code": "FORBIDDEN",
                      "message": "You do not have permission to perform this action."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error_code": "NOT_FOUND",
                      "message": "Integration not found."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Integration not found"
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "active_integration_exists": {
                    "value": {
                      "details": {
                        "existing_integration_id": "int_xyz789",
                        "existing_vendor": "ERP_A",
                        "requested_vendor": "ERP_B"
                      },
                      "error_code": "ACTIVE_INTEGRATION_EXISTS",
                      "message": "Cannot create or recreate integration. An active integration with a different vendor already exists."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Active integration already exists"
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error_code": "INTERNAL_ERROR",
                      "message": "An unexpected error occurred. Please try again later."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "accounting__oauth2": [
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "Reactivate accounting integration",
        "tags": [
          "Accounting"
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1reactivate/post",
        "x-stability-level": "stable"
      }
    },
    "/v3/accounting/integration/{integration_id}/tax-codes": {
      "get": {
        "description": "List tax codes for the active integration. Each code includes its per-subsidiary enablement.",
        "operationId": "accounting:listTaxCodes",
        "parameters": [
          {
            "description": "Cursor to start from. Omit to fetch the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "maximum": 100,
              "minimum": 1,
              "type": "number"
            }
          },
          {
            "description": "Filter by enablement status",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "ENABLED",
                "DISABLED"
              ],
              "type": "string"
            }
          },
          {
            "description": "Only return codes that have a setting for this subsidiary",
            "in": "query",
            "name": "subsidiary_id",
            "required": false,
            "schema": {
              "example": "sub_uk_ltd",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__TaxCodePaginatedResponse"
                }
              }
            },
            "description": "Tax codes listed successfully"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          }
        },
        "security": [
          {
            "accounting__bearer": []
          },
          {
            "accounting__oauth2": [
              "accounting.integration.read",
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "List tax codes",
        "tags": [
          "Accounting VAT"
        ],
        "x-badges": [
          {
            "color": "orange",
            "name": "Alpha",
            "position": "before"
          }
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1tax-codes/get",
        "x-stability-level": "alpha"
      },
      "post": {
        "description": "Create a tax code for a non-native integration and enable it for the requested subsidiaries. Other subsidiaries default to DISABLED. Native ERP integrations are not eligible because their VAT configuration is owned by the ERP sync.",
        "operationId": "accounting:createTaxCode",
        "parameters": [
          {
            "description": "Caller-generated key (recommend a v4 UUID) that uniquely identifies this logical request. Reuse the same value when retrying so the request is de-duplicated.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/accounting__CreateTaxCodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__TaxCode"
                }
              }
            },
            "description": "Tax code created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Bad request (e.g. reserved name, missing rate)"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          }
        },
        "security": [
          {
            "accounting__bearer": []
          },
          {
            "accounting__oauth2": [
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "Create tax code",
        "tags": [
          "Accounting VAT"
        ],
        "x-badges": [
          {
            "color": "orange",
            "name": "Alpha",
            "position": "before"
          }
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1tax-codes/post",
        "x-stability-level": "alpha"
      }
    },
    "/v3/accounting/integration/{integration_id}/tax-codes/{brex_id}": {
      "delete": {
        "description": "Delete a tax code entirely (across all subsidiaries). Fails if the code belongs to a tax group.",
        "operationId": "accounting:deleteTaxCode",
        "parameters": [
          {
            "in": "path",
            "name": "brex_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Tax code deleted"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Tax code belongs to a tax group"
          }
        },
        "security": [
          {
            "accounting__bearer": []
          },
          {
            "accounting__oauth2": [
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "Delete tax code",
        "tags": [
          "Accounting VAT"
        ],
        "x-badges": [
          {
            "color": "orange",
            "name": "Alpha",
            "position": "before"
          }
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1tax-codes~1{brex_id}/delete",
        "x-stability-level": "alpha"
      },
      "get": {
        "description": "Get a single tax code by Brex ID, with its per-subsidiary enablement. Returns 200 even if the code is disabled on every subsidiary.",
        "operationId": "accounting:getTaxCode",
        "parameters": [
          {
            "in": "path",
            "name": "brex_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__TaxCode"
                }
              }
            },
            "description": "Tax code found"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Tax code not found"
          }
        },
        "security": [
          {
            "accounting__bearer": []
          },
          {
            "accounting__oauth2": [
              "accounting.integration.read",
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "Get tax code",
        "tags": [
          "Accounting VAT"
        ],
        "x-badges": [
          {
            "color": "orange",
            "name": "Alpha",
            "position": "before"
          }
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1tax-codes~1{brex_id}/get",
        "x-stability-level": "alpha"
      },
      "patch": {
        "description": "Apply per-subsidiary status changes (partial-apply; unlisted subsidiaries unchanged). Name and rate are immutable.",
        "operationId": "accounting:updateTaxCode",
        "parameters": [
          {
            "in": "path",
            "name": "brex_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Caller-generated key (recommend a v4 UUID) that uniquely identifies this logical request. Reuse the same value when retrying so the request is de-duplicated.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/accounting__UpdateTaxCodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__TaxCode"
                }
              }
            },
            "description": "Tax code updated"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Tax code not found"
          }
        },
        "security": [
          {
            "accounting__bearer": []
          },
          {
            "accounting__oauth2": [
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "Update tax code",
        "tags": [
          "Accounting VAT"
        ],
        "x-badges": [
          {
            "color": "orange",
            "name": "Alpha",
            "position": "before"
          }
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1tax-codes~1{brex_id}/patch",
        "x-stability-level": "alpha"
      }
    },
    "/v3/accounting/integration/{integration_id}/tax-groups": {
      "get": {
        "description": "List tax groups for the active integration. Each group includes its member tax codes and per-subsidiary enablement.",
        "operationId": "accounting:listTaxGroups",
        "parameters": [
          {
            "description": "Cursor to start from. Omit to fetch the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "maximum": 100,
              "minimum": 1,
              "type": "number"
            }
          },
          {
            "description": "Filter by enablement status",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "ENABLED",
                "DISABLED"
              ],
              "type": "string"
            }
          },
          {
            "description": "Only return groups that have a setting for this subsidiary",
            "in": "query",
            "name": "subsidiary_id",
            "required": false,
            "schema": {
              "example": "sub_ca_inc",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__TaxGroupPaginatedResponse"
                }
              }
            },
            "description": "Tax groups listed successfully"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          }
        },
        "security": [
          {
            "accounting__bearer": []
          },
          {
            "accounting__oauth2": [
              "accounting.integration.read",
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "List tax groups",
        "tags": [
          "Accounting VAT"
        ],
        "x-badges": [
          {
            "color": "orange",
            "name": "Alpha",
            "position": "before"
          }
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1tax-groups/get",
        "x-stability-level": "alpha"
      },
      "post": {
        "description": "Create a tax group for a non-native integration from existing tax codes and enable it for the requested subsidiaries. Other subsidiaries default to DISABLED. Native ERP integrations are not eligible because their VAT configuration is owned by the ERP sync.",
        "operationId": "accounting:createTaxGroup",
        "parameters": [
          {
            "description": "Caller-generated key (recommend a v4 UUID) that uniquely identifies this logical request. Reuse the same value when retrying so the request is de-duplicated.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/accounting__CreateTaxGroupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__TaxGroup"
                }
              }
            },
            "description": "Tax group created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Bad request (e.g. reserved name, unknown tax code)"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          }
        },
        "security": [
          {
            "accounting__bearer": []
          },
          {
            "accounting__oauth2": [
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "Create tax group",
        "tags": [
          "Accounting VAT"
        ],
        "x-badges": [
          {
            "color": "orange",
            "name": "Alpha",
            "position": "before"
          }
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1tax-groups/post",
        "x-stability-level": "alpha"
      }
    },
    "/v3/accounting/integration/{integration_id}/tax-groups/{brex_id}": {
      "delete": {
        "description": "Delete a tax group entirely (across all subsidiaries). Member tax codes are unaffected.",
        "operationId": "accounting:deleteTaxGroup",
        "parameters": [
          {
            "in": "path",
            "name": "brex_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Tax group deleted"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Tax group not found"
          }
        },
        "security": [
          {
            "accounting__bearer": []
          },
          {
            "accounting__oauth2": [
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "Delete tax group",
        "tags": [
          "Accounting VAT"
        ],
        "x-badges": [
          {
            "color": "orange",
            "name": "Alpha",
            "position": "before"
          }
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1tax-groups~1{brex_id}/delete",
        "x-stability-level": "alpha"
      },
      "get": {
        "description": "Get a single tax group by Brex ID, with its member tax codes and per-subsidiary enablement. Returns 200 even if the group is disabled on every subsidiary.",
        "operationId": "accounting:getTaxGroup",
        "parameters": [
          {
            "in": "path",
            "name": "brex_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__TaxGroup"
                }
              }
            },
            "description": "Tax group found"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Tax group not found"
          }
        },
        "security": [
          {
            "accounting__bearer": []
          },
          {
            "accounting__oauth2": [
              "accounting.integration.read",
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "Get tax group",
        "tags": [
          "Accounting VAT"
        ],
        "x-badges": [
          {
            "color": "orange",
            "name": "Alpha",
            "position": "before"
          }
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1tax-groups~1{brex_id}/get",
        "x-stability-level": "alpha"
      },
      "patch": {
        "description": "Apply per-subsidiary status changes (partial-apply; unlisted subsidiaries unchanged). Name and membership are immutable.",
        "operationId": "accounting:updateTaxGroup",
        "parameters": [
          {
            "in": "path",
            "name": "brex_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Caller-generated key (recommend a v4 UUID) that uniquely identifies this logical request. Reuse the same value when retrying so the request is de-duplicated.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "integration_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/accounting__UpdateTaxGroupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__TaxGroup"
                }
              }
            },
            "description": "Tax group updated"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Tax group not found"
          }
        },
        "security": [
          {
            "accounting__bearer": []
          },
          {
            "accounting__oauth2": [
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "Update tax group",
        "tags": [
          "Accounting VAT"
        ],
        "x-badges": [
          {
            "color": "orange",
            "name": "Alpha",
            "position": "before"
          }
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integration~1{integration_id}~1tax-groups~1{brex_id}/patch",
        "x-stability-level": "alpha"
      }
    },
    "/v3/accounting/integrations": {
      "get": {
        "description": "List the account's accounting integrations (active and disabled), each with its subsidiaries and per-subsidiary VAT status.",
        "operationId": "accounting:listIntegrations",
        "parameters": [
          {
            "description": "Cursor to start from. Omit to fetch the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "maximum": 100,
              "minimum": 1,
              "type": "number"
            }
          },
          {
            "description": "Filter by integration status",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "ACTIVE",
                "DISABLED"
              ],
              "type": "string"
            }
          },
          {
            "description": "Filter by accounting vendor (ERP). Same GraphQL vendor enum as MCP list_integrations.",
            "in": "query",
            "name": "vendor",
            "required": false,
            "schema": {
              "enum": [
                "CAMPFIRE",
                "CSV",
                "DUALENTRY",
                "HANOVER_PARK",
                "INKLE",
                "INTACCT",
                "MS365_BC",
                "MS365_FNO",
                "NETSUITE",
                "ORACLE_FUSION",
                "PUZZLE",
                "QBD",
                "QBO",
                "RILLET",
                "SAGE_INTACCT",
                "WORKDAY",
                "XERO"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__IntegrationPaginatedResponse"
                }
              }
            },
            "description": "Integrations listed successfully"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          }
        },
        "security": [
          {
            "accounting__oauth2": [
              "accounting.integration.read",
              "accounting.integration.write"
            ]
          }
        ],
        "summary": "List accounting integrations",
        "tags": [
          "Accounting"
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1integrations/get",
        "x-stability-level": "stable"
      }
    },
    "/v3/accounting/records": {
      "get": {
        "description": "Query accounting records by IDs or with filters for polling. When building integrations with Brex accounting workflow, use filter-based polling as a fallback mechanism. Suggested cadence is 1 hour.\n\n**For card and reimbursement records:**\nUse `review_status` to filter by accounting workflow stage (e.g., READY_FOR_EXPORT, EXPORTED).\n\n**For bill records:**\nUse `source_type=BILL` with `updated_at[gt]` to poll for updated bill records.\n\n**Filter Constraints:**\n- `review_status` is only supported with CARD and REIMBURSEMENT source types\n\n**Filtering by ERP Posting Date:**\nUse `erp_posting_date[from]` and `erp_posting_date[to]` with ISO 8601 UTC datetimes to retrieve records for a specific accounting period based on their ERP impact date. The range is inclusive. REST clients should convert local accounting period boundaries to UTC before calling this endpoint.",
        "operationId": "accounting:queryAccountingRecords",
        "parameters": [
          {
            "description": "Cursor to start from. Omit to fetch the first page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by erp_posting_date (ERP impact date) inclusive range in UTC. Accepts from and to as ISO 8601 UTC datetimes. Example: `erp_posting_date[from]=2025-01-01T00:00:00Z`",
            "in": "query",
            "name": "erp_posting_date",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/accounting__ErpPostingDateFilter"
            }
          },
          {
            "description": "Filter by accounting record IDs. ID size is limited to 500. Example: `ids=accr_xxx&ids=accr_yyy`",
            "in": "query",
            "name": "ids",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "maximum": 100,
              "minimum": 1,
              "type": "number"
            }
          },
          {
            "description": "Filter by review status. Supported values: `PREPARE`, `REVIEW`, `EXPORTED`, `READY_FOR_EXPORT`.",
            "in": "query",
            "name": "review_status",
            "required": false,
            "schema": {
              "enum": [
                "PREPARE",
                "REVIEW",
                "EXPORTED",
                "READY_FOR_EXPORT"
              ],
              "type": "string"
            }
          },
          {
            "description": "Whether to return single entry line items",
            "in": "query",
            "name": "single_entry",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Filter by accounting record source type. This is a high-level filter that maps to specific accounting record types. Example: `source_type=BILL`",
            "in": "query",
            "name": "source_type",
            "required": false,
            "schema": {
              "enum": [
                "CARD",
                "REIMBURSEMENT",
                "BILL"
              ],
              "type": "string"
            }
          },
          {
            "description": "Filter by updated_at timestamp range in UTC. Accepts gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal). Example: `updated_at[gte]=2025-01-01`",
            "in": "query",
            "name": "updated_at",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/accounting__UpdatedAtFilter"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "records_response": {
                    "value": {
                      "has_next_page": false,
                      "items": [
                        {
                          "amount": {
                            "amount": 100.5,
                            "currency": "USD"
                          },
                          "due_at": null,
                          "erp_posting_date": "2025-04-24T16:13:49.959513Z",
                          "id": "accr_abc123",
                          "invoice_number": null,
                          "line_items": [
                            {
                              "accounting_field_values": [
                                {
                                  "brex_field_id": "ef_123",
                                  "brex_field_value_id": "efo_123",
                                  "field_name": "GL Account",
                                  "field_value_name": "Office supplies",
                                  "remote_field_id": "1",
                                  "remote_field_value_id": "123"
                                }
                              ],
                              "amount": {
                                "amount": 100.5,
                                "currency": "USD"
                              },
                              "id": "arli_abc123",
                              "memo": "Office supplies",
                              "original_amount": {
                                "amount": 100.5,
                                "currency": "USD"
                              },
                              "type": "DEBIT"
                            }
                          ],
                          "memo": "Business lunch with client",
                          "posted_at": "2025-04-24T16:13:49.959513Z",
                          "receipts": [
                            {
                              "id": "receipt_123"
                            }
                          ],
                          "review_status": "READY_FOR_EXPORT",
                          "source_id": "exp_xyz789",
                          "source_type": "CARD",
                          "status": "SETTLED",
                          "type": "CARD_EXPENSE_POST",
                          "updated_at": "2025-04-24T16:13:49.959513Z",
                          "version": 1
                        }
                      ],
                      "next_cursor": null,
                      "total_count": 1
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingRecordPaginatedResponse"
                }
              }
            },
            "description": "Query accounting records response"
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "bad_request": {
                    "value": {
                      "error_code": "INVALID_REQUEST",
                      "message": "The request is malformed or contains invalid data."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Bad request"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "unauthorized": {
                    "value": {
                      "error_code": "UNAUTHORIZED",
                      "message": "Authentication credentials are missing or invalid."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "forbidden": {
                    "value": {
                      "error_code": "FORBIDDEN",
                      "message": "You do not have permission to perform this action."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error_code": "INTERNAL_ERROR",
                      "message": "An unexpected error occurred. Please try again later."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "accounting__oauth2": [
              "accounting.record.read",
              "accounting.record.write"
            ]
          }
        ],
        "summary": "Query accounting records",
        "tags": [
          "Accounting"
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1records/get",
        "x-stability-level": "stable"
      },
      "post": {
        "description": "Applies the same field changes to up to 50 non-itemized card or reimbursement accounting records. Omitted fields are preserved. Field changes are applied to the source expense and then materialized to its accounting records. Results report each requested record; successful updates remain when other records fail.",
        "operationId": "accounting:AccountingController_updateAccountingRecords",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/accounting__UpdateAccountingRecordsBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__UpdateAccountingRecordsResponse_Output"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ApiError_BAD_REQUEST_Output"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ApiError_UNAUTHORIZED_Output"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ApiError_FORBIDDEN_Output"
                }
              }
            },
            "description": "Forbidden"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ApiError_SERVICE_UNAVAILABLE_Output"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "accounting__oauth2": [
              "accounting.record.write"
            ]
          }
        ],
        "summary": "Update accounting records",
        "tags": [
          "Accounting"
        ],
        "x-badges": [
          {
            "color": "orange",
            "name": "Alpha",
            "position": "before"
          }
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1records/post",
        "x-stability-level": "alpha"
      }
    },
    "/v3/accounting/records/export-results": {
      "post": {
        "description": "Report export success or failure for accounting records.",
        "operationId": "accounting:reportAccountingExportResults",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/accounting__ReportExportResultsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "export_results_processed": {
                    "value": {
                      "updated_accounting_record_ids": [
                        "accr_abc123",
                        "accr_def456"
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__ExportResultsResponse"
                }
              }
            },
            "description": "Export results processed successfully"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The bearer token is missing or rejected."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accounting__ErrorResponse"
                }
              }
            },
            "description": "The token does not have a required scope."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found_accounting_record_ids": {
                    "summary": "Given accounting record id is not found",
                    "value": {
                      "details": {
                        "not_found_export_entry_source_ids": [
                          "accr_ghi789",
                          "accr_jkl012"
                        ]
                      },
                      "error_code": "NOT_FOUND",
                      "message": "Accounting record source IDs not found: accr_ghi789, accr_jkl012"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Not found - Given accounting record id is not found"
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "duplicate_record_ids": {
                    "summary": "Duplicate accounting record ids detected",
                    "value": {
                      "details": {
                        "duplicate_accounting_record_ids": [
                          "accr_abc123",
                          "accr_def456"
                        ]
                      },
                      "error_code": "DUPLICATE_ACCOUNTING_RECORD_IDS",
                      "message": "Duplicate accounting record ids found across success and failure results."
                    }
                  },
                  "invalid_review_status": {
                    "summary": "Accounting record already exported or failed",
                    "value": {
                      "details": {
                        "not_ready_for_export_accounting_record_ids": [
                          "accr_ghi789",
                          "accr_jkl012"
                        ]
                      },
                      "error_code": "ACCOUNTING_RECORD_NOT_READY_FOR_EXPORT",
                      "message": "Only accounting records with review status READY_FOR_EXPORT can be updated via this endpoint."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Validation failed (duplicate accounting record ids or records not READY_FOR_EXPORT)"
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error_code": "INTERNAL_ERROR",
                      "message": "An unexpected error occurred. Please try again later."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "accounting__oauth2": [
              "accounting.record.write"
            ]
          }
        ],
        "summary": "Report accounting export results",
        "tags": [
          "Accounting"
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1records~1export-results/post",
        "x-stability-level": "stable"
      }
    },
    "/v3/accounting/records/{record_id}": {
      "get": {
        "description": "Retrieve a single accounting record by its unique identifier",
        "operationId": "accounting:getAccountingRecord",
        "parameters": [
          {
            "in": "path",
            "name": "record_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to return single entry line items",
            "in": "query",
            "name": "single_entry",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "accounting_record": {
                    "value": {
                      "amount": {
                        "amount": 100.5,
                        "currency": "USD"
                      },
                      "due_at": null,
                      "erp_posting_date": "2025-04-24T16:13:49.959513Z",
                      "id": "accr_abc123",
                      "invoice_number": null,
                      "line_items": [
                        {
                          "accounting_field_values": [
                            {
                              "brex_field_id": "ef_123",
                              "brex_field_value_id": "efo_123",
                              "field_name": "GL Account",
                              "field_value_name": "Office supplies",
                              "remote_field_id": "1",
                              "remote_field_value_id": "123"
                            }
                          ],
                          "amount": {
                            "amount": 100.5,
                            "currency": "USD"
                          },
                          "id": "arli_abc123",
                          "memo": "Office supplies",
                          "original_amount": {
                            "amount": 100.5,
                            "currency": "USD"
                          },
                          "type": "DEBIT"
                        }
                      ],
                      "memo": "Business lunch with client",
                      "original_amount": {
                        "amount": 100.5,
                        "currency": "USD"
                      },
                      "posted_at": "2025-04-24T16:13:49.959513Z",
                      "receipts": [
                        {
                          "id": "receipt_123"
                        }
                      ],
                      "review_status": "READY_FOR_EXPORT",
                      "source_id": "exp_xyz789",
                      "source_type": "CARD",
                      "status": "SETTLED",
                      "type": "CARD_EXPENSE_POST",
                      "updated_at": "2025-04-24T16:13:49.959513Z",
                      "version": 1
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingRecord"
                }
              }
            },
            "description": "Accounting record retrieved successfully"
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "bad_request": {
                    "value": {
                      "error_code": "INVALID_REQUEST",
                      "message": "The request is malformed or contains invalid data."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Bad request"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "unauthorized": {
                    "value": {
                      "error_code": "UNAUTHORIZED",
                      "message": "Authentication credentials are missing or invalid."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "forbidden": {
                    "value": {
                      "error_code": "FORBIDDEN",
                      "message": "You do not have permission to perform this action."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error_code": "NOT_FOUND",
                      "message": "The requested accounting record was not found."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Record not found"
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error_code": "INTERNAL_ERROR",
                      "message": "An unexpected error occurred. Please try again later."
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/accounting__AccountingErrorResponse"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "accounting__oauth2": [
              "accounting.record.read",
              "accounting.record.write"
            ]
          }
        ],
        "summary": "Get accounting record by ID",
        "tags": [
          "Accounting"
        ],
        "x-brex-product": "accounting",
        "x-brex-source-pointer": "#/paths/~1v3~1accounting~1records~1{record_id}/get",
        "x-stability-level": "stable"
      }
    }
  }
}
