{
  "components": {
    "schemas": {
      "ReviewedInput__assigntransactiontobudget__ApiV1AssignTransactionRequest": {
        "additionalProperties": false,
        "properties": {
          "allowOverspend": {
            "description": " Whether to allow this assignment to exceed the budget. Defaults to false.",
            "nullable": true,
            "type": "boolean"
          },
          "transactionId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__assigntransactiontobudget__TransactionMetadataId"
              }
            ]
          }
        },
        "required": [
          "transactionId"
        ],
        "type": "object"
      },
      "ReviewedInput__assigntransactiontobudget__TransactionMetadataId": {
        "description": "ID for this transaction",
        "format": "uuid",
        "type": "string"
      },
      "ReviewedInput__createbudget__ApiV1BudgetFrequency": {
        "enum": [
          "oneTime",
          "daily",
          "weekly",
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "ReviewedInput__createbudget__ApiV1CreateBudgetRequest": {
        "additionalProperties": false,
        "properties": {
          "amountPerUserPerPeriod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createbudget__NonNegativeDollar"
              }
            ],
            "nullable": true
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "endDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createbudget__Day"
              }
            ],
            "nullable": true
          },
          "frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createbudget__ApiV1BudgetFrequency"
              }
            ]
          },
          "name": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "startDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createbudget__Day"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "frequency"
        ],
        "type": "object"
      },
      "ReviewedInput__createbudget__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "ReviewedInput__createbudget__NonNegativeDollar": {
        "description": "A non-negative dollar amount",
        "format": "double",
        "minimum": 0,
        "type": "number"
      },
      "ReviewedInput__createcard__CardConfiguration": {
        "additionalProperties": false,
        "description": " The configuration of a card. Used both as the read-side response\n alongside @cardConfiguration@ and as an alternative input at issuance\n time.",
        "properties": {
          "singleUse": {
            "description": " Whether this card auto-cancels itself on the first approved non-zero\n authorization. Must be 'False' for physical cards.",
            "type": "boolean"
          }
        },
        "required": [
          "singleUse"
        ],
        "type": "object"
      },
      "ReviewedInput__createcard__CardKind": {
        "enum": [
          "debit",
          "credit"
        ],
        "type": "string"
      },
      "ReviewedInput__createcard__CreateCardRequest": {
        "additionalProperties": false,
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createcard__TransactionPartyId"
              },
              {
                "description": " The account the new card will draw funds from. Required when @kind@ is\n @debit@; list available account IDs via @GET https:\\/\\/api.mercury.com\\/api\\/v1\\/accounts@\n (for debit card creation, the accountId must be associated with a checking account).\n Optional when @kind@ is @credit@; omit to use your organization's Mercury\n credit account, or pass the credit accountId from @GET https:\\/\\/api.mercury.com\\/api\\/v1\\/credit@."
              }
            ],
            "nullable": true
          },
          "cardConfiguration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createcard__CardConfiguration"
              },
              {
                "description": " Optional card configuration (single-use, agent, etc.)"
              }
            ],
            "nullable": true
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createcard__CardKind"
              },
              {
                "description": " Whether to issue a debit or credit card."
              }
            ]
          },
          "nickname": {
            "description": " Optional user-assigned label for the card.",
            "nullable": true,
            "type": "string"
          },
          "spendLimit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createcard__CreateSpendLimit"
              },
              {
                "description": " Spending controls to apply at issuance."
              }
            ],
            "nullable": true
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createcard__CreateCardType"
              },
              {
                "description": " The type of card to issue."
              }
            ]
          },
          "userId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createcard__UserId"
              },
              {
                "description": " The user to assign as the cardholder."
              }
            ]
          }
        },
        "required": [
          "userId",
          "type",
          "kind"
        ],
        "type": "object"
      },
      "ReviewedInput__createcard__CreateCardType": {
        "enum": [
          "virtual"
        ],
        "type": "string"
      },
      "ReviewedInput__createcard__CreateSpendLimit": {
        "additionalProperties": false,
        "properties": {
          "amountCents": {
            "description": " Maximum total spend allowed per interval, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createcard__SpendLimitInterval"
              },
              {
                "description": " Rolling window the limit applies to."
              }
            ]
          }
        },
        "required": [
          "amountCents",
          "interval"
        ],
        "type": "object"
      },
      "ReviewedInput__createcard__SpendLimitInterval": {
        "enum": [
          "daily",
          "weekly",
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "ReviewedInput__createcard__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "ReviewedInput__createcard__UserId": {
        "description": "ID for the user",
        "format": "uuid",
        "type": "string"
      },
      "ReviewedInput__createcategory__CategoryName": {
        "type": "string"
      },
      "ReviewedInput__createcategory__CreateCategoryApiRequest": {
        "additionalProperties": false,
        "description": " Request body for creating a new expense category",
        "properties": {
          "name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createcategory__CategoryName"
              },
              {
                "description": " Name of the category"
              }
            ]
          },
          "visibleForCardSpend": {
            "description": " Whether this category is applicable to card transactions",
            "type": "boolean"
          },
          "visibleForOther": {
            "description": " Whether this category is applicable to all other transaction kinds",
            "type": "boolean"
          },
          "visibleForReimbursements": {
            "description": " Whether this category is applicable to expense reimbursement transactions",
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "visibleForReimbursements",
          "visibleForCardSpend",
          "visibleForOther"
        ],
        "type": "object"
      },
      "ReviewedInput__createcustomer__ApiV1ArCustomerAddressInput": {
        "additionalProperties": false,
        "description": " Address input for creating or updating customers",
        "properties": {
          "address1": {
            "description": " Primary street address line.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "address2": {
            "description": " Secondary street address line (optional).",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "city": {
            "description": " City name.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createcustomer__ISO3166Alpha2"
              },
              {
                "description": " Two-letter country code (ISO 3166-1 alpha-2)."
              }
            ]
          },
          "name": {
            "description": " The mailing name of the address.",
            "type": "string"
          },
          "postalCode": {
            "description": " Postal or ZIP code.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createcustomer__Region"
              },
              {
                "description": " Either a two-letter US state code i.e. \"CA\" for California or a free-form identification of a particular region worldwide."
              }
            ]
          }
        },
        "required": [
          "name",
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "ReviewedInput__createcustomer__ApiV1ArCustomerCreateRequest": {
        "additionalProperties": false,
        "description": " Request data to create a customer using the public api",
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createcustomer__ApiV1ArCustomerAddressInput"
              },
              {
                "description": " The address for the customer."
              }
            ],
            "nullable": true
          },
          "email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createcustomer__Email"
              },
              {
                "description": " The email address for the customer."
              }
            ]
          },
          "name": {
            "description": " The name of the customer.",
            "maxLength": 5000,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "name",
          "email"
        ],
        "type": "object"
      },
      "ReviewedInput__createcustomer__Email": {
        "type": "string"
      },
      "ReviewedInput__createcustomer__ISO3166Alpha2": {
        "type": "string"
      },
      "ReviewedInput__createcustomer__Region": {
        "type": "string"
      },
      "ReviewedInput__createinternaltransfer__InternalTransferAPIRequest": {
        "additionalProperties": false,
        "description": " Request body for POST /api/v1/transfer endpoint.\n Transfers funds between two depository, treasury, or investment accounts belonging to the same organization.",
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createinternaltransfer__PositiveDollar"
              }
            ]
          },
          "destinationAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createinternaltransfer__TransactionPartyId"
              }
            ]
          },
          "idempotencyKey": {
            "type": "string"
          },
          "note": {
            "nullable": true,
            "type": "string"
          },
          "sourceAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createinternaltransfer__TransactionPartyId"
              }
            ]
          }
        },
        "required": [
          "sourceAccountId",
          "destinationAccountId",
          "amount",
          "idempotencyKey"
        ],
        "type": "object"
      },
      "ReviewedInput__createinternaltransfer__PositiveDollar": {
        "description": "A positive dollar amount with at least 1 cent.",
        "format": "double",
        "minimum": 0.01,
        "type": "number"
      },
      "ReviewedInput__createinternaltransfer__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "ReviewedInput__createinvoice__ApiSendEmailOption": {
        "enum": [
          "DontSend",
          "SendNow"
        ],
        "type": "string"
      },
      "ReviewedInput__createinvoice__ApiV1ArInvoiceCreateRequest": {
        "additionalProperties": false,
        "description": " The request body to create an invoice.",
        "properties": {
          "achDebitEnabled": {
            "description": " Whether or not the invoice can be paid via ACH debit.",
            "type": "boolean"
          },
          "ccEmails": {
            "description": " Emails to be CCed on invoice notifications/reminders.",
            "items": {
              "$ref": "#/components/schemas/ReviewedInput__createinvoice__Email"
            },
            "type": "array"
          },
          "creditCardEnabled": {
            "description": " Whether or not the invoice can be paid via credit card. Requires Stripe to be setup for the Mercury account.",
            "type": "boolean"
          },
          "currencyCode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createinvoice__CurrencyCode"
              },
              {
                "description": " ISO 4217 currency code for the invoice. Defaults to USD if not provided."
              }
            ],
            "nullable": true
          },
          "customerId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createinvoice__CustomerId"
              },
              {
                "description": " Id of the customer the invoice was sent to."
              }
            ]
          },
          "destinationAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createinvoice__TransactionPartyId"
              },
              {
                "description": " The Mercury account where invoice payments will be deposited. Use the /api/v1/accounts endpoint to list your accounts and find the corresponding id. Only checking and savings accounts are supported."
              }
            ]
          },
          "dueDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createinvoice__Day"
              },
              {
                "description": " The due date the invoice should be paid by. YYYY-MM-DD"
              }
            ]
          },
          "internalNote": {
            "description": " Internal note for the invoice, visible by users in the organization but not visible to payers.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "invoiceDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createinvoice__Day"
              },
              {
                "description": " The date of the invoice, set by the invoice creator and likely to be context specific to the type of transaction. For example, it could be a date a service was performed. YYYY-MM-DD"
              }
            ]
          },
          "invoiceNumber": {
            "description": " The payer facing invoice number/identifier.",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "lineItems": {
            "description": " The line items for the invoice",
            "items": {
              "$ref": "#/components/schemas/ReviewedInput__createinvoice__ApiV1ArLineItemData"
            },
            "type": "array"
          },
          "payerMemo": {
            "description": " Memo for the payer of the invoice.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "poNumber": {
            "description": " Purchase order number for the invoice, if applicable.",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "sendEmailOption": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createinvoice__ApiSendEmailOption"
              },
              {
                "description": " Rules for emailing the new invoice to payers. Can be \"DontSend\" to skip sending or \"SendNow\" to send immediately. If omitted, defaults to sending immediately."
              }
            ],
            "nullable": true
          },
          "servicePeriodEndDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createinvoice__Day"
              },
              {
                "description": " The end date for the service period this invoice covers, if applicable. YYYY-MM-DD"
              }
            ],
            "nullable": true
          },
          "servicePeriodStartDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createinvoice__Day"
              },
              {
                "description": " The start date for the service period this invoice covers, if applicable. YYYY-MM-DD"
              }
            ],
            "nullable": true
          },
          "useRealAccountNumber": {
            "description": " Whether or not the invoice payment instructions will show the real account and routing number for the destination account or use virtual account numbers instead. Virtual accounts are safer and are preferred in most cases.",
            "type": "boolean"
          }
        },
        "required": [
          "dueDate",
          "invoiceDate",
          "customerId",
          "ccEmails",
          "destinationAccountId",
          "creditCardEnabled",
          "achDebitEnabled",
          "useRealAccountNumber",
          "lineItems"
        ],
        "type": "object"
      },
      "ReviewedInput__createinvoice__ApiV1ArLineItemData": {
        "additionalProperties": false,
        "description": " Data for an invoice line item",
        "properties": {
          "name": {
            "description": " the name of the line item",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "quantity": {
            "description": " the quantity of this item",
            "format": "double",
            "type": "number"
          },
          "salesTaxRate": {
            "description": " the sales tax applied to this item",
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "unitPrice": {
            "description": " the price of one unit of the item before sales tax",
            "multipleOf": 0.01,
            "type": "number"
          }
        },
        "required": [
          "name",
          "unitPrice",
          "quantity"
        ],
        "type": "object"
      },
      "ReviewedInput__createinvoice__CurrencyCode": {
        "type": "string"
      },
      "ReviewedInput__createinvoice__CustomerId": {
        "description": "The customer who will receive the invoice. Use the /api/v1/ar/customers endpoint to list your customers and find the corresponding id, or create a new customer first.",
        "format": "uuid",
        "type": "string"
      },
      "ReviewedInput__createinvoice__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "ReviewedInput__createinvoice__Email": {
        "type": "string"
      },
      "ReviewedInput__createinvoice__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "ReviewedInput__createproduct__ApiV1ArProductCreateRequest": {
        "additionalProperties": false,
        "description": " Request data to create a product catalog item using the public API",
        "properties": {
          "description": {
            "description": " Optional description of the product.",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": " Name of the product. Must be unique per organization in combination with the unit price.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "unitPrice": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createproduct__Dollar"
              },
              {
                "description": " Unit price of the product, in dollars."
              }
            ]
          }
        },
        "required": [
          "name",
          "unitPrice"
        ],
        "type": "object"
      },
      "ReviewedInput__createproduct__Dollar": {
        "description": "A dollar amount",
        "format": "double",
        "type": "number"
      },
      "ReviewedInput__createreceiptuploadurl__ApiV1ReceiptUploadUrlRequest": {
        "additionalProperties": false,
        "description": " Request a presigned URL to upload a receipt file.",
        "properties": {
          "fileName": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "fileName"
        ],
        "type": "object"
      },
      "ReviewedInput__createrecipient__AddRecipientRequest": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createrecipient__AddressData"
              }
            ],
            "description": "Deprecated. Use checkInfo instead."
          },
          "checkInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createrecipient__CheckInfoRaw"
              }
            ],
            "description": "Information needed to send a physical check."
          },
          "contactEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createrecipient__Email"
              }
            ],
            "description": "Contact email address of the recipient"
          },
          "domesticWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createrecipient__DomesticWireRoutingInfoRaw"
              }
            ],
            "description": "Information needed to send a domestic wire."
          },
          "electronicRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createrecipient__ElectronicRoutingInfoRaw"
              }
            ],
            "description": "Information needed to send an ACH."
          },
          "emails": {
            "items": {
              "$ref": "#/components/schemas/ReviewedInput__createrecipient__Email"
            },
            "type": "array"
          },
          "name": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "nickname": {
            "maxLength": 299,
            "type": "string"
          },
          "realTimePaymentRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createrecipient__RealTimePaymentRoutingInfoRaw"
              }
            ],
            "description": "Information needed to send a real-time payment."
          }
        },
        "required": [
          "name",
          "emails"
        ],
        "type": "object"
      },
      "ReviewedInput__createrecipient__AddressData": {
        "additionalProperties": false,
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createrecipient__USState"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "address1",
          "city",
          "postalCode"
        ],
        "type": "object"
      },
      "ReviewedInput__createrecipient__AddressWithoutName": {
        "additionalProperties": false,
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createrecipient__ISO3166Alpha2"
              }
            ]
          },
          "postalCode": {
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createrecipient__Region"
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "ReviewedInput__createrecipient__CheckInfoRaw": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createrecipient__AddressWithoutName"
              },
              {
                "description": " Mailing address for sending a physical check."
              }
            ]
          }
        },
        "required": [
          "address"
        ],
        "type": "object"
      },
      "ReviewedInput__createrecipient__DomesticWireRoutingInfoRaw": {
        "additionalProperties": false,
        "properties": {
          "accountNumber": {
            "description": " The account number of the bank account to use for domestic wire payments.",
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createrecipient__AddressWithoutName"
              },
              {
                "description": " The address of the bank account to use for domestic wire payments. This has to be the recipient's legal address."
              }
            ]
          },
          "routingNumber": {
            "description": " The routing number of the bank account to use for domestic wire payments.",
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "address"
        ],
        "type": "object"
      },
      "ReviewedInput__createrecipient__ElectronicAccountType": {
        "enum": [
          "businessChecking",
          "businessSavings",
          "personalChecking",
          "personalSavings",
          "businessGeneralLedger",
          "personalGeneralLedger",
          "businessLoan",
          "personalLoan"
        ],
        "type": "string"
      },
      "ReviewedInput__createrecipient__ElectronicRoutingInfoRaw": {
        "additionalProperties": false,
        "properties": {
          "accountNumber": {
            "description": " The account number of the bank account to use for ACH payments.",
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createrecipient__AddressWithoutName"
              },
              {
                "description": " The address of the bank account to use for ACH payments. This has to be the recipient's legal address."
              }
            ]
          },
          "electronicAccountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createrecipient__ElectronicAccountType"
              },
              {
                "description": " The type of bank account to use for ACH payments."
              }
            ]
          },
          "routingNumber": {
            "description": " The routing number of the bank account to use for ACH payments.",
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "electronicAccountType",
          "address"
        ],
        "type": "object"
      },
      "ReviewedInput__createrecipient__Email": {
        "type": "string"
      },
      "ReviewedInput__createrecipient__ISO3166Alpha2": {
        "type": "string"
      },
      "ReviewedInput__createrecipient__RealTimePaymentRoutingInfoRaw": {
        "additionalProperties": false,
        "description": " Routing information for real-time payments.",
        "properties": {
          "accountNumber": {
            "description": " The account number of the bank account to use for real-time payments.",
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createrecipient__AddressWithoutName"
              },
              {
                "description": " The address of the bank account to use for real-time payments."
              }
            ]
          },
          "routingNumber": {
            "description": " The routing number of the bank account to use for real-time payments.",
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "address"
        ],
        "type": "object"
      },
      "ReviewedInput__createrecipient__Region": {
        "type": "string"
      },
      "ReviewedInput__createrecipient__USState": {
        "enum": [
          "AL",
          "AK",
          "AZ",
          "AR",
          "CA",
          "CO",
          "CT",
          "DE",
          "DC",
          "FL",
          "GA",
          "HI",
          "ID",
          "IL",
          "IN",
          "IA",
          "KS",
          "KY",
          "LA",
          "ME",
          "MD",
          "MA",
          "MI",
          "MN",
          "MS",
          "MO",
          "MT",
          "NE",
          "NV",
          "NH",
          "NJ",
          "NM",
          "NY",
          "NC",
          "ND",
          "OH",
          "OK",
          "OR",
          "PA",
          "RI",
          "SC",
          "SD",
          "TN",
          "TX",
          "UT",
          "VT",
          "VA",
          "WA",
          "WV",
          "WI",
          "WY"
        ],
        "type": "string"
      },
      "ReviewedInput__createrecipientinvite__CreateRecipientInviteApiRequest": {
        "additionalProperties": false,
        "description": " Request body for creating a recipient invite.",
        "properties": {
          "contactEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createrecipientinvite__Email"
              },
              {
                "description": " Contact email the invite is sent to. When 'recipientId' is present, updates the recipient's contact email to this value."
              }
            ]
          },
          "name": {
            "description": " Name the invite is created for. This field is required when 'recipientId' is absent.\n When 'recipientId' is present, this field is optional and updates the recipient's name to this value.",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "notes": {
            "description": " Optional notes shown to the recipient.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "organizationNameOnRequest": {
            "description": " Optional organization name to display on the request.",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "paymentMethods": {
            "description": " Payment methods the recipient may submit details for.",
            "items": {
              "$ref": "#/components/schemas/ReviewedInput__createrecipientinvite__PaymentMethod"
            },
            "minItems": 1,
            "type": "array"
          },
          "recipientId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createrecipientinvite__TransactionPartyId"
              },
              {
                "description": " The recipient to send the invite to."
              }
            ],
            "nullable": true
          },
          "requireTaxDocument": {
            "description": " Whether the recipient must upload a tax document.",
            "type": "boolean"
          },
          "sendEmail": {
            "description": " When true, sends an Email to the invitee. When false, does not send an email to the invitee.",
            "type": "boolean"
          }
        },
        "required": [
          "contactEmail",
          "paymentMethods",
          "requireTaxDocument",
          "sendEmail"
        ],
        "type": "object"
      },
      "ReviewedInput__createrecipientinvite__Email": {
        "type": "string"
      },
      "ReviewedInput__createrecipientinvite__PaymentMethod": {
        "enum": [
          "ach",
          "check",
          "domesticWire",
          "internationalWire",
          "realTimePayment"
        ],
        "type": "string"
      },
      "ReviewedInput__createrecipientinvite__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "ReviewedInput__createtransaction__PositiveDollar": {
        "description": "A positive dollar amount with at least 1 cent.",
        "format": "double",
        "minimum": 0.01,
        "type": "number"
      },
      "ReviewedInput__createtransaction__PostTransactionAPIRequest": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createtransaction__PositiveDollar"
              }
            ],
            "description": "Amount of USD you want to send, must be a positive number."
          },
          "duplicateCheckOverride": {
            "description": "Set to true to skip the duplicate payment check. By default, payments are blocked if the same account sent the same amount to the same recipient with the same payment method in the last 24 hours, even when the idempotency key is different. Use this field only when you intentionally send a repeat payment.",
            "type": "boolean"
          },
          "externalMemo": {
            "description": "Optional external memo",
            "maxLength": 299,
            "type": "string"
          },
          "idempotencyKey": {
            "description": "Unique string identifying the transaction",
            "type": "string"
          },
          "note": {
            "description": "Optional note",
            "type": "string"
          },
          "paymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createtransaction__PostTransactionPaymentMethod"
              }
            ],
            "description": "If domesticWire is used, then the purpose field is required."
          },
          "purpose": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createtransaction__PostTransactionSendMoneyPurpose"
              }
            ],
            "description": "Purpose of payment with category and optional additional info. Required when paymentMethod is 'domesticWire'."
          },
          "recipientId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createtransaction__TransactionPartyId"
              }
            ],
            "description": "Recipient ID from the /recipients endpoint."
          }
        },
        "required": [
          "recipientId",
          "amount",
          "paymentMethod",
          "idempotencyKey"
        ],
        "type": "object"
      },
      "ReviewedInput__createtransaction__PostTransactionPaymentMethod": {
        "enum": [
          "ach",
          "check",
          "domesticWire",
          "realTimePayment"
        ],
        "type": "string"
      },
      "ReviewedInput__createtransaction__PostTransactionSendMoneyPurpose": {
        "additionalProperties": false,
        "description": " External API representation of SendMoneyPurpose.\n Only exposes the 'simple' field to decouple internal implementation from external API.",
        "properties": {
          "simple": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__createtransaction__SimplePurpose"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "ReviewedInput__createtransaction__SimplePurpose": {
        "additionalProperties": false,
        "properties": {
          "additionalInfo": {
            "description": "Additional information. Required for: Vendor (vendor name), Contractor (contractor name), Other (payment description). Optional for Subsidiary (subsidiary name). Not accepted for any other categories.",
            "type": "string"
          },
          "category": {
            "description": "Payment category.",
            "enum": [
              "employee",
              "landlord",
              "vendor",
              "contractor",
              "subsidiary",
              "transferToMyExternalAccount",
              "familyMemberOrFriend",
              "forGoodsOrServices",
              "angelInvestment",
              "savingsOrInvestments",
              "expenses",
              "travel",
              "other"
            ],
            "type": "string"
          }
        },
        "required": [
          "category"
        ],
        "type": "object"
      },
      "ReviewedInput__createtransaction__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "ReviewedInput__createwebhook__CreateWebhookParams": {
        "additionalProperties": false,
        "description": " Request body for creating a new webhook endpoint",
        "properties": {
          "eventTypes": {
            "description": " Optional array of event types to subscribe to. Nothing means subscribe to all event types.",
            "items": {
              "$ref": "#/components/schemas/ReviewedInput__createwebhook__WebhookEventType"
            },
            "nullable": true,
            "type": "array"
          },
          "filterPaths": {
            "description": " Optional array of resource field paths to filter events by. When specified, webhook events will only be sent when one of these fields changes. Nothing means no filtering (all events are sent).",
            "items": {
              "$ref": "#/components/schemas/ReviewedInput__createwebhook__ResourceField"
            },
            "nullable": true,
            "type": "array"
          },
          "url": {
            "description": " The URL to which webhook events will be delivered",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "ReviewedInput__createwebhook__ResourceField": {
        "enum": [
          "transaction.amount",
          "transaction.bankDescription",
          "transaction.categoryData",
          "transaction.customCategory",
          "transaction.customCategory.id",
          "transaction.customCategory.name",
          "transaction.mercuryCategory",
          "transaction.estimatedDeliveryDate",
          "transaction.externalMemo",
          "transaction.failedAt",
          "transaction.note",
          "transaction.postedAt",
          "transaction.reasonForFailure",
          "transaction.status",
          "checkingAccount.availableBalance",
          "checkingAccount.currentBalance",
          "checkingAccount.inFlightBalance",
          "savingsAccount.availableBalance",
          "savingsAccount.currentBalance",
          "savingsAccount.inFlightBalance",
          "treasuryAccount.availableBalance",
          "treasuryAccount.currentBalance",
          "treasuryAccount.inFlightBalance",
          "investmentAccount.availableBalance",
          "investmentAccount.currentBalance",
          "investmentAccount.inFlightBalance",
          "creditAccount.availableBalance",
          "creditAccount.currentBalance",
          "creditAccount.inFlightBalance"
        ],
        "type": "string"
      },
      "ReviewedInput__createwebhook__WebhookEventType": {
        "enum": [
          "transaction.created",
          "transaction.updated",
          "checkingAccount.balance.updated",
          "savingsAccount.balance.updated",
          "treasuryAccount.balance.updated",
          "investmentAccount.balance.updated",
          "creditAccount.balance.updated"
        ],
        "type": "string"
      },
      "ReviewedInput__editcategory__CategoryName": {
        "type": "string"
      },
      "ReviewedInput__editcategory__EditCategoryApiRequest": {
        "additionalProperties": false,
        "description": " Request body for editing an existing expense category. All fields are optional.",
        "properties": {
          "name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__editcategory__CategoryName"
              },
              {
                "description": " New name for the category"
              }
            ],
            "nullable": true
          },
          "visibleForCardSpend": {
            "description": " Whether this category is applicable to card transactions",
            "nullable": true,
            "type": "boolean"
          },
          "visibleForOther": {
            "description": " Whether this category is applicable to all other transaction kinds",
            "nullable": true,
            "type": "boolean"
          },
          "visibleForReimbursements": {
            "description": " Whether this category is applicable to expense reimbursement transactions",
            "nullable": true,
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "ReviewedInput__requestsendmoney__PositiveDollar": {
        "description": "A positive dollar amount with at least 1 cent.",
        "format": "double",
        "minimum": 0.01,
        "type": "number"
      },
      "ReviewedInput__requestsendmoney__PostTransactionSendMoneyPurpose": {
        "additionalProperties": false,
        "description": " External API representation of SendMoneyPurpose.\n Only exposes the 'simple' field to decouple internal implementation from external API.",
        "properties": {
          "simple": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__requestsendmoney__SimplePurpose"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "ReviewedInput__requestsendmoney__RequestSendMoneyPaymentMethod": {
        "enum": [
          "ach",
          "check",
          "domesticWire",
          "internationalWire",
          "realTimePayment"
        ],
        "type": "string"
      },
      "ReviewedInput__requestsendmoney__SendMoneyAPIRequest": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__requestsendmoney__PositiveDollar"
              }
            ],
            "description": "Amount of USD you want to send, must be a positive number."
          },
          "chargeType": {
            "description": "Who pays intermediary bank fees on a USD international wire. Pass 'ours' so the recipient receives the full amount (Mercury charges a $15 fee), or 'shared' to split those fees. If omitted on a USD international wire, this defaults to 'ours'. Do not include this field for other payment methods or accounts that are not charged international-wire fees.",
            "enum": [
              "ours",
              "shared"
            ],
            "type": "string"
          },
          "duplicateCheckOverride": {
            "description": "Set to true to skip the duplicate payment check. By default, payments are blocked if the same account sent the same amount to the same recipient with the same payment method in the last 24 hours, even when the idempotency key is different. Use this field only when you intentionally send a repeat payment. The check occurs when you create the request. When an approver approves the request, the check does not occur again.",
            "type": "boolean"
          },
          "externalMemo": {
            "description": "Optional external memo",
            "maxLength": 299,
            "type": "string"
          },
          "idempotencyKey": {
            "description": "Unique string identifying the transaction",
            "type": "string"
          },
          "note": {
            "description": "Optional note",
            "type": "string"
          },
          "paymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__requestsendmoney__RequestSendMoneyPaymentMethod"
              }
            ],
            "description": "Payment method to use. If domesticWire or internationalWire is used, then the purpose field is required."
          },
          "purpose": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__requestsendmoney__PostTransactionSendMoneyPurpose"
              }
            ],
            "description": "Purpose of payment with category and optional additional info. Required when paymentMethod is 'domesticWire' or 'internationalWire'."
          },
          "recipientId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__requestsendmoney__TransactionPartyId"
              }
            ],
            "description": "Recipient ID from the /recipients endpoint."
          }
        },
        "required": [
          "recipientId",
          "amount",
          "paymentMethod",
          "idempotencyKey"
        ],
        "type": "object"
      },
      "ReviewedInput__requestsendmoney__SimplePurpose": {
        "additionalProperties": false,
        "properties": {
          "additionalInfo": {
            "description": "Additional information. Required for: Vendor (vendor name), Contractor (contractor name), Other (payment description). Optional for Subsidiary (subsidiary name). Not accepted for any other categories.",
            "type": "string"
          },
          "category": {
            "description": "Payment category.",
            "enum": [
              "employee",
              "landlord",
              "vendor",
              "contractor",
              "subsidiary",
              "transferToMyExternalAccount",
              "familyMemberOrFriend",
              "forGoodsOrServices",
              "angelInvestment",
              "savingsOrInvestments",
              "expenses",
              "travel",
              "other"
            ],
            "type": "string"
          }
        },
        "required": [
          "category"
        ],
        "type": "object"
      },
      "ReviewedInput__requestsendmoney__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "ReviewedInput__requesttransfermoney__PositiveDollar": {
        "description": "A positive dollar amount with at least 1 cent.",
        "format": "double",
        "minimum": 0.01,
        "type": "number"
      },
      "ReviewedInput__requesttransfermoney__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "ReviewedInput__requesttransfermoney__TransferMoneyApprovalRequestAPIRequest": {
        "additionalProperties": false,
        "description": " Parameters for requesting a transfer between two accounts.",
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__requesttransfermoney__PositiveDollar"
              }
            ]
          },
          "destinationAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__requesttransfermoney__TransactionPartyId"
              }
            ]
          },
          "idempotencyKey": {
            "type": "string"
          },
          "note": {
            "nullable": true,
            "type": "string"
          },
          "sourceAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__requesttransfermoney__TransactionPartyId"
              }
            ]
          }
        },
        "required": [
          "sourceAccountId",
          "destinationAccountId",
          "amount",
          "idempotencyKey"
        ],
        "type": "object"
      },
      "ReviewedInput__updatebudget__ApiV1BudgetFrequency": {
        "enum": [
          "oneTime",
          "daily",
          "weekly",
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "ReviewedInput__updatebudget__ApiV1UpdateBudgetRequest": {
        "additionalProperties": false,
        "properties": {
          "amountPerUserPerPeriod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updatebudget__NonNegativeDollar"
              }
            ],
            "nullable": true
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "endDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updatebudget__Day"
              }
            ],
            "nullable": true
          },
          "frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updatebudget__ApiV1BudgetFrequency"
              }
            ],
            "nullable": true
          },
          "name": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "startDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updatebudget__Day"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "ReviewedInput__updatebudget__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "ReviewedInput__updatebudget__NonNegativeDollar": {
        "description": "A non-negative dollar amount",
        "format": "double",
        "minimum": 0,
        "type": "number"
      },
      "ReviewedInput__updatecard__NicknameUpdate": {
        "description": "Nickname update action. Omit the field to keep the current nickname, send null or an empty/whitespace-only string to clear it, or send a string to set it.",
        "nullable": true,
        "type": "string"
      },
      "ReviewedInput__updatecard__SpendLimit": {
        "additionalProperties": false,
        "description": " Spending controls applied to a card",
        "properties": {
          "amountCents": {
            "description": " Maximum total spend allowed per interval, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "atmAmountCents": {
            "description": " Maximum ATM withdrawal allowed per interval, in cents. Null for virtual\n cards and credit cards.",
            "minimum": 0,
            "nullable": true,
            "type": "integer"
          },
          "interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updatecard__SpendLimitInterval"
              },
              {
                "description": " Rolling window the limit applies to."
              }
            ]
          }
        },
        "required": [
          "amountCents",
          "interval"
        ],
        "type": "object"
      },
      "ReviewedInput__updatecard__SpendLimitInterval": {
        "enum": [
          "daily",
          "weekly",
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "ReviewedInput__updatecard__UpdateCardRequest": {
        "additionalProperties": false,
        "description": " At least one updateable field must be provided;\n requests where every field is the same are rejected.",
        "properties": {
          "nickname": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updatecard__NicknameUpdate"
              },
              {
                "description": " Updated card nickname. Omit to keep current, send null/empty to clear, send a string to set."
              }
            ]
          },
          "spendLimit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updatecard__SpendLimit"
              },
              {
                "description": " Updated spending controls for the card. Omit to leave unchanged."
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "ReviewedInput__updatecustomer__ApiV1ArCustomerAddressInput": {
        "additionalProperties": false,
        "description": " Address input for creating or updating customers",
        "properties": {
          "address1": {
            "description": " Primary street address line.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "address2": {
            "description": " Secondary street address line (optional).",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "city": {
            "description": " City name.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updatecustomer__ISO3166Alpha2"
              },
              {
                "description": " Two-letter country code (ISO 3166-1 alpha-2)."
              }
            ]
          },
          "name": {
            "description": " The mailing name of the address.",
            "type": "string"
          },
          "postalCode": {
            "description": " Postal or ZIP code.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updatecustomer__Region"
              },
              {
                "description": " Either a two-letter US state code i.e. \"CA\" for California or a free-form identification of a particular region worldwide."
              }
            ]
          }
        },
        "required": [
          "name",
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "ReviewedInput__updatecustomer__ApiV1ArCustomerUpdateRequest": {
        "additionalProperties": false,
        "description": " Request data to update a customer using the public api",
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updatecustomer__ApiV1ArCustomerAddressInput"
              },
              {
                "description": " The address for the customer."
              }
            ],
            "nullable": true
          },
          "email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updatecustomer__Email"
              },
              {
                "description": " The email address for the customer."
              }
            ]
          },
          "name": {
            "description": " The name of the customer.",
            "maxLength": 5000,
            "minLength": 1,
            "type": "string"
          },
          "resendOpenInvoices": {
            "description": " Open invoices for the customer will be resent with updated data\n when this is true.",
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "email",
          "resendOpenInvoices"
        ],
        "type": "object"
      },
      "ReviewedInput__updatecustomer__Email": {
        "type": "string"
      },
      "ReviewedInput__updatecustomer__ISO3166Alpha2": {
        "type": "string"
      },
      "ReviewedInput__updatecustomer__Region": {
        "type": "string"
      },
      "ReviewedInput__updateinvoice__ApiV1ArInvoiceUpdateRequest": {
        "additionalProperties": false,
        "description": " The request body to update an invoice.",
        "properties": {
          "achDebitEnabled": {
            "description": " Whether or not the invoice can be paid via ACH debit.",
            "type": "boolean"
          },
          "ccEmails": {
            "description": " List of emails to be CCed on notifications/reminders.",
            "items": {
              "$ref": "#/components/schemas/ReviewedInput__updateinvoice__Email"
            },
            "type": "array"
          },
          "creditCardEnabled": {
            "description": " Whether or not the invoice can be paid via credit card. Requires Stripe to be setup for the Mercury account.",
            "type": "boolean"
          },
          "dueDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updateinvoice__Day"
              },
              {
                "description": " The date the invoice should be paid by. YYYY-MM-DD"
              }
            ]
          },
          "internalNote": {
            "description": " Internal note for the invoice, visible by users in the organization but not visible to payers.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "invoiceDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updateinvoice__Day"
              },
              {
                "description": " The date of the invoice, set by the invoice creator. Does not have to be the day the invoice was created. It can be business specific i.e. service/sale date. YYYY-MM-DD"
              }
            ]
          },
          "invoiceNumber": {
            "description": " The invoice number.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "lineItems": {
            "description": " The line items for the invoice",
            "items": {
              "$ref": "#/components/schemas/ReviewedInput__updateinvoice__ApiV1ArLineItemData"
            },
            "type": "array"
          },
          "payerMemo": {
            "description": " Memo for the payer of the invoice.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "poNumber": {
            "description": " The purchase order number for the invoice if applicable.",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "servicePeriodEndDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updateinvoice__Day"
              },
              {
                "description": " The end date for the service period this invoice covers, if applicable. YYYY-MM-DD"
              }
            ],
            "nullable": true
          },
          "servicePeriodStartDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updateinvoice__Day"
              },
              {
                "description": " The start date for the service period this invoice covers, if applicable. YYYY-MM-DD"
              }
            ],
            "nullable": true
          },
          "useRealAccountNumber": {
            "description": " Whether or not the invoice payment instructions will show the real account and routing number for the destination account or use virtual account numbers instead.",
            "type": "boolean"
          }
        },
        "required": [
          "dueDate",
          "invoiceDate",
          "invoiceNumber",
          "ccEmails",
          "creditCardEnabled",
          "achDebitEnabled",
          "useRealAccountNumber",
          "lineItems"
        ],
        "type": "object"
      },
      "ReviewedInput__updateinvoice__ApiV1ArLineItemData": {
        "additionalProperties": false,
        "description": " Data for an invoice line item",
        "properties": {
          "name": {
            "description": " the name of the line item",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "quantity": {
            "description": " the quantity of this item",
            "format": "double",
            "type": "number"
          },
          "salesTaxRate": {
            "description": " the sales tax applied to this item",
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "unitPrice": {
            "description": " the price of one unit of the item before sales tax",
            "multipleOf": 0.01,
            "type": "number"
          }
        },
        "required": [
          "name",
          "unitPrice",
          "quantity"
        ],
        "type": "object"
      },
      "ReviewedInput__updateinvoice__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "ReviewedInput__updateinvoice__Email": {
        "type": "string"
      },
      "ReviewedInput__updaterecipient__AddressData": {
        "additionalProperties": false,
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updaterecipient__USState"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "address1",
          "city",
          "postalCode"
        ],
        "type": "object"
      },
      "ReviewedInput__updaterecipient__AddressWithoutName": {
        "additionalProperties": false,
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updaterecipient__ISO3166Alpha2"
              }
            ]
          },
          "postalCode": {
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updaterecipient__Region"
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "ReviewedInput__updaterecipient__CheckInfoRaw": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updaterecipient__AddressWithoutName"
              },
              {
                "description": " Mailing address for sending a physical check."
              }
            ]
          }
        },
        "required": [
          "address"
        ],
        "type": "object"
      },
      "ReviewedInput__updaterecipient__DomesticWireRoutingInfoRaw": {
        "additionalProperties": false,
        "properties": {
          "accountNumber": {
            "description": " The account number of the bank account to use for domestic wire payments.",
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updaterecipient__AddressWithoutName"
              },
              {
                "description": " The address of the bank account to use for domestic wire payments. This has to be the recipient's legal address."
              }
            ]
          },
          "routingNumber": {
            "description": " The routing number of the bank account to use for domestic wire payments.",
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "address"
        ],
        "type": "object"
      },
      "ReviewedInput__updaterecipient__EditRecipientRequest": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updaterecipient__AddressData"
              }
            ],
            "description": "Deprecated. Use checkInfo instead."
          },
          "checkInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updaterecipient__CheckInfoRaw"
              }
            ],
            "description": "Information needed to send a check."
          },
          "contactEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updaterecipient__Email"
              }
            ],
            "description": "Contact email address of the recipient"
          },
          "domesticWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updaterecipient__DomesticWireRoutingInfoRaw"
              }
            ],
            "description": "Information needed to send a domestic wire."
          },
          "electronicRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updaterecipient__ElectronicRoutingInfoRaw"
              }
            ],
            "description": "Information needed to send an ACH."
          },
          "emails": {
            "items": {
              "$ref": "#/components/schemas/ReviewedInput__updaterecipient__Email"
            },
            "type": "array"
          },
          "name": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "nickname": {
            "type": "string"
          },
          "realTimePaymentRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updaterecipient__RealTimePaymentRoutingInfoRaw"
              }
            ],
            "description": "Information needed to send a real-time payment."
          }
        },
        "type": "object"
      },
      "ReviewedInput__updaterecipient__ElectronicAccountType": {
        "enum": [
          "businessChecking",
          "businessSavings",
          "personalChecking",
          "personalSavings",
          "businessGeneralLedger",
          "personalGeneralLedger",
          "businessLoan",
          "personalLoan"
        ],
        "type": "string"
      },
      "ReviewedInput__updaterecipient__ElectronicRoutingInfoRaw": {
        "additionalProperties": false,
        "properties": {
          "accountNumber": {
            "description": " The account number of the bank account to use for ACH payments.",
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updaterecipient__AddressWithoutName"
              },
              {
                "description": " The address of the bank account to use for ACH payments. This has to be the recipient's legal address."
              }
            ]
          },
          "electronicAccountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updaterecipient__ElectronicAccountType"
              },
              {
                "description": " The type of bank account to use for ACH payments."
              }
            ]
          },
          "routingNumber": {
            "description": " The routing number of the bank account to use for ACH payments.",
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "electronicAccountType",
          "address"
        ],
        "type": "object"
      },
      "ReviewedInput__updaterecipient__Email": {
        "type": "string"
      },
      "ReviewedInput__updaterecipient__ISO3166Alpha2": {
        "type": "string"
      },
      "ReviewedInput__updaterecipient__RealTimePaymentRoutingInfoRaw": {
        "additionalProperties": false,
        "description": " Routing information for real-time payments.",
        "properties": {
          "accountNumber": {
            "description": " The account number of the bank account to use for real-time payments.",
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updaterecipient__AddressWithoutName"
              },
              {
                "description": " The address of the bank account to use for real-time payments."
              }
            ]
          },
          "routingNumber": {
            "description": " The routing number of the bank account to use for real-time payments.",
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "address"
        ],
        "type": "object"
      },
      "ReviewedInput__updaterecipient__Region": {
        "type": "string"
      },
      "ReviewedInput__updaterecipient__USState": {
        "enum": [
          "AL",
          "AK",
          "AZ",
          "AR",
          "CA",
          "CO",
          "CT",
          "DE",
          "DC",
          "FL",
          "GA",
          "HI",
          "ID",
          "IL",
          "IN",
          "IA",
          "KS",
          "KY",
          "LA",
          "ME",
          "MD",
          "MA",
          "MI",
          "MN",
          "MS",
          "MO",
          "MT",
          "NE",
          "NV",
          "NH",
          "NJ",
          "NM",
          "NY",
          "NC",
          "ND",
          "OH",
          "OK",
          "OR",
          "PA",
          "RI",
          "SC",
          "SD",
          "TN",
          "TX",
          "UT",
          "VT",
          "VA",
          "WA",
          "WV",
          "WI",
          "WY"
        ],
        "type": "string"
      },
      "ReviewedInput__updatetransaction__ApiUpdateTransactionRequest": {
        "additionalProperties": false,
        "description": " Request body for updating transaction metadata via the public API",
        "properties": {
          "categoryId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updatetransaction__CategoryUpdate"
              },
              {
                "description": " How to update the transaction's category. Omit field to keep current, send null to clear, send ID to set."
              }
            ]
          },
          "note": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updatetransaction__NoteUpdate"
              },
              {
                "description": " How to update the transaction's note. Omit field to keep current, send null/empty to clear, send text to set."
              }
            ]
          }
        },
        "type": "object"
      },
      "ReviewedInput__updatetransaction__CategoryUpdate": {
        "description": "Category update action. Omit field to keep current category, send null to clear category, send an ID to set category.",
        "format": "uuid",
        "nullable": true,
        "type": "string"
      },
      "ReviewedInput__updatetransaction__NoteUpdate": {
        "description": "Note update action. Omit field to keep current note, send null or empty string to clear note, send text to set note.",
        "nullable": true,
        "type": "string"
      },
      "ReviewedInput__updatewebhook__ResourceField": {
        "enum": [
          "transaction.amount",
          "transaction.bankDescription",
          "transaction.categoryData",
          "transaction.customCategory",
          "transaction.customCategory.id",
          "transaction.customCategory.name",
          "transaction.mercuryCategory",
          "transaction.estimatedDeliveryDate",
          "transaction.externalMemo",
          "transaction.failedAt",
          "transaction.note",
          "transaction.postedAt",
          "transaction.reasonForFailure",
          "transaction.status",
          "checkingAccount.availableBalance",
          "checkingAccount.currentBalance",
          "checkingAccount.inFlightBalance",
          "savingsAccount.availableBalance",
          "savingsAccount.currentBalance",
          "savingsAccount.inFlightBalance",
          "treasuryAccount.availableBalance",
          "treasuryAccount.currentBalance",
          "treasuryAccount.inFlightBalance",
          "investmentAccount.availableBalance",
          "investmentAccount.currentBalance",
          "investmentAccount.inFlightBalance",
          "creditAccount.availableBalance",
          "creditAccount.currentBalance",
          "creditAccount.inFlightBalance"
        ],
        "type": "string"
      },
      "ReviewedInput__updatewebhook__UpdateWebhookParams": {
        "additionalProperties": false,
        "description": " Request body for updating an existing webhook endpoint.\n All fields are optional - only provided fields will be updated.",
        "properties": {
          "eventTypes": {
            "description": " Event types to subscribe to. Send null to subscribe to all event types. Send an array to subscribe to specific types. Omit to leave unchanged.",
            "items": {
              "$ref": "#/components/schemas/ReviewedInput__updatewebhook__WebhookEventType"
            },
            "nullable": true,
            "type": "array"
          },
          "filterPaths": {
            "description": " Resource field paths to filter events by. When specified, webhook events will only be sent when one of these fields changes. Send null for no filtering. Send an array to filter by specific fields. Omit to leave unchanged.",
            "items": {
              "$ref": "#/components/schemas/ReviewedInput__updatewebhook__ResourceField"
            },
            "nullable": true,
            "type": "array"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__updatewebhook__WebhookUpdateStatus"
              },
              {
                "description": " Webhook status. Only 'active' and 'paused' values are allowed. Omit to leave unchanged."
              }
            ],
            "nullable": true
          },
          "url": {
            "description": " The URL to which webhook events will be delivered. Omit to leave unchanged.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "ReviewedInput__updatewebhook__WebhookEventType": {
        "enum": [
          "transaction.created",
          "transaction.updated",
          "checkingAccount.balance.updated",
          "savingsAccount.balance.updated",
          "treasuryAccount.balance.updated",
          "investmentAccount.balance.updated",
          "creditAccount.balance.updated"
        ],
        "type": "string"
      },
      "ReviewedInput__updatewebhook__WebhookUpdateStatus": {
        "enum": [
          "active",
          "paused"
        ],
        "type": "string"
      },
      "ReviewedInput__verifywebhook__VerifyWebhookParams": {
        "additionalProperties": false,
        "description": " Request body for verifying a webhook endpoint",
        "properties": {
          "eventType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewedInput__verifywebhook__WebhookEventType"
              },
              {
                "description": " Optional event type to test. If not specified, defaults to transaction.created."
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "ReviewedInput__verifywebhook__WebhookEventType": {
        "enum": [
          "transaction.created",
          "transaction.updated",
          "checkingAccount.balance.updated",
          "savingsAccount.balance.updated",
          "treasuryAccount.balance.updated",
          "investmentAccount.balance.updated",
          "creditAccount.balance.updated"
        ],
        "type": "string"
      },
      "assigntransactiontobudget__ApiV1AssignTransactionRequest": {
        "properties": {
          "allowOverspend": {
            "description": " Whether to allow this assignment to exceed the budget. Defaults to false.",
            "nullable": true,
            "type": "boolean"
          },
          "transactionId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/assigntransactiontobudget__TransactionMetadataId"
              }
            ]
          }
        },
        "required": [
          "transactionId"
        ],
        "type": "object"
      },
      "assigntransactiontobudget__TransactionMetadataId": {
        "description": "ID for this transaction",
        "format": "uuid",
        "type": "string"
      },
      "cancelcard__Card": {
        "properties": {
          "accountId": {
            "description": " The Mercury account this card is associated with.",
            "type": "string"
          },
          "budgets": {
            "description": " One entry per active budget linked to this card and cardholder.\n Empty under cardLimit, or when this response has no active budget for the cardholder.",
            "items": {
              "$ref": "#/components/schemas/cancelcard__CardBudget"
            },
            "type": "array"
          },
          "categoryLocks": {
            "description": " Mercury spend-category locks applied to this card, in no particular order. Empty when the card has no category restrictions.",
            "items": {
              "$ref": "#/components/schemas/cancelcard__MercuryCategory"
            },
            "type": "array"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/cancelcard__UTCTime"
              },
              {
                "description": " Timestamp when the card was issued."
              }
            ]
          },
          "expiration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/cancelcard__CardExpiration"
              },
              {
                "description": " Month and year the card expires."
              }
            ]
          },
          "id": {
            "description": " Unique identifier for the card.",
            "format": "uuid",
            "type": "string"
          },
          "isAgentCard": {
            "description": " Whether the card is managed by the agentic spend-management agent. Only agent\n cards can have their full details revealed.",
            "type": "boolean"
          },
          "isSingleUse": {
            "description": " Whether the card closes automatically after its first approved purchase. A used\n single-use card reports a @singleUseConsumed@ status.",
            "type": "boolean"
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/cancelcard__CardKind"
              },
              {
                "description": " Whether the card is a debit or credit card."
              }
            ]
          },
          "lastFour": {
            "description": " Last four digits of the card's primary account number (PAN).",
            "type": "string"
          },
          "merchantLock": {
            "allOf": [
              {
                "$ref": "#/components/schemas/cancelcard__MerchantInfo"
              },
              {
                "description": " Merchant lock applied to this card. Present only when the card is locked to a single merchant; otherwise omitted."
              }
            ],
            "nullable": true
          },
          "nameOnCard": {
            "description": " Cardholder name printed on the card.",
            "type": "string"
          },
          "nickname": {
            "description": " Optional user-assigned label for the card.",
            "nullable": true,
            "type": "string"
          },
          "physicalCardStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/cancelcard__PhysicalCardStatus"
              },
              {
                "description": " Activation state of a physical card. Null for virtual cards."
              }
            ],
            "nullable": true
          },
          "spendLimit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/cancelcard__SpendLimit"
              },
              {
                "description": " Card-level spending controls. This is null when card-level limits are\n unavailable, including for credit cards governed by budgets. For debit\n cards, this includes the underlying card limits even when budgets govern\n purchase spending. In budget mode, the transaction limit does not gate\n purchases, but the ATM or cash limit can still apply to cash withdrawals."
              }
            ],
            "nullable": true
          },
          "spendLimitType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/cancelcard__SpendLimitType"
              },
              {
                "description": " Whether card-level limits or budgets govern purchase spending."
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/cancelcard__CardStatus"
              },
              {
                "description": " Current lifecycle state of the card."
              }
            ]
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/cancelcard__CardType"
              },
              {
                "description": " Whether the card is virtual (digital-only) or physical (printed, supports ATM)."
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/cancelcard__UTCTime"
              },
              {
                "description": " Timestamp of the last modification to the card or its settings."
              }
            ]
          },
          "userId": {
            "description": " Mercury User who owns the card.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "accountId",
          "createdAt",
          "updatedAt",
          "lastFour",
          "nameOnCard",
          "userId",
          "status",
          "type",
          "kind",
          "expiration",
          "spendLimitType",
          "budgets",
          "categoryLocks",
          "isAgentCard",
          "isSingleUse"
        ],
        "type": "object"
      },
      "cancelcard__CardBudget": {
        "description": " Current-cycle limits for one budget linked to this card and cardholder.",
        "properties": {
          "amountCents": {
            "description": " The cardholder's spend limit for the current budget cycle, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "id": {
            "description": "Unique identifier for a budget",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": " Display name of the budget.",
            "type": "string"
          },
          "remainingAmountCents": {
            "description": " Current-cycle limit minus recorded spend, clamped at zero, in cents.\n Authorization also uses cached allocations and in-flight holds, so its available amount may differ.",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "amountCents",
          "remainingAmountCents"
        ],
        "type": "object"
      },
      "cancelcard__CardExpiration": {
        "description": "Month and year the card expires.",
        "properties": {
          "month": {
            "description": "Calendar month.",
            "example": 8,
            "maximum": 12,
            "minimum": 1,
            "type": "integer"
          },
          "year": {
            "description": "Four-digit calendar year.",
            "example": 2026,
            "maximum": 2999,
            "minimum": 2000,
            "type": "integer"
          }
        },
        "required": [
          "month",
          "year"
        ],
        "type": "object"
      },
      "cancelcard__CardKind": {
        "enum": [
          "debit",
          "credit"
        ],
        "type": "string"
      },
      "cancelcard__CardStatus": {
        "enum": [
          "active",
          "frozen",
          "cancelled",
          "inactive",
          "expired",
          "suspended",
          "singleUseConsumed"
        ],
        "type": "string"
      },
      "cancelcard__CardType": {
        "enum": [
          "virtual",
          "physical"
        ],
        "type": "string"
      },
      "cancelcard__MerchantId": {
        "format": "uuid",
        "type": "string"
      },
      "cancelcard__MerchantInfo": {
        "description": " Information about a merchant that can be used for spend controls like merchant locking.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/cancelcard__MerchantId"
              }
            ]
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "cancelcard__MercuryCategory": {
        "enum": [
          "Other",
          "Advertising",
          "Airlines",
          "AlcoholAndBars",
          "BooksAndNewspaper",
          "CarRental",
          "Charity",
          "Clothing",
          "Conferences",
          "Education",
          "Electronics",
          "Entertainment",
          "FacilitiesExpenses",
          "Fees",
          "FoodDelivery",
          "FuelAndGas",
          "Gambling",
          "GovernmentServices",
          "Grocery",
          "GroundTransportation",
          "Insurance",
          "InternetAndTelephone",
          "Legal",
          "Lodging",
          "Medical",
          "Memberships",
          "OfficeSupplies",
          "OtherTravel",
          "Parking",
          "Political",
          "ProfessionalServices",
          "Restaurants",
          "Retail",
          "RideshareAndTaxis",
          "Shipping",
          "Software",
          "Taxes",
          "Utilities",
          "VehicleExpenses"
        ],
        "type": "string"
      },
      "cancelcard__PhysicalCardStatus": {
        "enum": [
          "inactive",
          "active",
          "locked"
        ],
        "type": "string"
      },
      "cancelcard__SpendLimit": {
        "description": " Spending controls applied to a card",
        "properties": {
          "amountCents": {
            "description": " Maximum total spend allowed per interval, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "atmAmountCents": {
            "description": " Maximum ATM withdrawal allowed per interval, in cents. Null for virtual\n cards and credit cards.",
            "minimum": 0,
            "nullable": true,
            "type": "integer"
          },
          "interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/cancelcard__SpendLimitInterval"
              },
              {
                "description": " Rolling window the limit applies to."
              }
            ]
          }
        },
        "required": [
          "amountCents",
          "interval"
        ],
        "type": "object"
      },
      "cancelcard__SpendLimitInterval": {
        "enum": [
          "daily",
          "weekly",
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "cancelcard__SpendLimitType": {
        "enum": [
          "cardLimit",
          "budgets"
        ],
        "type": "string"
      },
      "cancelcard__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "createbudget__ApiV1BudgetFrequency": {
        "enum": [
          "oneTime",
          "daily",
          "weekly",
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "createbudget__ApiV1BudgetIdResponse": {
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createbudget__BudgetId"
              }
            ]
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "createbudget__ApiV1CreateBudgetRequest": {
        "properties": {
          "amountPerUserPerPeriod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createbudget__NonNegativeDollar"
              }
            ],
            "nullable": true
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "endDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createbudget__Day"
              }
            ],
            "nullable": true
          },
          "frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createbudget__ApiV1BudgetFrequency"
              }
            ]
          },
          "name": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "startDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createbudget__Day"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "frequency"
        ],
        "type": "object"
      },
      "createbudget__BudgetId": {
        "description": "ID for the budget",
        "format": "uuid",
        "type": "string"
      },
      "createbudget__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "createbudget__NonNegativeDollar": {
        "description": "A non-negative dollar amount",
        "format": "double",
        "minimum": 0,
        "type": "number"
      },
      "createcard__Card": {
        "properties": {
          "accountId": {
            "description": " The Mercury account this card is associated with.",
            "type": "string"
          },
          "budgets": {
            "description": " One entry per active budget linked to this card and cardholder.\n Empty under cardLimit, or when this response has no active budget for the cardholder.",
            "items": {
              "$ref": "#/components/schemas/createcard__CardBudget"
            },
            "type": "array"
          },
          "categoryLocks": {
            "description": " Mercury spend-category locks applied to this card, in no particular order. Empty when the card has no category restrictions.",
            "items": {
              "$ref": "#/components/schemas/createcard__MercuryCategory"
            },
            "type": "array"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__UTCTime"
              },
              {
                "description": " Timestamp when the card was issued."
              }
            ]
          },
          "expiration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__CardExpiration"
              },
              {
                "description": " Month and year the card expires."
              }
            ]
          },
          "id": {
            "description": " Unique identifier for the card.",
            "format": "uuid",
            "type": "string"
          },
          "isAgentCard": {
            "description": " Whether the card is managed by the agentic spend-management agent. Only agent\n cards can have their full details revealed.",
            "type": "boolean"
          },
          "isSingleUse": {
            "description": " Whether the card closes automatically after its first approved purchase. A used\n single-use card reports a @singleUseConsumed@ status.",
            "type": "boolean"
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__CardKind"
              },
              {
                "description": " Whether the card is a debit or credit card."
              }
            ]
          },
          "lastFour": {
            "description": " Last four digits of the card's primary account number (PAN).",
            "type": "string"
          },
          "merchantLock": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__MerchantInfo"
              },
              {
                "description": " Merchant lock applied to this card. Present only when the card is locked to a single merchant; otherwise omitted."
              }
            ],
            "nullable": true
          },
          "nameOnCard": {
            "description": " Cardholder name printed on the card.",
            "type": "string"
          },
          "nickname": {
            "description": " Optional user-assigned label for the card.",
            "nullable": true,
            "type": "string"
          },
          "physicalCardStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__PhysicalCardStatus"
              },
              {
                "description": " Activation state of a physical card. Null for virtual cards."
              }
            ],
            "nullable": true
          },
          "spendLimit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__SpendLimit"
              },
              {
                "description": " Card-level spending controls. This is null when card-level limits are\n unavailable, including for credit cards governed by budgets. For debit\n cards, this includes the underlying card limits even when budgets govern\n purchase spending. In budget mode, the transaction limit does not gate\n purchases, but the ATM or cash limit can still apply to cash withdrawals."
              }
            ],
            "nullable": true
          },
          "spendLimitType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__SpendLimitType"
              },
              {
                "description": " Whether card-level limits or budgets govern purchase spending."
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__CardStatus"
              },
              {
                "description": " Current lifecycle state of the card."
              }
            ]
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__CardType"
              },
              {
                "description": " Whether the card is virtual (digital-only) or physical (printed, supports ATM)."
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__UTCTime"
              },
              {
                "description": " Timestamp of the last modification to the card or its settings."
              }
            ]
          },
          "userId": {
            "description": " Mercury User who owns the card.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "accountId",
          "createdAt",
          "updatedAt",
          "lastFour",
          "nameOnCard",
          "userId",
          "status",
          "type",
          "kind",
          "expiration",
          "spendLimitType",
          "budgets",
          "categoryLocks",
          "isAgentCard",
          "isSingleUse"
        ],
        "type": "object"
      },
      "createcard__CardBudget": {
        "description": " Current-cycle limits for one budget linked to this card and cardholder.",
        "properties": {
          "amountCents": {
            "description": " The cardholder's spend limit for the current budget cycle, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "id": {
            "description": "Unique identifier for a budget",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": " Display name of the budget.",
            "type": "string"
          },
          "remainingAmountCents": {
            "description": " Current-cycle limit minus recorded spend, clamped at zero, in cents.\n Authorization also uses cached allocations and in-flight holds, so its available amount may differ.",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "amountCents",
          "remainingAmountCents"
        ],
        "type": "object"
      },
      "createcard__CardConfiguration": {
        "description": " The configuration of a card. Used both as the read-side response\n alongside @cardConfiguration@ and as an alternative input at issuance\n time.",
        "properties": {
          "singleUse": {
            "description": " Whether this card auto-cancels itself on the first approved non-zero\n authorization. Must be 'False' for physical cards.",
            "type": "boolean"
          }
        },
        "required": [
          "singleUse"
        ],
        "type": "object"
      },
      "createcard__CardExpiration": {
        "description": "Month and year the card expires.",
        "properties": {
          "month": {
            "description": "Calendar month.",
            "example": 8,
            "maximum": 12,
            "minimum": 1,
            "type": "integer"
          },
          "year": {
            "description": "Four-digit calendar year.",
            "example": 2026,
            "maximum": 2999,
            "minimum": 2000,
            "type": "integer"
          }
        },
        "required": [
          "month",
          "year"
        ],
        "type": "object"
      },
      "createcard__CardKind": {
        "enum": [
          "debit",
          "credit"
        ],
        "type": "string"
      },
      "createcard__CardStatus": {
        "enum": [
          "active",
          "frozen",
          "cancelled",
          "inactive",
          "expired",
          "suspended",
          "singleUseConsumed"
        ],
        "type": "string"
      },
      "createcard__CardType": {
        "enum": [
          "virtual",
          "physical"
        ],
        "type": "string"
      },
      "createcard__CreateCardRequest": {
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__TransactionPartyId"
              },
              {
                "description": " The account the new card will draw funds from. Required when @kind@ is\n @debit@; list available account IDs via @GET https:\\/\\/api.mercury.com\\/api\\/v1\\/accounts@\n (for debit card creation, the accountId must be associated with a checking account).\n Optional when @kind@ is @credit@; omit to use your organization's Mercury\n credit account, or pass the credit accountId from @GET https:\\/\\/api.mercury.com\\/api\\/v1\\/credit@."
              }
            ],
            "nullable": true
          },
          "cardConfiguration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__CardConfiguration"
              },
              {
                "description": " Optional card configuration (single-use, agent, etc.)"
              }
            ],
            "nullable": true
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__CardKind"
              },
              {
                "description": " Whether to issue a debit or credit card."
              }
            ]
          },
          "nickname": {
            "description": " Optional user-assigned label for the card.",
            "nullable": true,
            "type": "string"
          },
          "spendLimit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__CreateSpendLimit"
              },
              {
                "description": " Spending controls to apply at issuance."
              }
            ],
            "nullable": true
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__CreateCardType"
              },
              {
                "description": " The type of card to issue."
              }
            ]
          },
          "userId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__UserId"
              },
              {
                "description": " The user to assign as the cardholder."
              }
            ]
          }
        },
        "required": [
          "userId",
          "type",
          "kind"
        ],
        "type": "object"
      },
      "createcard__CreateCardType": {
        "enum": [
          "virtual"
        ],
        "type": "string"
      },
      "createcard__CreateSpendLimit": {
        "properties": {
          "amountCents": {
            "description": " Maximum total spend allowed per interval, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__SpendLimitInterval"
              },
              {
                "description": " Rolling window the limit applies to."
              }
            ]
          }
        },
        "required": [
          "amountCents",
          "interval"
        ],
        "type": "object"
      },
      "createcard__MerchantId": {
        "format": "uuid",
        "type": "string"
      },
      "createcard__MerchantInfo": {
        "description": " Information about a merchant that can be used for spend controls like merchant locking.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__MerchantId"
              }
            ]
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "createcard__MercuryCategory": {
        "enum": [
          "Other",
          "Advertising",
          "Airlines",
          "AlcoholAndBars",
          "BooksAndNewspaper",
          "CarRental",
          "Charity",
          "Clothing",
          "Conferences",
          "Education",
          "Electronics",
          "Entertainment",
          "FacilitiesExpenses",
          "Fees",
          "FoodDelivery",
          "FuelAndGas",
          "Gambling",
          "GovernmentServices",
          "Grocery",
          "GroundTransportation",
          "Insurance",
          "InternetAndTelephone",
          "Legal",
          "Lodging",
          "Medical",
          "Memberships",
          "OfficeSupplies",
          "OtherTravel",
          "Parking",
          "Political",
          "ProfessionalServices",
          "Restaurants",
          "Retail",
          "RideshareAndTaxis",
          "Shipping",
          "Software",
          "Taxes",
          "Utilities",
          "VehicleExpenses"
        ],
        "type": "string"
      },
      "createcard__PhysicalCardStatus": {
        "enum": [
          "inactive",
          "active",
          "locked"
        ],
        "type": "string"
      },
      "createcard__SpendLimit": {
        "description": " Spending controls applied to a card",
        "properties": {
          "amountCents": {
            "description": " Maximum total spend allowed per interval, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "atmAmountCents": {
            "description": " Maximum ATM withdrawal allowed per interval, in cents. Null for virtual\n cards and credit cards.",
            "minimum": 0,
            "nullable": true,
            "type": "integer"
          },
          "interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcard__SpendLimitInterval"
              },
              {
                "description": " Rolling window the limit applies to."
              }
            ]
          }
        },
        "required": [
          "amountCents",
          "interval"
        ],
        "type": "object"
      },
      "createcard__SpendLimitInterval": {
        "enum": [
          "daily",
          "weekly",
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "createcard__SpendLimitType": {
        "enum": [
          "cardLimit",
          "budgets"
        ],
        "type": "string"
      },
      "createcard__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "createcard__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "createcard__UserId": {
        "description": "ID for the user",
        "format": "uuid",
        "type": "string"
      },
      "createcategory__CategoryData": {
        "description": " Represents an expense category for transaction classification.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcategory__CategoryId"
              },
              {
                "description": " The ID of the category"
              }
            ]
          },
          "name": {
            "description": " The name of the category",
            "type": "string"
          },
          "visibleForCardSpend": {
            "description": " Whether this category is applicable to card transactions",
            "type": "boolean"
          },
          "visibleForOther": {
            "description": " Whether this category is applicable to all other transaction kinds",
            "type": "boolean"
          },
          "visibleForReimbursements": {
            "description": " Whether this category is applicable to expense reimbursement transactions",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "visibleForReimbursements",
          "visibleForCardSpend",
          "visibleForOther"
        ],
        "type": "object"
      },
      "createcategory__CategoryId": {
        "description": "ID for the category",
        "format": "uuid",
        "type": "string"
      },
      "createcategory__CategoryName": {
        "type": "string"
      },
      "createcategory__CreateCategoryApiRequest": {
        "description": " Request body for creating a new expense category",
        "properties": {
          "name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcategory__CategoryName"
              },
              {
                "description": " Name of the category"
              }
            ]
          },
          "visibleForCardSpend": {
            "description": " Whether this category is applicable to card transactions",
            "type": "boolean"
          },
          "visibleForOther": {
            "description": " Whether this category is applicable to all other transaction kinds",
            "type": "boolean"
          },
          "visibleForReimbursements": {
            "description": " Whether this category is applicable to expense reimbursement transactions",
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "visibleForReimbursements",
          "visibleForCardSpend",
          "visibleForOther"
        ],
        "type": "object"
      },
      "createcustomer__ApiV1ArCustomerAddress": {
        "description": " Customer address information for Accounts Receivable API",
        "properties": {
          "address1": {
            "description": " Primary street address line.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "address2": {
            "description": " Secondary street address line (optional).",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "city": {
            "description": " City name.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcustomer__ISO3166Alpha2"
              },
              {
                "description": " Two-letter country code (ISO 3166-1 alpha-2)."
              }
            ]
          },
          "postalCode": {
            "description": " Postal or ZIP code",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcustomer__Region"
              },
              {
                "description": " State, province, or region."
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "createcustomer__ApiV1ArCustomerAddressInput": {
        "description": " Address input for creating or updating customers",
        "properties": {
          "address1": {
            "description": " Primary street address line.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "address2": {
            "description": " Secondary street address line (optional).",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "city": {
            "description": " City name.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcustomer__ISO3166Alpha2"
              },
              {
                "description": " Two-letter country code (ISO 3166-1 alpha-2)."
              }
            ]
          },
          "name": {
            "description": " The mailing name of the address.",
            "type": "string"
          },
          "postalCode": {
            "description": " Postal or ZIP code.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcustomer__Region"
              },
              {
                "description": " Either a two-letter US state code i.e. \"CA\" for California or a free-form identification of a particular region worldwide."
              }
            ]
          }
        },
        "required": [
          "name",
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "createcustomer__ApiV1ArCustomerCreateRequest": {
        "description": " Request data to create a customer using the public api",
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcustomer__ApiV1ArCustomerAddressInput"
              },
              {
                "description": " The address for the customer."
              }
            ],
            "nullable": true
          },
          "email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcustomer__Email"
              },
              {
                "description": " The email address for the customer."
              }
            ]
          },
          "name": {
            "description": " The name of the customer.",
            "maxLength": 5000,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "name",
          "email"
        ],
        "type": "object"
      },
      "createcustomer__ApiV1ArCustomerResponseData": {
        "description": " Response data for Accounts Receivable customer API endpoints",
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcustomer__ApiV1ArCustomerAddress"
              },
              {
                "description": " Address of customer."
              }
            ],
            "nullable": true
          },
          "deletedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcustomer__UTCTime"
              },
              {
                "description": " The time the customer was deleted, if it was deleted."
              }
            ],
            "nullable": true
          },
          "email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcustomer__Email"
              },
              {
                "description": " Email of customer."
              }
            ]
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createcustomer__CustomerId"
              },
              {
                "description": " ArCustomerId"
              }
            ]
          },
          "name": {
            "description": " Name of customer.",
            "maxLength": 5000,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id",
          "email",
          "name"
        ],
        "type": "object"
      },
      "createcustomer__CustomerId": {
        "description": "The customer who will receive the invoice. Use the /api/v1/ar/customers endpoint to list your customers and find the corresponding id, or create a new customer first.",
        "format": "uuid",
        "type": "string"
      },
      "createcustomer__Email": {
        "type": "string"
      },
      "createcustomer__ISO3166Alpha2": {
        "type": "string"
      },
      "createcustomer__Region": {
        "type": "string"
      },
      "createcustomer__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "createinternaltransfer__AccountingSyncStatus": {
        "enum": [
          "pending",
          "reviewed",
          "syncing",
          "synced",
          "errored",
          "excluded"
        ],
        "type": "string"
      },
      "createinternaltransfer__AddressData": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__USState"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "address1",
          "city",
          "postalCode"
        ],
        "type": "object"
      },
      "createinternaltransfer__AddressWithoutName": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__ISO3166Alpha2"
              }
            ]
          },
          "postalCode": {
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__Region"
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "createinternaltransfer__CategoryData": {
        "description": " Represents an expense category for transaction classification.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__CategoryId"
              },
              {
                "description": " The ID of the category"
              }
            ]
          },
          "name": {
            "description": " The name of the category",
            "type": "string"
          },
          "visibleForCardSpend": {
            "description": " Whether this category is applicable to card transactions",
            "type": "boolean"
          },
          "visibleForOther": {
            "description": " Whether this category is applicable to all other transaction kinds",
            "type": "boolean"
          },
          "visibleForReimbursements": {
            "description": " Whether this category is applicable to expense reimbursement transactions",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "visibleForReimbursements",
          "visibleForCardSpend",
          "visibleForOther"
        ],
        "type": "object"
      },
      "createinternaltransfer__CategoryId": {
        "description": "ID for the category",
        "format": "uuid",
        "type": "string"
      },
      "createinternaltransfer__CreditCardId": {
        "format": "uuid",
        "type": "string"
      },
      "createinternaltransfer__CreditCardInfo": {
        "properties": {
          "email": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__CreditCardId"
              },
              {
                "description": " Superseded by the flat `transaction.cardId`, which identifies the card on any card payment\n or refund without branching on debit vs credit. Retained for backwards compatibility; a formal\n (OpenAPI-level) deprecation will follow in a separate change."
              }
            ]
          },
          "paymentMethod": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "paymentMethod"
        ],
        "type": "object"
      },
      "createinternaltransfer__CurrencyCode": {
        "type": "string"
      },
      "createinternaltransfer__CurrencyExchangeInfo": {
        "properties": {
          "convertedFromAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "convertedFromCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__CurrencyCode"
              }
            ]
          },
          "convertedToAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "convertedToCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__CurrencyCode"
              }
            ]
          },
          "exchangeRate": {
            "description": " Exchange rate goes from \"from currency\" to \"to currency\"\n (ie from currency * exchange rate = to currency)",
            "multipleOf": 0.0001,
            "type": "number"
          },
          "feeAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "feePercentage": {
            "multipleOf": 0.0001,
            "type": "number"
          },
          "feeTransactionId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__TransactionMetadataId"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "convertedFromCurrency",
          "convertedToCurrency",
          "convertedFromAmount",
          "convertedToAmount",
          "feeAmount",
          "feePercentage",
          "exchangeRate"
        ],
        "type": "object"
      },
      "createinternaltransfer__DebitCardId": {
        "format": "uuid",
        "type": "string"
      },
      "createinternaltransfer__DebitCardInfo": {
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__DebitCardId"
              },
              {
                "description": " Superseded by the flat `transaction.cardId`, which identifies the card on any card payment\n or refund without branching on debit vs credit. Retained for backwards compatibility; a formal\n (OpenAPI-level) deprecation will follow in a separate change."
              }
            ]
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "createinternaltransfer__DomesticWireRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber"
        ],
        "type": "object"
      },
      "createinternaltransfer__ElectronicAccountType": {
        "enum": [
          "businessChecking",
          "businessSavings",
          "personalChecking",
          "personalSavings",
          "businessGeneralLedger",
          "personalGeneralLedger",
          "businessLoan",
          "personalLoan"
        ],
        "type": "string"
      },
      "createinternaltransfer__ElectronicRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "electronicAccountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__ElectronicAccountType"
              }
            ]
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "electronicAccountType"
        ],
        "type": "object"
      },
      "createinternaltransfer__GlAllocation": {
        "description": " A GL code allocation on a transaction — a GL code name paired with the amount\n allocated to it. When a transaction is fully categorized, the amounts across all\n allocations sum to the transaction total.",
        "properties": {
          "amount": {
            "description": " The amount allocated to this GL code",
            "multipleOf": 0.01,
            "type": "number"
          },
          "className": {
            "description": " The name of the class from the connected accounting integration, if assigned",
            "nullable": true,
            "type": "string"
          },
          "departmentName": {
            "description": " The name of the department from the connected accounting integration, if assigned",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": " Optional user-provided description for this allocation",
            "nullable": true,
            "type": "string"
          },
          "glCodeName": {
            "description": " The name of the GL code from the connected accounting integration",
            "type": "string"
          }
        },
        "required": [
          "glCodeName",
          "amount"
        ],
        "type": "object"
      },
      "createinternaltransfer__ISO3166Alpha2": {
        "type": "string"
      },
      "createinternaltransfer__InternalTransferAPIRequest": {
        "description": " Request body for POST /api/v1/transfer endpoint.\n Transfers funds between two depository, treasury, or investment accounts belonging to the same organization.",
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__PositiveDollar"
              }
            ]
          },
          "destinationAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__TransactionPartyId"
              }
            ]
          },
          "idempotencyKey": {
            "type": "string"
          },
          "note": {
            "nullable": true,
            "type": "string"
          },
          "sourceAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__TransactionPartyId"
              }
            ]
          }
        },
        "required": [
          "sourceAccountId",
          "destinationAccountId",
          "amount",
          "idempotencyKey"
        ],
        "type": "object"
      },
      "createinternaltransfer__InternalTransferAPIResponse": {
        "description": " Response for POST /api/v1/transfer endpoint.\n Returns both the credit and debit transactions for the transfer (depository, treasury, or investment).",
        "properties": {
          "creditTransaction": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__Transaction"
              }
            ]
          },
          "debitTransaction": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__Transaction"
              }
            ]
          }
        },
        "required": [
          "creditTransaction",
          "debitTransaction"
        ],
        "type": "object"
      },
      "createinternaltransfer__InternationalWireAustraliaSpecificData": {
        "properties": {
          "bsbCode": {
            "type": "string"
          }
        },
        "required": [
          "bsbCode"
        ],
        "type": "object"
      },
      "createinternaltransfer__InternationalWireBrazilSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "createinternaltransfer__InternationalWireCanadaSpecificData": {
        "properties": {
          "bankCode": {
            "type": "string"
          },
          "transitNumber": {
            "type": "string"
          }
        },
        "required": [
          "bankCode",
          "transitNumber"
        ],
        "type": "object"
      },
      "createinternaltransfer__InternationalWireChileSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "createinternaltransfer__InternationalWireColombiaSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "createinternaltransfer__InternationalWireCorrespondentInfo": {
        "properties": {
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "createinternaltransfer__InternationalWireCountrySpecificData": {
        "properties": {
          "australia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWireAustraliaSpecificData"
              }
            ],
            "nullable": true
          },
          "brazil": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWireBrazilSpecificData"
              }
            ],
            "nullable": true
          },
          "canada": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWireCanadaSpecificData"
              }
            ],
            "nullable": true
          },
          "chile": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWireChileSpecificData"
              }
            ],
            "nullable": true
          },
          "colombia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWireColombiaSpecificData"
              }
            ],
            "nullable": true
          },
          "dominicanRepublic": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWireDominicanRepublicSpecificData"
              }
            ],
            "nullable": true
          },
          "honduras": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWireHondurasSpecificData"
              }
            ],
            "nullable": true
          },
          "india": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWireIndiaSpecificData"
              }
            ],
            "nullable": true
          },
          "kazakhstan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWireKazakhstanSpecificData"
              }
            ],
            "nullable": true
          },
          "pakistan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWirePakistanSpecificData"
              }
            ],
            "nullable": true
          },
          "paraguay": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWireParaguaySpecificData"
              }
            ],
            "nullable": true
          },
          "philippines": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWirePhilippinesSpecificData"
              }
            ],
            "nullable": true
          },
          "russia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWireRussiaSpecificData"
              }
            ],
            "nullable": true
          },
          "southAfrica": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWireSouthAfricaSpecificData"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "createinternaltransfer__InternationalWireDominicanRepublicSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "createinternaltransfer__InternationalWireHondurasSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "createinternaltransfer__InternationalWireIndiaSpecificData": {
        "properties": {
          "ifscCode": {
            "type": "string"
          }
        },
        "required": [
          "ifscCode"
        ],
        "type": "object"
      },
      "createinternaltransfer__InternationalWireKazakhstanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "createinternaltransfer__InternationalWirePakistanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          },
          "legalIdType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__PakistaniLegalIdType"
              }
            ]
          }
        },
        "required": [
          "legalIdType",
          "legalId"
        ],
        "type": "object"
      },
      "createinternaltransfer__InternationalWireParaguaySpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "createinternaltransfer__InternationalWirePhilippinesSpecificData": {
        "properties": {
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "routingNumber"
        ],
        "type": "object"
      },
      "createinternaltransfer__InternationalWireRoutingInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankDetails": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__SwiftCodeData"
              }
            ],
            "nullable": true
          },
          "correspondentInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWireCorrespondentInfo"
              }
            ],
            "nullable": true
          },
          "countrySpecific": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWireCountrySpecificData"
              }
            ]
          },
          "emailAddress": {
            "nullable": true,
            "type": "string"
          },
          "iban": {
            "type": "string"
          },
          "phoneNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "type": "string"
          }
        },
        "required": [
          "iban",
          "swiftCode",
          "countrySpecific"
        ],
        "type": "object"
      },
      "createinternaltransfer__InternationalWireRussiaSpecificData": {
        "properties": {
          "inn": {
            "type": "string"
          }
        },
        "required": [
          "inn"
        ],
        "type": "object"
      },
      "createinternaltransfer__InternationalWireSouthAfricaSpecificData": {
        "properties": {
          "branchCode": {
            "type": "string"
          }
        },
        "required": [
          "branchCode"
        ],
        "type": "object"
      },
      "createinternaltransfer__MerchantData": {
        "description": " Merchant information for card transactions",
        "properties": {
          "amount": {
            "description": " The transaction amount in the smallest unit of the merchant's currency\n (e.g., cents for USD/EUR, yen for JPY, fils for BHD).\n For debits this is negative, for credits positive.\n Use 'merchantCurrency' to determine the appropriate decimal scaling:\n most currencies use 2 decimal places (divide by 100), but JPY uses 0\n (no division needed) and BHD/KWD/OMR use 3 (divide by 1000).\n This is useful for international transactions where the merchant charges in a\n currency different from the account currency. Nothing if not available.",
            "format": "int64",
            "maximum": 9223372036854776000,
            "minimum": -9223372036854776000,
            "nullable": true,
            "type": "integer"
          },
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__MercuryCategory"
              },
              {
                "description": " Mercury category for the merchant (e.g., \"Restaurants\", \"Software\")"
              }
            ],
            "nullable": true
          },
          "categoryCode": {
            "description": " 4-digit merchant category code (MCC) for card transactions",
            "nullable": true,
            "type": "string"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__CurrencyCode"
              },
              {
                "description": " ISO 4217 currency code of the merchant's currency (e.g., \"EUR\", \"GBP\", \"JPY\").\n Nothing if not available."
              }
            ],
            "nullable": true
          },
          "id": {
            "description": " Merchant ID for card transactions",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "createinternaltransfer__MercuryCategory": {
        "enum": [
          "Other",
          "Advertising",
          "Airlines",
          "AlcoholAndBars",
          "BooksAndNewspaper",
          "CarRental",
          "Charity",
          "Clothing",
          "Conferences",
          "Education",
          "Electronics",
          "Entertainment",
          "FacilitiesExpenses",
          "Fees",
          "FoodDelivery",
          "FuelAndGas",
          "Gambling",
          "GovernmentServices",
          "Grocery",
          "GroundTransportation",
          "Insurance",
          "InternetAndTelephone",
          "Legal",
          "Lodging",
          "Medical",
          "Memberships",
          "OfficeSupplies",
          "OtherTravel",
          "Parking",
          "Political",
          "ProfessionalServices",
          "Restaurants",
          "Retail",
          "RideshareAndTaxis",
          "Shipping",
          "Software",
          "Taxes",
          "Utilities",
          "VehicleExpenses"
        ],
        "type": "string"
      },
      "createinternaltransfer__MercuryCreditAccountStatementPeriodId": {
        "description": "ID for the credit statement period",
        "format": "uuid",
        "type": "string"
      },
      "createinternaltransfer__PakistaniLegalIdType": {
        "enum": [
          "CNIC",
          "SNIC",
          "Passport",
          "NTN"
        ],
        "type": "string"
      },
      "createinternaltransfer__PositiveDollar": {
        "description": "A positive dollar amount with at least 1 cent.",
        "format": "double",
        "minimum": 0.01,
        "type": "number"
      },
      "createinternaltransfer__Region": {
        "type": "string"
      },
      "createinternaltransfer__RelatedTransactionData": {
        "description": " A Public API version of RelatedTransactionData.",
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__TransactionPartyId"
              }
            ]
          },
          "amount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__TransactionMetadataId"
              }
            ]
          },
          "relationKind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__TransactionRelationKind"
              }
            ]
          }
        },
        "required": [
          "id",
          "accountId",
          "relationKind",
          "amount"
        ],
        "type": "object"
      },
      "createinternaltransfer__SwiftBankAccountType": {
        "enum": [
          "checking",
          "savings"
        ],
        "type": "string"
      },
      "createinternaltransfer__SwiftCodeData": {
        "properties": {
          "bankCityState": {
            "type": "string"
          },
          "bankCountry": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__ISO3166Alpha2"
              }
            ]
          },
          "bankName": {
            "type": "string"
          }
        },
        "required": [
          "bankName",
          "bankCityState",
          "bankCountry"
        ],
        "type": "object"
      },
      "createinternaltransfer__Transaction": {
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__TransactionPartyId"
              },
              {
                "description": " The external-facing account identifier for the Mercury account that owns this transaction"
              }
            ]
          },
          "accountingStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__TransactionAccountingStatus"
              },
              {
                "description": " Review and sync status of this transaction for the connected accounting integration (e.g.\n QuickBooks, Xero, NetSuite). A transaction with no accounting activity is pending with no\n timestamps. Null if the caller is not authorized to read accounting status, if the\n organization has no active general ledger (no active Books or third-party ERP ledger), and\n on the responses of endpoints that create transactions or transfers."
              }
            ],
            "nullable": true
          },
          "amount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/createinternaltransfer__TransactionAttachment"
            },
            "type": "array"
          },
          "bankDescription": {
            "nullable": true,
            "type": "string"
          },
          "cardId": {
            "description": " Id of the card behind this transaction, present on card payments and refunds (debit or\n credit); null otherwise, including for card-related fee transactions. Fetch the card's details\n (kind, cardholder, last four, etc.) via the Cards API (`GET /cards/{cardId}`). Supersedes the\n kind-specific `details.creditCardInfo.id` / `details.debitCardInfo.id`.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "categoryData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__CategoryData"
              }
            ],
            "nullable": true
          },
          "checkNumber": {
            "description": " Present for check deposits and mailed checks; Nothing otherwise.",
            "nullable": true,
            "type": "string"
          },
          "compliantWithReceiptPolicy": {
            "type": "boolean"
          },
          "counterpartyId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__TransactionPartyId"
              }
            ]
          },
          "counterpartyName": {
            "type": "string"
          },
          "counterpartyNickname": {
            "nullable": true,
            "type": "string"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__UTCTime"
              }
            ]
          },
          "creditAccountPeriodId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__MercuryCreditAccountStatementPeriodId"
              }
            ],
            "nullable": true
          },
          "currencyExchangeInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__CurrencyExchangeInfo"
              }
            ],
            "nullable": true
          },
          "dashboardLink": {
            "type": "string"
          },
          "details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__TransactionMethodData"
              }
            ],
            "nullable": true
          },
          "estimatedDeliveryDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__UTCTime"
              }
            ]
          },
          "externalMemo": {
            "nullable": true,
            "type": "string"
          },
          "failedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__UTCTime"
              }
            ],
            "nullable": true
          },
          "feeId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__TransactionMetadataId"
              }
            ],
            "nullable": true
          },
          "generalLedgerCodeName": {
            "description": " Deprecated: use transactionGlAllocations instead. This field does not reflect GL codes\n assigned via Mercury auto-categorization rules. Preserved for backwards compatibility.",
            "nullable": true,
            "type": "string"
          },
          "glAllocations": {
            "description": " GL code allocations assigned to this transaction via a connected accounting software\n integration (e.g. QuickBooks, Xero, NetSuite). Each allocation has a GL code name and\n the amount allocated to it; amounts sum to the transaction total when the transaction is\n fully categorized. Empty if no GL codes have been assigned. Distinct from Mercury custom\n categories (see transactionCategoryData).",
            "items": {
              "$ref": "#/components/schemas/createinternaltransfer__GlAllocation"
            },
            "type": "array"
          },
          "hasGeneratedReceipt": {
            "type": "boolean"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__TransactionMetadataId"
              }
            ]
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__TransactionKind"
              }
            ]
          },
          "merchant": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__MerchantData"
              },
              {
                "description": " Merchant information for card transactions, including the merchant category code (MCC),\n merchant ID, Mercury category, and for international transactions, the amount and currency\n in the merchant's local currency. Nothing for non-card transactions."
              }
            ],
            "nullable": true
          },
          "mercuryCategory": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__MercuryCategory"
              }
            ],
            "nullable": true
          },
          "note": {
            "nullable": true,
            "type": "string"
          },
          "postedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__UTCTime"
              }
            ],
            "nullable": true
          },
          "reasonForFailure": {
            "nullable": true,
            "type": "string"
          },
          "relatedTransactions": {
            "items": {
              "$ref": "#/components/schemas/createinternaltransfer__RelatedTransactionData"
            },
            "type": "array"
          },
          "requestId": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__TransactionStatus"
              }
            ]
          },
          "trackingNumber": {
            "description": " Present for transactions that have tracking numbers (e.g., RTP, ACH, wires); Nothing otherwise.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "amount",
          "createdAt",
          "estimatedDeliveryDate",
          "status",
          "counterpartyId",
          "dashboardLink",
          "counterpartyName",
          "kind",
          "compliantWithReceiptPolicy",
          "hasGeneratedReceipt",
          "glAllocations",
          "attachments",
          "relatedTransactions",
          "accountId"
        ],
        "type": "object"
      },
      "createinternaltransfer__TransactionAccountingStatus": {
        "description": " A transaction's accounting review and sync status, for the accounting integration connected\n to the organization (e.g. QuickBooks, Xero, NetSuite).",
        "properties": {
          "erroredAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__UTCTime"
              },
              {
                "description": " When the sync of the transaction to the accounting integration failed. Null if it has not\n failed."
              }
            ],
            "nullable": true
          },
          "excludedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__UTCTime"
              },
              {
                "description": " When the transaction was excluded from accounting sync. Null if it is not excluded."
              }
            ],
            "nullable": true
          },
          "reviewedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__UTCTime"
              },
              {
                "description": " When the transaction was last marked as reviewed. Null if it has not been reviewed."
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__AccountingSyncStatus"
              },
              {
                "description": " Current review and sync status of the transaction. pending: not reviewed or synced yet,\n including transactions with no accounting activity. reviewed: marked as reviewed and ready to\n sync. syncing: a sync has started but not finished. synced: synced successfully. errored: the\n sync failed. excluded: excluded from accounting sync. When more than one applies, the first of\n excluded, errored, synced, syncing and reviewed wins."
              }
            ]
          },
          "syncStartedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__UTCTime"
              },
              {
                "description": " When a sync of the transaction to the accounting integration was started. This is the\n start of the sync, not its completion (see syncedAt). Null if no sync has been started."
              }
            ],
            "nullable": true
          },
          "syncedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__UTCTime"
              },
              {
                "description": " When the transaction finished syncing to the accounting integration successfully. Null if\n it has not finished syncing."
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "createinternaltransfer__TransactionAttachment": {
        "properties": {
          "attachmentType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__TransactionAttachmentType"
              }
            ]
          },
          "fileName": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "fileName",
          "url",
          "attachmentType"
        ],
        "type": "object"
      },
      "createinternaltransfer__TransactionAttachmentType": {
        "enum": [
          "checkImage",
          "receipt",
          "other"
        ],
        "type": "string"
      },
      "createinternaltransfer__TransactionKind": {
        "enum": [
          "externalTransfer",
          "internalTransfer",
          "outgoingPayment",
          "creditCardCredit",
          "creditCardTransaction",
          "debitCardCredit",
          "debitCardTransaction",
          "cardInternationalTransactionFee",
          "cardInternationalTransactionFeeRebate",
          "cardInternationalTransactionFeeReversal",
          "cardInternationalTransactionFeeRebateReversal",
          "incomingDomesticWire",
          "checkDeposit",
          "incomingInternationalWire",
          "treasuryTransfer",
          "currencyCloudReturn",
          "wireFee",
          "personalBankingSubscriptionFee",
          "billingEngineSubscriptionFee",
          "expenseReimbursement",
          "exogenousWireDrawdown",
          "interestPayment",
          "other"
        ],
        "type": "string"
      },
      "createinternaltransfer__TransactionMetadataId": {
        "description": "ID for this transaction",
        "format": "uuid",
        "type": "string"
      },
      "createinternaltransfer__TransactionMethodData": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__AddressData"
              }
            ],
            "nullable": true
          },
          "creditCardInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__CreditCardInfo"
              }
            ],
            "nullable": true
          },
          "debitCardInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__DebitCardInfo"
              }
            ],
            "nullable": true
          },
          "domesticWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__DomesticWireRoutingInfo"
              }
            ],
            "nullable": true
          },
          "electronicRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__ElectronicRoutingInfo"
              }
            ],
            "nullable": true
          },
          "internationalWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinternaltransfer__InternationalWireRoutingInfo"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "createinternaltransfer__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "createinternaltransfer__TransactionRelationKind": {
        "enum": [
          "ProvisionalCreditReversalToMerchantRefund",
          "MerchantRefundToProvisionalCreditReversal",
          "MerchantRefundToFraudulentCharge",
          "FraudulentChargeToMerchantRefund",
          "PaymentRefundToFailedPayment",
          "FailedPaymentToPaymentRefund",
          "GiftCompensationToOriginalTransaction",
          "FeePaymentToOriginalTransaction",
          "OriginalTransactionToFeePayment",
          "FeePaymentToFeeRebate",
          "FeeRebateToFeePayment",
          "FeePaymentToFeeReversal",
          "FeeReversalToFeePayment",
          "FeeRebateToFeeRebateReversal",
          "FeeRebateReversalToFeeRebate",
          "TreasurySplitLiquidation",
          "ProvisionalCreditToOriginalCharge",
          "OriginalChargeToProvisionalCredit",
          "FeeAtmReimbursementToAtmTransaction",
          "AtmTransactionToFeeAtmReimbursement",
          "AtmTransactionToAtmReimbursementReversal",
          "AtmReimbursementReversalToAtmTransaction",
          "ReturnToOriginalTransaction",
          "OriginalTransactionToReturn",
          "ProvisionalCreditToReversal",
          "ReversalToProvisionalCredit",
          "MerchantRefundToOriginalCharge",
          "OriginalChargeToMerchantRefund"
        ],
        "type": "string"
      },
      "createinternaltransfer__TransactionStatus": {
        "enum": [
          "pending",
          "sent",
          "cancelled",
          "failed",
          "reversed",
          "blocked"
        ],
        "type": "string"
      },
      "createinternaltransfer__USState": {
        "enum": [
          "AL",
          "AK",
          "AZ",
          "AR",
          "CA",
          "CO",
          "CT",
          "DE",
          "DC",
          "FL",
          "GA",
          "HI",
          "ID",
          "IL",
          "IN",
          "IA",
          "KS",
          "KY",
          "LA",
          "ME",
          "MD",
          "MA",
          "MI",
          "MN",
          "MS",
          "MO",
          "MT",
          "NE",
          "NV",
          "NH",
          "NJ",
          "NM",
          "NY",
          "NC",
          "ND",
          "OH",
          "OK",
          "OR",
          "PA",
          "RI",
          "SC",
          "SD",
          "TN",
          "TX",
          "UT",
          "VT",
          "VA",
          "WA",
          "WV",
          "WI",
          "WY"
        ],
        "type": "string"
      },
      "createinternaltransfer__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "createinvoice__ApiSendEmailOption": {
        "enum": [
          "DontSend",
          "SendNow"
        ],
        "type": "string"
      },
      "createinvoice__ApiV1ArInvoiceCreateRequest": {
        "description": " The request body to create an invoice.",
        "properties": {
          "achDebitEnabled": {
            "description": " Whether or not the invoice can be paid via ACH debit.",
            "type": "boolean"
          },
          "ccEmails": {
            "description": " Emails to be CCed on invoice notifications/reminders.",
            "items": {
              "$ref": "#/components/schemas/createinvoice__Email"
            },
            "type": "array"
          },
          "creditCardEnabled": {
            "description": " Whether or not the invoice can be paid via credit card. Requires Stripe to be setup for the Mercury account.",
            "type": "boolean"
          },
          "currencyCode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__CurrencyCode"
              },
              {
                "description": " ISO 4217 currency code for the invoice. Defaults to USD if not provided."
              }
            ],
            "nullable": true
          },
          "customerId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__CustomerId"
              },
              {
                "description": " Id of the customer the invoice was sent to."
              }
            ]
          },
          "destinationAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__TransactionPartyId"
              },
              {
                "description": " The Mercury account where invoice payments will be deposited. Use the /api/v1/accounts endpoint to list your accounts and find the corresponding id. Only checking and savings accounts are supported."
              }
            ]
          },
          "dueDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__Day"
              },
              {
                "description": " The due date the invoice should be paid by. YYYY-MM-DD"
              }
            ]
          },
          "internalNote": {
            "description": " Internal note for the invoice, visible by users in the organization but not visible to payers.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "invoiceDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__Day"
              },
              {
                "description": " The date of the invoice, set by the invoice creator and likely to be context specific to the type of transaction. For example, it could be a date a service was performed. YYYY-MM-DD"
              }
            ]
          },
          "invoiceNumber": {
            "description": " The payer facing invoice number/identifier.",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "lineItems": {
            "description": " The line items for the invoice",
            "items": {
              "$ref": "#/components/schemas/createinvoice__ApiV1ArLineItemData"
            },
            "type": "array"
          },
          "payerMemo": {
            "description": " Memo for the payer of the invoice.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "poNumber": {
            "description": " Purchase order number for the invoice, if applicable.",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "sendEmailOption": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__ApiSendEmailOption"
              },
              {
                "description": " Rules for emailing the new invoice to payers. Can be \"DontSend\" to skip sending or \"SendNow\" to send immediately. If omitted, defaults to sending immediately."
              }
            ],
            "nullable": true
          },
          "servicePeriodEndDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__Day"
              },
              {
                "description": " The end date for the service period this invoice covers, if applicable. YYYY-MM-DD"
              }
            ],
            "nullable": true
          },
          "servicePeriodStartDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__Day"
              },
              {
                "description": " The start date for the service period this invoice covers, if applicable. YYYY-MM-DD"
              }
            ],
            "nullable": true
          },
          "useRealAccountNumber": {
            "description": " Whether or not the invoice payment instructions will show the real account and routing number for the destination account or use virtual account numbers instead. Virtual accounts are safer and are preferred in most cases.",
            "type": "boolean"
          }
        },
        "required": [
          "dueDate",
          "invoiceDate",
          "customerId",
          "ccEmails",
          "destinationAccountId",
          "creditCardEnabled",
          "achDebitEnabled",
          "useRealAccountNumber",
          "lineItems"
        ],
        "type": "object"
      },
      "createinvoice__ApiV1ArInvoiceResponse": {
        "description": " The response type for an invoice in the api.",
        "properties": {
          "achDebitEnabled": {
            "description": " Whether or not the invoice can be paid via ach debit.",
            "type": "boolean"
          },
          "amount": {
            "description": " The total amount of the invoice line items plus taxes.",
            "multipleOf": 0.01,
            "type": "number"
          },
          "canceledAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__UTCTime"
              },
              {
                "description": " The time when the invoice was canceled."
              }
            ],
            "nullable": true
          },
          "ccEmails": {
            "description": " Emails to be CCed on invoice notifications/reminders.",
            "items": {
              "$ref": "#/components/schemas/createinvoice__Email"
            },
            "type": "array"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__UTCTime"
              },
              {
                "description": " The timestamp when the invoice was created."
              }
            ]
          },
          "creditCardEnabled": {
            "description": " Whether or not the invoice can be paid via credit card. Requires stripe to be\n setup for the Mercury account.",
            "type": "boolean"
          },
          "currencyCode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__CurrencyCode"
              },
              {
                "description": " ISO 4217 currency code for the invoice (e.g. \"USD\", \"EUR\")."
              }
            ]
          },
          "customerId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__CustomerId"
              },
              {
                "description": " Id of the customer the invoice was sent to."
              }
            ]
          },
          "destinationAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__TransactionPartyId"
              },
              {
                "description": " The Mercury account where invoice payments will be deposited. Use the /api/v1/accounts endpoint to list your accounts and find the corresponding id. Only checking and savings accounts are supported."
              }
            ]
          },
          "dueDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__Day"
              },
              {
                "description": " The due date the invoice should be paid by."
              }
            ]
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__InvoiceId"
              },
              {
                "description": " The ID of the invoice."
              }
            ]
          },
          "internalNote": {
            "description": " Internal note for the invoice, visible by users in the\n mercury organization but not visible to payers.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "invoiceDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__Day"
              },
              {
                "description": " The date of the invoice, set by the invoice creator\n and likely to be context specific to the type of transaction.\n i.e. it could be a date a service was performed, it does not need\n to be the date the invoice was created."
              }
            ]
          },
          "invoiceNumber": {
            "description": " The payer facing invoice number/identifier.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "lineItems": {
            "description": " The line items for the invoice.",
            "items": {
              "$ref": "#/components/schemas/createinvoice__ApiV1ArLineItemData"
            },
            "type": "array"
          },
          "payerMemo": {
            "description": " Memo for the payer of the invoice.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "poNumber": {
            "description": " Purchase order number for the invoice if applicable.",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "servicePeriodEndDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__Day"
              },
              {
                "description": " The end date for the service period this invoice covers, if applicable. YYYY-MM-DD"
              }
            ],
            "nullable": true
          },
          "servicePeriodStartDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__Day"
              },
              {
                "description": " The start date for the service period this invoice covers, if applicable. YYYY-MM-DD"
              }
            ],
            "nullable": true
          },
          "slug": {
            "description": " Public slug for an invoice. Used to construct the pay page URL\n as well as the URL to retrieve the PDF of the invoice.",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__PaymentLinkStatus"
              },
              {
                "description": " The status of the invoice."
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createinvoice__UTCTime"
              },
              {
                "description": " The timestamp when the invoice was updated."
              }
            ]
          },
          "useRealAccountNumber": {
            "description": " Whether or not the invoice payment instructions will show the real\n account and routing number for the destination account or use\n virtual account numbers instead.",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "dueDate",
          "invoiceDate",
          "invoiceNumber",
          "customerId",
          "ccEmails",
          "slug",
          "status",
          "amount",
          "currencyCode",
          "destinationAccountId",
          "creditCardEnabled",
          "achDebitEnabled",
          "useRealAccountNumber",
          "createdAt",
          "updatedAt",
          "lineItems"
        ],
        "type": "object"
      },
      "createinvoice__ApiV1ArLineItemData": {
        "description": " Data for an invoice line item",
        "properties": {
          "name": {
            "description": " the name of the line item",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "quantity": {
            "description": " the quantity of this item",
            "format": "double",
            "type": "number"
          },
          "salesTaxRate": {
            "description": " the sales tax applied to this item",
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "unitPrice": {
            "description": " the price of one unit of the item before sales tax",
            "multipleOf": 0.01,
            "type": "number"
          }
        },
        "required": [
          "name",
          "unitPrice",
          "quantity"
        ],
        "type": "object"
      },
      "createinvoice__CurrencyCode": {
        "type": "string"
      },
      "createinvoice__CustomerId": {
        "description": "The customer who will receive the invoice. Use the /api/v1/ar/customers endpoint to list your customers and find the corresponding id, or create a new customer first.",
        "format": "uuid",
        "type": "string"
      },
      "createinvoice__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "createinvoice__Email": {
        "type": "string"
      },
      "createinvoice__InvoiceId": {
        "description": "ID for the invoice.",
        "format": "uuid",
        "type": "string"
      },
      "createinvoice__PaymentLinkStatus": {
        "enum": [
          "Unpaid",
          "Paid",
          "Cancelled",
          "Processing"
        ],
        "type": "string"
      },
      "createinvoice__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "createinvoice__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "createproduct__ApiV1ArProductCreateRequest": {
        "description": " Request data to create a product catalog item using the public API",
        "properties": {
          "description": {
            "description": " Optional description of the product.",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": " Name of the product. Must be unique per organization in combination with the unit price.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "unitPrice": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createproduct__Dollar"
              },
              {
                "description": " Unit price of the product, in dollars."
              }
            ]
          }
        },
        "required": [
          "name",
          "unitPrice"
        ],
        "type": "object"
      },
      "createproduct__ApiV1ArProductResponseData": {
        "description": " A product catalog item for Accounts Receivable API endpoints",
        "properties": {
          "description": {
            "description": " Description of the product, if any.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createproduct__ProductId"
              },
              {
                "description": " ID of the product."
              }
            ]
          },
          "name": {
            "description": " Name of the product.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "unitPrice": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createproduct__Dollar"
              },
              {
                "description": " Unit price of the product, in dollars."
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createproduct__UTCTime"
              },
              {
                "description": " The time the product's current details were last set."
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "unitPrice",
          "updatedAt"
        ],
        "type": "object"
      },
      "createproduct__Dollar": {
        "description": "A dollar amount",
        "format": "double",
        "type": "number"
      },
      "createproduct__ProductId": {
        "description": "The ID of an invoicing product. Use the /api/v1/ar/products endpoint to list your products.",
        "format": "uuid",
        "type": "string"
      },
      "createproduct__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "createreceiptuploadurl__ApiV1ReceiptUploadUrlRequest": {
        "description": " Request a presigned URL to upload a receipt file.",
        "properties": {
          "fileName": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "fileName"
        ],
        "type": "object"
      },
      "createreceiptuploadurl__ApiV1ReceiptUploadUrlResponse": {
        "description": " The presigned upload URL plus the id of the receipt now being tracked. Upload\n the file to @upload@, then start matching via the match endpoint.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createreceiptuploadurl__ReceiptId"
              }
            ]
          },
          "upload": {
            "description": " The presigned URL to upload the receipt file to.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "upload"
        ],
        "type": "object"
      },
      "createreceiptuploadurl__ReceiptId": {
        "description": "ID for the receipt",
        "format": "uuid",
        "type": "string"
      },
      "createrecipient__AddRecipientRequest": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__AddressData"
              }
            ],
            "description": "Deprecated. Use checkInfo instead."
          },
          "checkInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__CheckInfoRaw"
              }
            ],
            "description": "Information needed to send a physical check."
          },
          "contactEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__Email"
              }
            ],
            "description": "Contact email address of the recipient"
          },
          "domesticWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__DomesticWireRoutingInfoRaw"
              }
            ],
            "description": "Information needed to send a domestic wire."
          },
          "electronicRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__ElectronicRoutingInfoRaw"
              }
            ],
            "description": "Information needed to send an ACH."
          },
          "emails": {
            "items": {
              "$ref": "#/components/schemas/createrecipient__Email"
            },
            "type": "array"
          },
          "name": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "nickname": {
            "maxLength": 299,
            "type": "string"
          },
          "realTimePaymentRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__RealTimePaymentRoutingInfoRaw"
              }
            ],
            "description": "Information needed to send a real-time payment."
          }
        },
        "required": [
          "name",
          "emails"
        ],
        "type": "object"
      },
      "createrecipient__Address": {
        "properties": {
          "address1": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "address2": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "city": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__ISO3166Alpha2"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "postalCode": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__Region"
              }
            ]
          }
        },
        "required": [
          "name",
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "createrecipient__AddressData": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__USState"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "address1",
          "city",
          "postalCode"
        ],
        "type": "object"
      },
      "createrecipient__AddressWithoutName": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__ISO3166Alpha2"
              }
            ]
          },
          "postalCode": {
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__Region"
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "createrecipient__CheckInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__AddressWithoutName"
              }
            ]
          }
        },
        "required": [
          "address"
        ],
        "type": "object"
      },
      "createrecipient__CheckInfoRaw": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__AddressWithoutName"
              },
              {
                "description": " Mailing address for sending a physical check."
              }
            ]
          }
        },
        "required": [
          "address"
        ],
        "type": "object"
      },
      "createrecipient__DomesticWireRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber"
        ],
        "type": "object"
      },
      "createrecipient__DomesticWireRoutingInfoRaw": {
        "properties": {
          "accountNumber": {
            "description": " The account number of the bank account to use for domestic wire payments.",
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__AddressWithoutName"
              },
              {
                "description": " The address of the bank account to use for domestic wire payments. This has to be the recipient's legal address."
              }
            ]
          },
          "routingNumber": {
            "description": " The routing number of the bank account to use for domestic wire payments.",
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "address"
        ],
        "type": "object"
      },
      "createrecipient__ElectronicAccountType": {
        "enum": [
          "businessChecking",
          "businessSavings",
          "personalChecking",
          "personalSavings",
          "businessGeneralLedger",
          "personalGeneralLedger",
          "businessLoan",
          "personalLoan"
        ],
        "type": "string"
      },
      "createrecipient__ElectronicRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "electronicAccountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__ElectronicAccountType"
              }
            ]
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "electronicAccountType"
        ],
        "type": "object"
      },
      "createrecipient__ElectronicRoutingInfoRaw": {
        "properties": {
          "accountNumber": {
            "description": " The account number of the bank account to use for ACH payments.",
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__AddressWithoutName"
              },
              {
                "description": " The address of the bank account to use for ACH payments. This has to be the recipient's legal address."
              }
            ]
          },
          "electronicAccountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__ElectronicAccountType"
              },
              {
                "description": " The type of bank account to use for ACH payments."
              }
            ]
          },
          "routingNumber": {
            "description": " The routing number of the bank account to use for ACH payments.",
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "electronicAccountType",
          "address"
        ],
        "type": "object"
      },
      "createrecipient__Email": {
        "type": "string"
      },
      "createrecipient__ISO3166Alpha2": {
        "type": "string"
      },
      "createrecipient__InternationalWireAustraliaSpecificData": {
        "properties": {
          "bsbCode": {
            "type": "string"
          }
        },
        "required": [
          "bsbCode"
        ],
        "type": "object"
      },
      "createrecipient__InternationalWireBrazilSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "createrecipient__InternationalWireCanadaSpecificData": {
        "properties": {
          "bankCode": {
            "type": "string"
          },
          "transitNumber": {
            "type": "string"
          }
        },
        "required": [
          "bankCode",
          "transitNumber"
        ],
        "type": "object"
      },
      "createrecipient__InternationalWireChileSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "createrecipient__InternationalWireColombiaSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "createrecipient__InternationalWireCorrespondentInfo": {
        "properties": {
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "createrecipient__InternationalWireCountrySpecificData": {
        "properties": {
          "australia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWireAustraliaSpecificData"
              }
            ],
            "nullable": true
          },
          "brazil": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWireBrazilSpecificData"
              }
            ],
            "nullable": true
          },
          "canada": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWireCanadaSpecificData"
              }
            ],
            "nullable": true
          },
          "chile": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWireChileSpecificData"
              }
            ],
            "nullable": true
          },
          "colombia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWireColombiaSpecificData"
              }
            ],
            "nullable": true
          },
          "dominicanRepublic": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWireDominicanRepublicSpecificData"
              }
            ],
            "nullable": true
          },
          "honduras": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWireHondurasSpecificData"
              }
            ],
            "nullable": true
          },
          "india": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWireIndiaSpecificData"
              }
            ],
            "nullable": true
          },
          "kazakhstan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWireKazakhstanSpecificData"
              }
            ],
            "nullable": true
          },
          "pakistan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWirePakistanSpecificData"
              }
            ],
            "nullable": true
          },
          "paraguay": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWireParaguaySpecificData"
              }
            ],
            "nullable": true
          },
          "philippines": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWirePhilippinesSpecificData"
              }
            ],
            "nullable": true
          },
          "russia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWireRussiaSpecificData"
              }
            ],
            "nullable": true
          },
          "southAfrica": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWireSouthAfricaSpecificData"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "createrecipient__InternationalWireDominicanRepublicSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "createrecipient__InternationalWireHondurasSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "createrecipient__InternationalWireIndiaSpecificData": {
        "properties": {
          "ifscCode": {
            "type": "string"
          }
        },
        "required": [
          "ifscCode"
        ],
        "type": "object"
      },
      "createrecipient__InternationalWireKazakhstanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "createrecipient__InternationalWirePakistanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          },
          "legalIdType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__PakistaniLegalIdType"
              }
            ]
          }
        },
        "required": [
          "legalIdType",
          "legalId"
        ],
        "type": "object"
      },
      "createrecipient__InternationalWireParaguaySpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "createrecipient__InternationalWirePhilippinesSpecificData": {
        "properties": {
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "routingNumber"
        ],
        "type": "object"
      },
      "createrecipient__InternationalWireRoutingInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankDetails": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__SwiftCodeData"
              }
            ],
            "nullable": true
          },
          "correspondentInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWireCorrespondentInfo"
              }
            ],
            "nullable": true
          },
          "countrySpecific": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWireCountrySpecificData"
              }
            ]
          },
          "emailAddress": {
            "nullable": true,
            "type": "string"
          },
          "iban": {
            "type": "string"
          },
          "phoneNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "type": "string"
          }
        },
        "required": [
          "iban",
          "swiftCode",
          "countrySpecific"
        ],
        "type": "object"
      },
      "createrecipient__InternationalWireRussiaSpecificData": {
        "properties": {
          "inn": {
            "type": "string"
          }
        },
        "required": [
          "inn"
        ],
        "type": "object"
      },
      "createrecipient__InternationalWireSouthAfricaSpecificData": {
        "properties": {
          "branchCode": {
            "type": "string"
          }
        },
        "required": [
          "branchCode"
        ],
        "type": "object"
      },
      "createrecipient__PakistaniLegalIdType": {
        "enum": [
          "CNIC",
          "SNIC",
          "Passport",
          "NTN"
        ],
        "type": "string"
      },
      "createrecipient__PaymentMethod": {
        "enum": [
          "ach",
          "check",
          "domesticWire",
          "internationalWire",
          "realTimePayment"
        ],
        "type": "string"
      },
      "createrecipient__RealTimePaymentRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber"
        ],
        "type": "object"
      },
      "createrecipient__RealTimePaymentRoutingInfoRaw": {
        "description": " Routing information for real-time payments.",
        "properties": {
          "accountNumber": {
            "description": " The account number of the bank account to use for real-time payments.",
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__AddressWithoutName"
              },
              {
                "description": " The address of the bank account to use for real-time payments."
              }
            ]
          },
          "routingNumber": {
            "description": " The routing number of the bank account to use for real-time payments.",
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "address"
        ],
        "type": "object"
      },
      "createrecipient__RecipientAttachment": {
        "properties": {
          "fileName": {
            "description": " Name of the uploaded file",
            "type": "string"
          },
          "formType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__TaxFormType"
              },
              {
                "description": " The tax form type (W-9 for US persons, W-8BEN for foreign individuals, W-8BEN-E for foreign entities)"
              }
            ],
            "nullable": true
          },
          "uploadedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__UTCTime"
              },
              {
                "description": " Timestamp when the attachment was uploaded"
              }
            ]
          },
          "url": {
            "description": " Presigned URL to download the attachment (valid for 12 hours)",
            "type": "string"
          }
        },
        "required": [
          "fileName",
          "url",
          "uploadedAt"
        ],
        "type": "object"
      },
      "createrecipient__RecipientInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__Address"
              }
            ],
            "nullable": true
          },
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/createrecipient__RecipientAttachment"
            },
            "type": "array"
          },
          "checkInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__CheckInfo"
              }
            ],
            "nullable": true
          },
          "contactEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__Email"
              }
            ],
            "nullable": true
          },
          "dateLastPaid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__UTCTime"
              }
            ],
            "nullable": true
          },
          "defaultAddress": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "defaultPaymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__PaymentMethod"
              }
            ]
          },
          "domesticWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__DomesticWireRoutingInfo"
              }
            ],
            "nullable": true
          },
          "electronicRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__ElectronicRoutingInfo"
              }
            ],
            "nullable": true
          },
          "emails": {
            "items": {
              "$ref": "#/components/schemas/createrecipient__Email"
            },
            "type": "array"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__TransactionPartyId"
              }
            ]
          },
          "internationalWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__InternationalWireRoutingInfo"
              }
            ],
            "nullable": true
          },
          "inviteId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__Slug"
              }
            ],
            "nullable": true
          },
          "isBusiness": {
            "nullable": true,
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "nickname": {
            "nullable": true,
            "type": "string"
          },
          "realTimePaymentRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__RealTimePaymentRoutingInfo"
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__RecipientStatus"
              }
            ]
          }
        },
        "required": [
          "id",
          "status",
          "name",
          "emails",
          "defaultPaymentMethod",
          "attachments"
        ],
        "type": "object"
      },
      "createrecipient__RecipientStatus": {
        "enum": [
          "active",
          "deleted"
        ],
        "type": "string"
      },
      "createrecipient__Region": {
        "type": "string"
      },
      "createrecipient__Slug": {
        "type": "string"
      },
      "createrecipient__SwiftBankAccountType": {
        "enum": [
          "checking",
          "savings"
        ],
        "type": "string"
      },
      "createrecipient__SwiftCodeData": {
        "properties": {
          "bankCityState": {
            "type": "string"
          },
          "bankCountry": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipient__ISO3166Alpha2"
              }
            ]
          },
          "bankName": {
            "type": "string"
          }
        },
        "required": [
          "bankName",
          "bankCityState",
          "bankCountry"
        ],
        "type": "object"
      },
      "createrecipient__TaxFormType": {
        "enum": [
          "w9",
          "w8BEN",
          "w8BENE",
          "unknown"
        ],
        "type": "string"
      },
      "createrecipient__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "createrecipient__USState": {
        "enum": [
          "AL",
          "AK",
          "AZ",
          "AR",
          "CA",
          "CO",
          "CT",
          "DE",
          "DC",
          "FL",
          "GA",
          "HI",
          "ID",
          "IL",
          "IN",
          "IA",
          "KS",
          "KY",
          "LA",
          "ME",
          "MD",
          "MA",
          "MI",
          "MN",
          "MS",
          "MO",
          "MT",
          "NE",
          "NV",
          "NH",
          "NJ",
          "NM",
          "NY",
          "NC",
          "ND",
          "OH",
          "OK",
          "OR",
          "PA",
          "RI",
          "SC",
          "SD",
          "TN",
          "TX",
          "UT",
          "VT",
          "VA",
          "WA",
          "WV",
          "WI",
          "WY"
        ],
        "type": "string"
      },
      "createrecipient__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "createrecipientinvite__CreateRecipientInviteApiRequest": {
        "description": " Request body for creating a recipient invite.",
        "properties": {
          "contactEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipientinvite__Email"
              },
              {
                "description": " Contact email the invite is sent to. When 'recipientId' is present, updates the recipient's contact email to this value."
              }
            ]
          },
          "name": {
            "description": " Name the invite is created for. This field is required when 'recipientId' is absent.\n When 'recipientId' is present, this field is optional and updates the recipient's name to this value.",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "notes": {
            "description": " Optional notes shown to the recipient.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "organizationNameOnRequest": {
            "description": " Optional organization name to display on the request.",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "paymentMethods": {
            "description": " Payment methods the recipient may submit details for.",
            "items": {
              "$ref": "#/components/schemas/createrecipientinvite__PaymentMethod"
            },
            "minItems": 1,
            "type": "array"
          },
          "recipientId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipientinvite__TransactionPartyId"
              },
              {
                "description": " The recipient to send the invite to."
              }
            ],
            "nullable": true
          },
          "requireTaxDocument": {
            "description": " Whether the recipient must upload a tax document.",
            "type": "boolean"
          },
          "sendEmail": {
            "description": " When true, sends an Email to the invitee. When false, does not send an email to the invitee.",
            "type": "boolean"
          }
        },
        "required": [
          "contactEmail",
          "paymentMethods",
          "requireTaxDocument",
          "sendEmail"
        ],
        "type": "object"
      },
      "createrecipientinvite__Email": {
        "type": "string"
      },
      "createrecipientinvite__PaymentMethod": {
        "enum": [
          "ach",
          "check",
          "domesticWire",
          "internationalWire",
          "realTimePayment"
        ],
        "type": "string"
      },
      "createrecipientinvite__RecipientInviteApiResponse": {
        "properties": {
          "contactEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipientinvite__Email"
              },
              {
                "description": " Recipient contact email the invite was created for."
              }
            ]
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipientinvite__UTCTime"
              },
              {
                "description": " When the invite was created."
              }
            ]
          },
          "expiresAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipientinvite__UTCTime"
              },
              {
                "description": " When the invite expires, if it has an expiry."
              }
            ],
            "nullable": true
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipientinvite__RecipientInviteId"
              },
              {
                "description": " The invite's id, also embedded in 'onboardingUrl'."
              }
            ]
          },
          "name": {
            "description": " Recipient name the invite was created for.",
            "type": "string"
          },
          "notes": {
            "description": " Notes shown to the recipient, if any.",
            "nullable": true,
            "type": "string"
          },
          "onboardingUrl": {
            "description": " URL where the recipient submits their payment details.",
            "type": "string"
          },
          "paymentMethods": {
            "description": " Payment methods the recipient may submit details for.",
            "items": {
              "$ref": "#/components/schemas/createrecipientinvite__PaymentMethod"
            },
            "minItems": 1,
            "type": "array"
          },
          "recipientId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipientinvite__TransactionPartyId"
              },
              {
                "description": " The existing recipient this invite is for, if any."
              }
            ],
            "nullable": true
          },
          "requireTaxDocument": {
            "description": " Whether the recipient must upload a tax document.",
            "type": "boolean"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createrecipientinvite__RecipientInviteStatus"
              },
              {
                "description": " Status of the invite."
              }
            ]
          }
        },
        "required": [
          "id",
          "onboardingUrl",
          "status",
          "name",
          "contactEmail",
          "paymentMethods",
          "requireTaxDocument",
          "createdAt"
        ],
        "type": "object"
      },
      "createrecipientinvite__RecipientInviteId": {
        "description": "ID for the invite",
        "type": "string"
      },
      "createrecipientinvite__RecipientInviteStatus": {
        "enum": [
          "created",
          "completed",
          "expired",
          "declined"
        ],
        "type": "string"
      },
      "createrecipientinvite__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "createrecipientinvite__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "createtransaction__AccountingSyncStatus": {
        "enum": [
          "pending",
          "reviewed",
          "syncing",
          "synced",
          "errored",
          "excluded"
        ],
        "type": "string"
      },
      "createtransaction__AddressData": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__USState"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "address1",
          "city",
          "postalCode"
        ],
        "type": "object"
      },
      "createtransaction__AddressWithoutName": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__ISO3166Alpha2"
              }
            ]
          },
          "postalCode": {
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__Region"
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "createtransaction__CategoryData": {
        "description": " Represents an expense category for transaction classification.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__CategoryId"
              },
              {
                "description": " The ID of the category"
              }
            ]
          },
          "name": {
            "description": " The name of the category",
            "type": "string"
          },
          "visibleForCardSpend": {
            "description": " Whether this category is applicable to card transactions",
            "type": "boolean"
          },
          "visibleForOther": {
            "description": " Whether this category is applicable to all other transaction kinds",
            "type": "boolean"
          },
          "visibleForReimbursements": {
            "description": " Whether this category is applicable to expense reimbursement transactions",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "visibleForReimbursements",
          "visibleForCardSpend",
          "visibleForOther"
        ],
        "type": "object"
      },
      "createtransaction__CategoryId": {
        "description": "ID for the category",
        "format": "uuid",
        "type": "string"
      },
      "createtransaction__CreditCardId": {
        "format": "uuid",
        "type": "string"
      },
      "createtransaction__CreditCardInfo": {
        "properties": {
          "email": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__CreditCardId"
              },
              {
                "description": " Superseded by the flat `transaction.cardId`, which identifies the card on any card payment\n or refund without branching on debit vs credit. Retained for backwards compatibility; a formal\n (OpenAPI-level) deprecation will follow in a separate change."
              }
            ]
          },
          "paymentMethod": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "paymentMethod"
        ],
        "type": "object"
      },
      "createtransaction__CurrencyCode": {
        "type": "string"
      },
      "createtransaction__CurrencyExchangeInfo": {
        "properties": {
          "convertedFromAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "convertedFromCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__CurrencyCode"
              }
            ]
          },
          "convertedToAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "convertedToCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__CurrencyCode"
              }
            ]
          },
          "exchangeRate": {
            "description": " Exchange rate goes from \"from currency\" to \"to currency\"\n (ie from currency * exchange rate = to currency)",
            "multipleOf": 0.0001,
            "type": "number"
          },
          "feeAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "feePercentage": {
            "multipleOf": 0.0001,
            "type": "number"
          },
          "feeTransactionId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__TransactionMetadataId"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "convertedFromCurrency",
          "convertedToCurrency",
          "convertedFromAmount",
          "convertedToAmount",
          "feeAmount",
          "feePercentage",
          "exchangeRate"
        ],
        "type": "object"
      },
      "createtransaction__DebitCardId": {
        "format": "uuid",
        "type": "string"
      },
      "createtransaction__DebitCardInfo": {
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__DebitCardId"
              },
              {
                "description": " Superseded by the flat `transaction.cardId`, which identifies the card on any card payment\n or refund without branching on debit vs credit. Retained for backwards compatibility; a formal\n (OpenAPI-level) deprecation will follow in a separate change."
              }
            ]
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "createtransaction__DomesticWireRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber"
        ],
        "type": "object"
      },
      "createtransaction__ElectronicAccountType": {
        "enum": [
          "businessChecking",
          "businessSavings",
          "personalChecking",
          "personalSavings",
          "businessGeneralLedger",
          "personalGeneralLedger",
          "businessLoan",
          "personalLoan"
        ],
        "type": "string"
      },
      "createtransaction__ElectronicRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "electronicAccountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__ElectronicAccountType"
              }
            ]
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "electronicAccountType"
        ],
        "type": "object"
      },
      "createtransaction__GlAllocation": {
        "description": " A GL code allocation on a transaction — a GL code name paired with the amount\n allocated to it. When a transaction is fully categorized, the amounts across all\n allocations sum to the transaction total.",
        "properties": {
          "amount": {
            "description": " The amount allocated to this GL code",
            "multipleOf": 0.01,
            "type": "number"
          },
          "className": {
            "description": " The name of the class from the connected accounting integration, if assigned",
            "nullable": true,
            "type": "string"
          },
          "departmentName": {
            "description": " The name of the department from the connected accounting integration, if assigned",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": " Optional user-provided description for this allocation",
            "nullable": true,
            "type": "string"
          },
          "glCodeName": {
            "description": " The name of the GL code from the connected accounting integration",
            "type": "string"
          }
        },
        "required": [
          "glCodeName",
          "amount"
        ],
        "type": "object"
      },
      "createtransaction__ISO3166Alpha2": {
        "type": "string"
      },
      "createtransaction__InternationalWireAustraliaSpecificData": {
        "properties": {
          "bsbCode": {
            "type": "string"
          }
        },
        "required": [
          "bsbCode"
        ],
        "type": "object"
      },
      "createtransaction__InternationalWireBrazilSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "createtransaction__InternationalWireCanadaSpecificData": {
        "properties": {
          "bankCode": {
            "type": "string"
          },
          "transitNumber": {
            "type": "string"
          }
        },
        "required": [
          "bankCode",
          "transitNumber"
        ],
        "type": "object"
      },
      "createtransaction__InternationalWireChileSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "createtransaction__InternationalWireColombiaSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "createtransaction__InternationalWireCorrespondentInfo": {
        "properties": {
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "createtransaction__InternationalWireCountrySpecificData": {
        "properties": {
          "australia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWireAustraliaSpecificData"
              }
            ],
            "nullable": true
          },
          "brazil": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWireBrazilSpecificData"
              }
            ],
            "nullable": true
          },
          "canada": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWireCanadaSpecificData"
              }
            ],
            "nullable": true
          },
          "chile": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWireChileSpecificData"
              }
            ],
            "nullable": true
          },
          "colombia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWireColombiaSpecificData"
              }
            ],
            "nullable": true
          },
          "dominicanRepublic": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWireDominicanRepublicSpecificData"
              }
            ],
            "nullable": true
          },
          "honduras": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWireHondurasSpecificData"
              }
            ],
            "nullable": true
          },
          "india": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWireIndiaSpecificData"
              }
            ],
            "nullable": true
          },
          "kazakhstan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWireKazakhstanSpecificData"
              }
            ],
            "nullable": true
          },
          "pakistan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWirePakistanSpecificData"
              }
            ],
            "nullable": true
          },
          "paraguay": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWireParaguaySpecificData"
              }
            ],
            "nullable": true
          },
          "philippines": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWirePhilippinesSpecificData"
              }
            ],
            "nullable": true
          },
          "russia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWireRussiaSpecificData"
              }
            ],
            "nullable": true
          },
          "southAfrica": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWireSouthAfricaSpecificData"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "createtransaction__InternationalWireDominicanRepublicSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "createtransaction__InternationalWireHondurasSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "createtransaction__InternationalWireIndiaSpecificData": {
        "properties": {
          "ifscCode": {
            "type": "string"
          }
        },
        "required": [
          "ifscCode"
        ],
        "type": "object"
      },
      "createtransaction__InternationalWireKazakhstanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "createtransaction__InternationalWirePakistanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          },
          "legalIdType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__PakistaniLegalIdType"
              }
            ]
          }
        },
        "required": [
          "legalIdType",
          "legalId"
        ],
        "type": "object"
      },
      "createtransaction__InternationalWireParaguaySpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "createtransaction__InternationalWirePhilippinesSpecificData": {
        "properties": {
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "routingNumber"
        ],
        "type": "object"
      },
      "createtransaction__InternationalWireRoutingInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankDetails": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__SwiftCodeData"
              }
            ],
            "nullable": true
          },
          "correspondentInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWireCorrespondentInfo"
              }
            ],
            "nullable": true
          },
          "countrySpecific": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWireCountrySpecificData"
              }
            ]
          },
          "emailAddress": {
            "nullable": true,
            "type": "string"
          },
          "iban": {
            "type": "string"
          },
          "phoneNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "type": "string"
          }
        },
        "required": [
          "iban",
          "swiftCode",
          "countrySpecific"
        ],
        "type": "object"
      },
      "createtransaction__InternationalWireRussiaSpecificData": {
        "properties": {
          "inn": {
            "type": "string"
          }
        },
        "required": [
          "inn"
        ],
        "type": "object"
      },
      "createtransaction__InternationalWireSouthAfricaSpecificData": {
        "properties": {
          "branchCode": {
            "type": "string"
          }
        },
        "required": [
          "branchCode"
        ],
        "type": "object"
      },
      "createtransaction__MerchantData": {
        "description": " Merchant information for card transactions",
        "properties": {
          "amount": {
            "description": " The transaction amount in the smallest unit of the merchant's currency\n (e.g., cents for USD/EUR, yen for JPY, fils for BHD).\n For debits this is negative, for credits positive.\n Use 'merchantCurrency' to determine the appropriate decimal scaling:\n most currencies use 2 decimal places (divide by 100), but JPY uses 0\n (no division needed) and BHD/KWD/OMR use 3 (divide by 1000).\n This is useful for international transactions where the merchant charges in a\n currency different from the account currency. Nothing if not available.",
            "format": "int64",
            "maximum": 9223372036854776000,
            "minimum": -9223372036854776000,
            "nullable": true,
            "type": "integer"
          },
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__MercuryCategory"
              },
              {
                "description": " Mercury category for the merchant (e.g., \"Restaurants\", \"Software\")"
              }
            ],
            "nullable": true
          },
          "categoryCode": {
            "description": " 4-digit merchant category code (MCC) for card transactions",
            "nullable": true,
            "type": "string"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__CurrencyCode"
              },
              {
                "description": " ISO 4217 currency code of the merchant's currency (e.g., \"EUR\", \"GBP\", \"JPY\").\n Nothing if not available."
              }
            ],
            "nullable": true
          },
          "id": {
            "description": " Merchant ID for card transactions",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "createtransaction__MercuryCategory": {
        "enum": [
          "Other",
          "Advertising",
          "Airlines",
          "AlcoholAndBars",
          "BooksAndNewspaper",
          "CarRental",
          "Charity",
          "Clothing",
          "Conferences",
          "Education",
          "Electronics",
          "Entertainment",
          "FacilitiesExpenses",
          "Fees",
          "FoodDelivery",
          "FuelAndGas",
          "Gambling",
          "GovernmentServices",
          "Grocery",
          "GroundTransportation",
          "Insurance",
          "InternetAndTelephone",
          "Legal",
          "Lodging",
          "Medical",
          "Memberships",
          "OfficeSupplies",
          "OtherTravel",
          "Parking",
          "Political",
          "ProfessionalServices",
          "Restaurants",
          "Retail",
          "RideshareAndTaxis",
          "Shipping",
          "Software",
          "Taxes",
          "Utilities",
          "VehicleExpenses"
        ],
        "type": "string"
      },
      "createtransaction__MercuryCreditAccountStatementPeriodId": {
        "description": "ID for the credit statement period",
        "format": "uuid",
        "type": "string"
      },
      "createtransaction__PakistaniLegalIdType": {
        "enum": [
          "CNIC",
          "SNIC",
          "Passport",
          "NTN"
        ],
        "type": "string"
      },
      "createtransaction__PositiveDollar": {
        "description": "A positive dollar amount with at least 1 cent.",
        "format": "double",
        "minimum": 0.01,
        "type": "number"
      },
      "createtransaction__PostTransactionAPIRequest": {
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__PositiveDollar"
              }
            ],
            "description": "Amount of USD you want to send, must be a positive number."
          },
          "duplicateCheckOverride": {
            "description": "Set to true to skip the duplicate payment check. By default, payments are blocked if the same account sent the same amount to the same recipient with the same payment method in the last 24 hours, even when the idempotency key is different. Use this field only when you intentionally send a repeat payment.",
            "type": "boolean"
          },
          "externalMemo": {
            "description": "Optional external memo",
            "maxLength": 299,
            "type": "string"
          },
          "idempotencyKey": {
            "description": "Unique string identifying the transaction",
            "type": "string"
          },
          "note": {
            "description": "Optional note",
            "type": "string"
          },
          "paymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__PostTransactionPaymentMethod"
              }
            ],
            "description": "If domesticWire is used, then the purpose field is required."
          },
          "purpose": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__PostTransactionSendMoneyPurpose"
              }
            ],
            "description": "Purpose of payment with category and optional additional info. Required when paymentMethod is 'domesticWire'."
          },
          "recipientId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__TransactionPartyId"
              }
            ],
            "description": "Recipient ID from the /recipients endpoint."
          }
        },
        "required": [
          "recipientId",
          "amount",
          "paymentMethod",
          "idempotencyKey"
        ],
        "type": "object"
      },
      "createtransaction__PostTransactionPaymentMethod": {
        "enum": [
          "ach",
          "check",
          "domesticWire",
          "realTimePayment"
        ],
        "type": "string"
      },
      "createtransaction__PostTransactionSendMoneyPurpose": {
        "description": " External API representation of SendMoneyPurpose.\n Only exposes the 'simple' field to decouple internal implementation from external API.",
        "properties": {
          "simple": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__SimplePurpose"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "createtransaction__Region": {
        "type": "string"
      },
      "createtransaction__RelatedTransactionData": {
        "description": " A Public API version of RelatedTransactionData.",
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__TransactionPartyId"
              }
            ]
          },
          "amount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__TransactionMetadataId"
              }
            ]
          },
          "relationKind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__TransactionRelationKind"
              }
            ]
          }
        },
        "required": [
          "id",
          "accountId",
          "relationKind",
          "amount"
        ],
        "type": "object"
      },
      "createtransaction__SimplePurpose": {
        "properties": {
          "additionalInfo": {
            "description": "Additional information. Required for: Vendor (vendor name), Contractor (contractor name), Other (payment description). Optional for Subsidiary (subsidiary name). Not accepted for any other categories.",
            "type": "string"
          },
          "category": {
            "description": "Payment category.",
            "enum": [
              "employee",
              "landlord",
              "vendor",
              "contractor",
              "subsidiary",
              "transferToMyExternalAccount",
              "familyMemberOrFriend",
              "forGoodsOrServices",
              "angelInvestment",
              "savingsOrInvestments",
              "expenses",
              "travel",
              "other"
            ],
            "type": "string"
          }
        },
        "required": [
          "category"
        ],
        "type": "object"
      },
      "createtransaction__SwiftBankAccountType": {
        "enum": [
          "checking",
          "savings"
        ],
        "type": "string"
      },
      "createtransaction__SwiftCodeData": {
        "properties": {
          "bankCityState": {
            "type": "string"
          },
          "bankCountry": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__ISO3166Alpha2"
              }
            ]
          },
          "bankName": {
            "type": "string"
          }
        },
        "required": [
          "bankName",
          "bankCityState",
          "bankCountry"
        ],
        "type": "object"
      },
      "createtransaction__Transaction": {
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__TransactionPartyId"
              },
              {
                "description": " The external-facing account identifier for the Mercury account that owns this transaction"
              }
            ]
          },
          "accountingStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__TransactionAccountingStatus"
              },
              {
                "description": " Review and sync status of this transaction for the connected accounting integration (e.g.\n QuickBooks, Xero, NetSuite). A transaction with no accounting activity is pending with no\n timestamps. Null if the caller is not authorized to read accounting status, if the\n organization has no active general ledger (no active Books or third-party ERP ledger), and\n on the responses of endpoints that create transactions or transfers."
              }
            ],
            "nullable": true
          },
          "amount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/createtransaction__TransactionAttachment"
            },
            "type": "array"
          },
          "bankDescription": {
            "nullable": true,
            "type": "string"
          },
          "cardId": {
            "description": " Id of the card behind this transaction, present on card payments and refunds (debit or\n credit); null otherwise, including for card-related fee transactions. Fetch the card's details\n (kind, cardholder, last four, etc.) via the Cards API (`GET /cards/{cardId}`). Supersedes the\n kind-specific `details.creditCardInfo.id` / `details.debitCardInfo.id`.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "categoryData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__CategoryData"
              }
            ],
            "nullable": true
          },
          "checkNumber": {
            "description": " Present for check deposits and mailed checks; Nothing otherwise.",
            "nullable": true,
            "type": "string"
          },
          "compliantWithReceiptPolicy": {
            "type": "boolean"
          },
          "counterpartyId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__TransactionPartyId"
              }
            ]
          },
          "counterpartyName": {
            "type": "string"
          },
          "counterpartyNickname": {
            "nullable": true,
            "type": "string"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__UTCTime"
              }
            ]
          },
          "creditAccountPeriodId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__MercuryCreditAccountStatementPeriodId"
              }
            ],
            "nullable": true
          },
          "currencyExchangeInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__CurrencyExchangeInfo"
              }
            ],
            "nullable": true
          },
          "dashboardLink": {
            "type": "string"
          },
          "details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__TransactionMethodData"
              }
            ],
            "nullable": true
          },
          "estimatedDeliveryDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__UTCTime"
              }
            ]
          },
          "externalMemo": {
            "nullable": true,
            "type": "string"
          },
          "failedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__UTCTime"
              }
            ],
            "nullable": true
          },
          "feeId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__TransactionMetadataId"
              }
            ],
            "nullable": true
          },
          "generalLedgerCodeName": {
            "description": " Deprecated: use transactionGlAllocations instead. This field does not reflect GL codes\n assigned via Mercury auto-categorization rules. Preserved for backwards compatibility.",
            "nullable": true,
            "type": "string"
          },
          "glAllocations": {
            "description": " GL code allocations assigned to this transaction via a connected accounting software\n integration (e.g. QuickBooks, Xero, NetSuite). Each allocation has a GL code name and\n the amount allocated to it; amounts sum to the transaction total when the transaction is\n fully categorized. Empty if no GL codes have been assigned. Distinct from Mercury custom\n categories (see transactionCategoryData).",
            "items": {
              "$ref": "#/components/schemas/createtransaction__GlAllocation"
            },
            "type": "array"
          },
          "hasGeneratedReceipt": {
            "type": "boolean"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__TransactionMetadataId"
              }
            ]
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__TransactionKind"
              }
            ]
          },
          "merchant": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__MerchantData"
              },
              {
                "description": " Merchant information for card transactions, including the merchant category code (MCC),\n merchant ID, Mercury category, and for international transactions, the amount and currency\n in the merchant's local currency. Nothing for non-card transactions."
              }
            ],
            "nullable": true
          },
          "mercuryCategory": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__MercuryCategory"
              }
            ],
            "nullable": true
          },
          "note": {
            "nullable": true,
            "type": "string"
          },
          "postedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__UTCTime"
              }
            ],
            "nullable": true
          },
          "reasonForFailure": {
            "nullable": true,
            "type": "string"
          },
          "relatedTransactions": {
            "items": {
              "$ref": "#/components/schemas/createtransaction__RelatedTransactionData"
            },
            "type": "array"
          },
          "requestId": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__TransactionStatus"
              }
            ]
          },
          "trackingNumber": {
            "description": " Present for transactions that have tracking numbers (e.g., RTP, ACH, wires); Nothing otherwise.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "amount",
          "createdAt",
          "estimatedDeliveryDate",
          "status",
          "counterpartyId",
          "dashboardLink",
          "counterpartyName",
          "kind",
          "compliantWithReceiptPolicy",
          "hasGeneratedReceipt",
          "glAllocations",
          "attachments",
          "relatedTransactions",
          "accountId"
        ],
        "type": "object"
      },
      "createtransaction__TransactionAccountingStatus": {
        "description": " A transaction's accounting review and sync status, for the accounting integration connected\n to the organization (e.g. QuickBooks, Xero, NetSuite).",
        "properties": {
          "erroredAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__UTCTime"
              },
              {
                "description": " When the sync of the transaction to the accounting integration failed. Null if it has not\n failed."
              }
            ],
            "nullable": true
          },
          "excludedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__UTCTime"
              },
              {
                "description": " When the transaction was excluded from accounting sync. Null if it is not excluded."
              }
            ],
            "nullable": true
          },
          "reviewedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__UTCTime"
              },
              {
                "description": " When the transaction was last marked as reviewed. Null if it has not been reviewed."
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__AccountingSyncStatus"
              },
              {
                "description": " Current review and sync status of the transaction. pending: not reviewed or synced yet,\n including transactions with no accounting activity. reviewed: marked as reviewed and ready to\n sync. syncing: a sync has started but not finished. synced: synced successfully. errored: the\n sync failed. excluded: excluded from accounting sync. When more than one applies, the first of\n excluded, errored, synced, syncing and reviewed wins."
              }
            ]
          },
          "syncStartedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__UTCTime"
              },
              {
                "description": " When a sync of the transaction to the accounting integration was started. This is the\n start of the sync, not its completion (see syncedAt). Null if no sync has been started."
              }
            ],
            "nullable": true
          },
          "syncedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__UTCTime"
              },
              {
                "description": " When the transaction finished syncing to the accounting integration successfully. Null if\n it has not finished syncing."
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "createtransaction__TransactionAttachment": {
        "properties": {
          "attachmentType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__TransactionAttachmentType"
              }
            ]
          },
          "fileName": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "fileName",
          "url",
          "attachmentType"
        ],
        "type": "object"
      },
      "createtransaction__TransactionAttachmentType": {
        "enum": [
          "checkImage",
          "receipt",
          "other"
        ],
        "type": "string"
      },
      "createtransaction__TransactionKind": {
        "enum": [
          "externalTransfer",
          "internalTransfer",
          "outgoingPayment",
          "creditCardCredit",
          "creditCardTransaction",
          "debitCardCredit",
          "debitCardTransaction",
          "cardInternationalTransactionFee",
          "cardInternationalTransactionFeeRebate",
          "cardInternationalTransactionFeeReversal",
          "cardInternationalTransactionFeeRebateReversal",
          "incomingDomesticWire",
          "checkDeposit",
          "incomingInternationalWire",
          "treasuryTransfer",
          "currencyCloudReturn",
          "wireFee",
          "personalBankingSubscriptionFee",
          "billingEngineSubscriptionFee",
          "expenseReimbursement",
          "exogenousWireDrawdown",
          "interestPayment",
          "other"
        ],
        "type": "string"
      },
      "createtransaction__TransactionMetadataId": {
        "description": "ID for this transaction",
        "format": "uuid",
        "type": "string"
      },
      "createtransaction__TransactionMethodData": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__AddressData"
              }
            ],
            "nullable": true
          },
          "creditCardInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__CreditCardInfo"
              }
            ],
            "nullable": true
          },
          "debitCardInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__DebitCardInfo"
              }
            ],
            "nullable": true
          },
          "domesticWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__DomesticWireRoutingInfo"
              }
            ],
            "nullable": true
          },
          "electronicRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__ElectronicRoutingInfo"
              }
            ],
            "nullable": true
          },
          "internationalWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createtransaction__InternationalWireRoutingInfo"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "createtransaction__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "createtransaction__TransactionRelationKind": {
        "enum": [
          "ProvisionalCreditReversalToMerchantRefund",
          "MerchantRefundToProvisionalCreditReversal",
          "MerchantRefundToFraudulentCharge",
          "FraudulentChargeToMerchantRefund",
          "PaymentRefundToFailedPayment",
          "FailedPaymentToPaymentRefund",
          "GiftCompensationToOriginalTransaction",
          "FeePaymentToOriginalTransaction",
          "OriginalTransactionToFeePayment",
          "FeePaymentToFeeRebate",
          "FeeRebateToFeePayment",
          "FeePaymentToFeeReversal",
          "FeeReversalToFeePayment",
          "FeeRebateToFeeRebateReversal",
          "FeeRebateReversalToFeeRebate",
          "TreasurySplitLiquidation",
          "ProvisionalCreditToOriginalCharge",
          "OriginalChargeToProvisionalCredit",
          "FeeAtmReimbursementToAtmTransaction",
          "AtmTransactionToFeeAtmReimbursement",
          "AtmTransactionToAtmReimbursementReversal",
          "AtmReimbursementReversalToAtmTransaction",
          "ReturnToOriginalTransaction",
          "OriginalTransactionToReturn",
          "ProvisionalCreditToReversal",
          "ReversalToProvisionalCredit",
          "MerchantRefundToOriginalCharge",
          "OriginalChargeToMerchantRefund"
        ],
        "type": "string"
      },
      "createtransaction__TransactionStatus": {
        "enum": [
          "pending",
          "sent",
          "cancelled",
          "failed",
          "reversed",
          "blocked"
        ],
        "type": "string"
      },
      "createtransaction__USState": {
        "enum": [
          "AL",
          "AK",
          "AZ",
          "AR",
          "CA",
          "CO",
          "CT",
          "DE",
          "DC",
          "FL",
          "GA",
          "HI",
          "ID",
          "IL",
          "IN",
          "IA",
          "KS",
          "KY",
          "LA",
          "ME",
          "MD",
          "MA",
          "MI",
          "MN",
          "MS",
          "MO",
          "MT",
          "NE",
          "NV",
          "NH",
          "NJ",
          "NM",
          "NY",
          "NC",
          "ND",
          "OH",
          "OK",
          "OR",
          "PA",
          "RI",
          "SC",
          "SD",
          "TN",
          "TX",
          "UT",
          "VT",
          "VA",
          "WA",
          "WV",
          "WI",
          "WY"
        ],
        "type": "string"
      },
      "createtransaction__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "createwebhook__ApiWebhookEndpointId": {
        "description": "ID for the webhook",
        "format": "uuid",
        "type": "string"
      },
      "createwebhook__ApiWebhookResponse": {
        "description": " Webhook configuration details",
        "properties": {
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createwebhook__UTCTime"
              },
              {
                "description": " When the webhook was created"
              }
            ]
          },
          "eventTypes": {
            "description": " Optional array of event types this webhook is subscribed to. Nothing means all events.",
            "items": {
              "$ref": "#/components/schemas/createwebhook__WebhookEventType"
            },
            "nullable": true,
            "type": "array"
          },
          "filterPaths": {
            "description": " Optional array of resource field paths to filter events by. Nothing means no filtering.",
            "items": {
              "$ref": "#/components/schemas/createwebhook__ResourceField"
            },
            "nullable": true,
            "type": "array"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createwebhook__ApiWebhookEndpointId"
              },
              {
                "description": " Unique identifier for the webhook endpoint"
              }
            ]
          },
          "secret": {
            "description": " Webhook signing secret. Only returned on creation (POST), not on GET or UPDATE operations.",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createwebhook__ApiWebhookStatus"
              },
              {
                "description": " Current status of the webhook (active, paused, or disabled)"
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/createwebhook__UTCTime"
              },
              {
                "description": " When the webhook was last updated"
              }
            ]
          },
          "url": {
            "description": " The URL that will receive webhook POST requests",
            "type": "string"
          }
        },
        "required": [
          "id",
          "url",
          "status",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "createwebhook__ApiWebhookStatus": {
        "description": "The status of the webhook endpoint. 'active': delivering events normally. 'paused': paused by the user. 'disabled': automatically disabled by the system due to consecutive delivery failures. A disabled webhook can be reactivated by updating its status to 'active'.",
        "enum": [
          "active",
          "paused",
          "disabled"
        ],
        "type": "string"
      },
      "createwebhook__CreateWebhookParams": {
        "description": " Request body for creating a new webhook endpoint",
        "properties": {
          "eventTypes": {
            "description": " Optional array of event types to subscribe to. Nothing means subscribe to all event types.",
            "items": {
              "$ref": "#/components/schemas/createwebhook__WebhookEventType"
            },
            "nullable": true,
            "type": "array"
          },
          "filterPaths": {
            "description": " Optional array of resource field paths to filter events by. When specified, webhook events will only be sent when one of these fields changes. Nothing means no filtering (all events are sent).",
            "items": {
              "$ref": "#/components/schemas/createwebhook__ResourceField"
            },
            "nullable": true,
            "type": "array"
          },
          "url": {
            "description": " The URL to which webhook events will be delivered",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "createwebhook__ResourceField": {
        "enum": [
          "transaction.amount",
          "transaction.bankDescription",
          "transaction.categoryData",
          "transaction.customCategory",
          "transaction.customCategory.id",
          "transaction.customCategory.name",
          "transaction.mercuryCategory",
          "transaction.estimatedDeliveryDate",
          "transaction.externalMemo",
          "transaction.failedAt",
          "transaction.note",
          "transaction.postedAt",
          "transaction.reasonForFailure",
          "transaction.status",
          "checkingAccount.availableBalance",
          "checkingAccount.currentBalance",
          "checkingAccount.inFlightBalance",
          "savingsAccount.availableBalance",
          "savingsAccount.currentBalance",
          "savingsAccount.inFlightBalance",
          "treasuryAccount.availableBalance",
          "treasuryAccount.currentBalance",
          "treasuryAccount.inFlightBalance",
          "investmentAccount.availableBalance",
          "investmentAccount.currentBalance",
          "investmentAccount.inFlightBalance",
          "creditAccount.availableBalance",
          "creditAccount.currentBalance",
          "creditAccount.inFlightBalance"
        ],
        "type": "string"
      },
      "createwebhook__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "createwebhook__WebhookEventType": {
        "enum": [
          "transaction.created",
          "transaction.updated",
          "checkingAccount.balance.updated",
          "savingsAccount.balance.updated",
          "treasuryAccount.balance.updated",
          "investmentAccount.balance.updated",
          "creditAccount.balance.updated"
        ],
        "type": "string"
      },
      "editcategory__CategoryData": {
        "description": " Represents an expense category for transaction classification.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/editcategory__CategoryId"
              },
              {
                "description": " The ID of the category"
              }
            ]
          },
          "name": {
            "description": " The name of the category",
            "type": "string"
          },
          "visibleForCardSpend": {
            "description": " Whether this category is applicable to card transactions",
            "type": "boolean"
          },
          "visibleForOther": {
            "description": " Whether this category is applicable to all other transaction kinds",
            "type": "boolean"
          },
          "visibleForReimbursements": {
            "description": " Whether this category is applicable to expense reimbursement transactions",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "visibleForReimbursements",
          "visibleForCardSpend",
          "visibleForOther"
        ],
        "type": "object"
      },
      "editcategory__CategoryId": {
        "description": "ID for the category",
        "format": "uuid",
        "type": "string"
      },
      "editcategory__CategoryName": {
        "type": "string"
      },
      "editcategory__EditCategoryApiRequest": {
        "description": " Request body for editing an existing expense category. All fields are optional.",
        "properties": {
          "name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/editcategory__CategoryName"
              },
              {
                "description": " New name for the category"
              }
            ],
            "nullable": true
          },
          "visibleForCardSpend": {
            "description": " Whether this category is applicable to card transactions",
            "nullable": true,
            "type": "boolean"
          },
          "visibleForOther": {
            "description": " Whether this category is applicable to all other transaction kinds",
            "nullable": true,
            "type": "boolean"
          },
          "visibleForReimbursements": {
            "description": " Whether this category is applicable to expense reimbursement transactions",
            "nullable": true,
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "freezecard__Card": {
        "properties": {
          "accountId": {
            "description": " The Mercury account this card is associated with.",
            "type": "string"
          },
          "budgets": {
            "description": " One entry per active budget linked to this card and cardholder.\n Empty under cardLimit, or when this response has no active budget for the cardholder.",
            "items": {
              "$ref": "#/components/schemas/freezecard__CardBudget"
            },
            "type": "array"
          },
          "categoryLocks": {
            "description": " Mercury spend-category locks applied to this card, in no particular order. Empty when the card has no category restrictions.",
            "items": {
              "$ref": "#/components/schemas/freezecard__MercuryCategory"
            },
            "type": "array"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/freezecard__UTCTime"
              },
              {
                "description": " Timestamp when the card was issued."
              }
            ]
          },
          "expiration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/freezecard__CardExpiration"
              },
              {
                "description": " Month and year the card expires."
              }
            ]
          },
          "id": {
            "description": " Unique identifier for the card.",
            "format": "uuid",
            "type": "string"
          },
          "isAgentCard": {
            "description": " Whether the card is managed by the agentic spend-management agent. Only agent\n cards can have their full details revealed.",
            "type": "boolean"
          },
          "isSingleUse": {
            "description": " Whether the card closes automatically after its first approved purchase. A used\n single-use card reports a @singleUseConsumed@ status.",
            "type": "boolean"
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/freezecard__CardKind"
              },
              {
                "description": " Whether the card is a debit or credit card."
              }
            ]
          },
          "lastFour": {
            "description": " Last four digits of the card's primary account number (PAN).",
            "type": "string"
          },
          "merchantLock": {
            "allOf": [
              {
                "$ref": "#/components/schemas/freezecard__MerchantInfo"
              },
              {
                "description": " Merchant lock applied to this card. Present only when the card is locked to a single merchant; otherwise omitted."
              }
            ],
            "nullable": true
          },
          "nameOnCard": {
            "description": " Cardholder name printed on the card.",
            "type": "string"
          },
          "nickname": {
            "description": " Optional user-assigned label for the card.",
            "nullable": true,
            "type": "string"
          },
          "physicalCardStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/freezecard__PhysicalCardStatus"
              },
              {
                "description": " Activation state of a physical card. Null for virtual cards."
              }
            ],
            "nullable": true
          },
          "spendLimit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/freezecard__SpendLimit"
              },
              {
                "description": " Card-level spending controls. This is null when card-level limits are\n unavailable, including for credit cards governed by budgets. For debit\n cards, this includes the underlying card limits even when budgets govern\n purchase spending. In budget mode, the transaction limit does not gate\n purchases, but the ATM or cash limit can still apply to cash withdrawals."
              }
            ],
            "nullable": true
          },
          "spendLimitType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/freezecard__SpendLimitType"
              },
              {
                "description": " Whether card-level limits or budgets govern purchase spending."
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/freezecard__CardStatus"
              },
              {
                "description": " Current lifecycle state of the card."
              }
            ]
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/freezecard__CardType"
              },
              {
                "description": " Whether the card is virtual (digital-only) or physical (printed, supports ATM)."
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/freezecard__UTCTime"
              },
              {
                "description": " Timestamp of the last modification to the card or its settings."
              }
            ]
          },
          "userId": {
            "description": " Mercury User who owns the card.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "accountId",
          "createdAt",
          "updatedAt",
          "lastFour",
          "nameOnCard",
          "userId",
          "status",
          "type",
          "kind",
          "expiration",
          "spendLimitType",
          "budgets",
          "categoryLocks",
          "isAgentCard",
          "isSingleUse"
        ],
        "type": "object"
      },
      "freezecard__CardBudget": {
        "description": " Current-cycle limits for one budget linked to this card and cardholder.",
        "properties": {
          "amountCents": {
            "description": " The cardholder's spend limit for the current budget cycle, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "id": {
            "description": "Unique identifier for a budget",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": " Display name of the budget.",
            "type": "string"
          },
          "remainingAmountCents": {
            "description": " Current-cycle limit minus recorded spend, clamped at zero, in cents.\n Authorization also uses cached allocations and in-flight holds, so its available amount may differ.",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "amountCents",
          "remainingAmountCents"
        ],
        "type": "object"
      },
      "freezecard__CardExpiration": {
        "description": "Month and year the card expires.",
        "properties": {
          "month": {
            "description": "Calendar month.",
            "example": 8,
            "maximum": 12,
            "minimum": 1,
            "type": "integer"
          },
          "year": {
            "description": "Four-digit calendar year.",
            "example": 2026,
            "maximum": 2999,
            "minimum": 2000,
            "type": "integer"
          }
        },
        "required": [
          "month",
          "year"
        ],
        "type": "object"
      },
      "freezecard__CardKind": {
        "enum": [
          "debit",
          "credit"
        ],
        "type": "string"
      },
      "freezecard__CardStatus": {
        "enum": [
          "active",
          "frozen",
          "cancelled",
          "inactive",
          "expired",
          "suspended",
          "singleUseConsumed"
        ],
        "type": "string"
      },
      "freezecard__CardType": {
        "enum": [
          "virtual",
          "physical"
        ],
        "type": "string"
      },
      "freezecard__MerchantId": {
        "format": "uuid",
        "type": "string"
      },
      "freezecard__MerchantInfo": {
        "description": " Information about a merchant that can be used for spend controls like merchant locking.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/freezecard__MerchantId"
              }
            ]
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "freezecard__MercuryCategory": {
        "enum": [
          "Other",
          "Advertising",
          "Airlines",
          "AlcoholAndBars",
          "BooksAndNewspaper",
          "CarRental",
          "Charity",
          "Clothing",
          "Conferences",
          "Education",
          "Electronics",
          "Entertainment",
          "FacilitiesExpenses",
          "Fees",
          "FoodDelivery",
          "FuelAndGas",
          "Gambling",
          "GovernmentServices",
          "Grocery",
          "GroundTransportation",
          "Insurance",
          "InternetAndTelephone",
          "Legal",
          "Lodging",
          "Medical",
          "Memberships",
          "OfficeSupplies",
          "OtherTravel",
          "Parking",
          "Political",
          "ProfessionalServices",
          "Restaurants",
          "Retail",
          "RideshareAndTaxis",
          "Shipping",
          "Software",
          "Taxes",
          "Utilities",
          "VehicleExpenses"
        ],
        "type": "string"
      },
      "freezecard__PhysicalCardStatus": {
        "enum": [
          "inactive",
          "active",
          "locked"
        ],
        "type": "string"
      },
      "freezecard__SpendLimit": {
        "description": " Spending controls applied to a card",
        "properties": {
          "amountCents": {
            "description": " Maximum total spend allowed per interval, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "atmAmountCents": {
            "description": " Maximum ATM withdrawal allowed per interval, in cents. Null for virtual\n cards and credit cards.",
            "minimum": 0,
            "nullable": true,
            "type": "integer"
          },
          "interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/freezecard__SpendLimitInterval"
              },
              {
                "description": " Rolling window the limit applies to."
              }
            ]
          }
        },
        "required": [
          "amountCents",
          "interval"
        ],
        "type": "object"
      },
      "freezecard__SpendLimitInterval": {
        "enum": [
          "daily",
          "weekly",
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "freezecard__SpendLimitType": {
        "enum": [
          "cardLimit",
          "budgets"
        ],
        "type": "string"
      },
      "freezecard__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getaccountcards__AccountCard": {
        "description": " Deprecated account card representation, used by the @/v1/account\\/:id\\/cards@ endpoint.",
        "properties": {
          "cardId": {
            "type": "string"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountcards__UTCTime"
              }
            ]
          },
          "lastFourDigits": {
            "type": "string"
          },
          "nameOnCard": {
            "type": "string"
          },
          "network": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountcards__CardNetwork"
              }
            ]
          },
          "physicalCardStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountcards__PhysicalCardStatus"
              }
            ],
            "nullable": true
          },
          "spendLimit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountcards__SpendLimit"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountcards__CardStatus"
              }
            ]
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountcards__CardType"
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountcards__UTCTime"
              }
            ]
          },
          "userId": {
            "type": "string"
          }
        },
        "required": [
          "cardId",
          "nameOnCard",
          "lastFourDigits",
          "network",
          "status",
          "createdAt",
          "userId",
          "type",
          "spendLimit",
          "updatedAt"
        ],
        "type": "object"
      },
      "getaccountcards__AccountCardsResponse": {
        "properties": {
          "cards": {
            "items": {
              "$ref": "#/components/schemas/getaccountcards__AccountCard"
            },
            "type": "array"
          }
        },
        "required": [
          "cards"
        ],
        "type": "object"
      },
      "getaccountcards__CardNetwork": {
        "enum": [
          "visa",
          "mastercard"
        ],
        "type": "string"
      },
      "getaccountcards__CardStatus": {
        "enum": [
          "active",
          "frozen",
          "cancelled",
          "inactive",
          "expired",
          "suspended",
          "singleUseConsumed"
        ],
        "type": "string"
      },
      "getaccountcards__CardType": {
        "enum": [
          "virtual",
          "physical"
        ],
        "type": "string"
      },
      "getaccountcards__PhysicalCardStatus": {
        "enum": [
          "inactive",
          "active",
          "locked"
        ],
        "type": "string"
      },
      "getaccountcards__SpendLimit": {
        "description": " Spending controls applied to a card",
        "properties": {
          "amountCents": {
            "description": " Maximum total spend allowed per interval, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "atmAmountCents": {
            "description": " Maximum ATM withdrawal allowed per interval, in cents. Null for virtual\n cards and credit cards.",
            "minimum": 0,
            "nullable": true,
            "type": "integer"
          },
          "interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountcards__SpendLimitInterval"
              },
              {
                "description": " Rolling window the limit applies to."
              }
            ]
          }
        },
        "required": [
          "amountCents",
          "interval"
        ],
        "type": "object"
      },
      "getaccountcards__SpendLimitInterval": {
        "enum": [
          "daily",
          "weekly",
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "getaccountcards__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getaccounts__Account": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "availableBalance": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "canReceiveTransactions": {
            "nullable": true,
            "type": "boolean"
          },
          "canSendRealTimePayments": {
            "description": " Whether this account's partner bank supports sending real-time payments.\n Sending one also requires the recipient's routing number to be RTP-eligible.",
            "type": "boolean"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccounts__UTCTime"
              }
            ]
          },
          "currentBalance": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "dashboardLink": {
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccounts__TransactionPartyId"
              }
            ]
          },
          "kind": {
            "type": "string"
          },
          "legalBusinessName": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "nickname": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccounts__AccountStatus"
              }
            ]
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccounts__AccountType"
              }
            ]
          }
        },
        "required": [
          "id",
          "accountNumber",
          "routingNumber",
          "name",
          "status",
          "type",
          "createdAt",
          "availableBalance",
          "currentBalance",
          "kind",
          "canSendRealTimePayments",
          "legalBusinessName",
          "dashboardLink"
        ],
        "type": "object"
      },
      "getaccounts__AccountStatus": {
        "enum": [
          "active",
          "deleted",
          "pending",
          "archived"
        ],
        "type": "string"
      },
      "getaccounts__AccountType": {
        "enum": [
          "mercury",
          "external",
          "recipient"
        ],
        "type": "string"
      },
      "getaccounts__AccountsPaginatedResponse": {
        "description": " Paginated response containing a list of accounts.\n | Use the page cursor information to fetch additional pages of accounts.",
        "properties": {
          "accounts": {
            "description": " List of accounts in the current page",
            "items": {
              "$ref": "#/components/schemas/getaccounts__Account"
            },
            "type": "array"
          },
          "page": {
            "description": " Pagination information including cursors for navigating to next/previous pages",
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/getaccounts__TransactionPartyId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/getaccounts__TransactionPartyId"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "accounts",
          "page"
        ],
        "type": "object"
      },
      "getaccounts__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "getaccounts__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getaccountstatements__AccountStatementId": {
        "description": "ID for the account statement",
        "format": "uuid",
        "type": "string"
      },
      "getaccountstatements__AccountStatementTransaction": {
        "properties": {
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountstatements__UTCTime"
              }
            ]
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountstatements__TransactionMetadataId"
              }
            ]
          },
          "postedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountstatements__UTCTime"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "id",
          "createdAt"
        ],
        "type": "object"
      },
      "getaccountstatements__Address": {
        "properties": {
          "address1": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "address2": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "city": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountstatements__ISO3166Alpha2"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "postalCode": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountstatements__Region"
              }
            ]
          }
        },
        "required": [
          "name",
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "getaccountstatements__DepositoryAccountStatement": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "companyLegalAddress": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountstatements__Address"
              }
            ]
          },
          "companyLegalName": {
            "type": "string"
          },
          "downloadUrl": {
            "type": "string"
          },
          "ein": {
            "nullable": true,
            "type": "string"
          },
          "endDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountstatements__UTCTime"
              }
            ]
          },
          "endingBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountstatements__Dollar"
              }
            ]
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountstatements__AccountStatementId"
              }
            ]
          },
          "routingNumber": {
            "type": "string"
          },
          "startDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getaccountstatements__UTCTime"
              }
            ]
          },
          "transactions": {
            "items": {
              "$ref": "#/components/schemas/getaccountstatements__AccountStatementTransaction"
            },
            "type": "array"
          }
        },
        "required": [
          "startDate",
          "endDate",
          "accountNumber",
          "routingNumber",
          "companyLegalName",
          "companyLegalAddress",
          "endingBalance",
          "downloadUrl",
          "id",
          "transactions"
        ],
        "type": "object"
      },
      "getaccountstatements__DepositoryAccountStatementsPaginatedResponse": {
        "description": " Paginated response for depository account statements (v1 API)",
        "properties": {
          "page": {
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/getaccountstatements__AccountStatementId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/getaccountstatements__AccountStatementId"
              }
            },
            "type": "object"
          },
          "statements": {
            "items": {
              "$ref": "#/components/schemas/getaccountstatements__DepositoryAccountStatement"
            },
            "type": "array"
          }
        },
        "required": [
          "statements",
          "page"
        ],
        "type": "object"
      },
      "getaccountstatements__Dollar": {
        "description": "A dollar amount",
        "format": "double",
        "type": "number"
      },
      "getaccountstatements__ISO3166Alpha2": {
        "type": "string"
      },
      "getaccountstatements__Region": {
        "type": "string"
      },
      "getaccountstatements__TransactionMetadataId": {
        "description": "ID for this transaction",
        "format": "uuid",
        "type": "string"
      },
      "getaccountstatements__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getattachment__ApiV1ArAttachmentResponseData": {
        "description": " The object representing a file attachment for an invoice.\n The file is not a part of this object itself but information\n for where to download it will be in this object.",
        "properties": {
          "fileName": {
            "description": " The filename for the file.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getattachment__AttachmentId"
              },
              {
                "description": " The ID of the attachment object."
              }
            ]
          },
          "url": {
            "description": " The signed download URL for the file itself.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "url",
          "fileName"
        ],
        "type": "object"
      },
      "getattachment__AttachmentId": {
        "description": "ID for the attachment.",
        "format": "uuid",
        "type": "string"
      },
      "getautotransferrules__AutoTransferRule": {
        "description": " An active auto-transfer rule.",
        "properties": {
          "controlledAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getautotransferrules__TransactionPartyId"
              },
              {
                "description": " The account whose balance the rule manages."
              }
            ]
          },
          "description": {
            "description": " A sentence describing what the rule does.",
            "type": "string"
          },
          "details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getautotransferrules__AutoTransferRuleKind"
              },
              {
                "description": " The rule's kind and its kind-specific details."
              }
            ]
          },
          "frequency": {
            "description": " How often the rule runs, e.g. \"Every business day\".",
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getautotransferrules__UUID"
              },
              {
                "description": " The rule's ID. Editing a rule replaces it with a new version that has a new ID."
              }
            ]
          },
          "isPaused": {
            "description": " Whether the rule is paused.",
            "type": "boolean"
          },
          "name": {
            "description": " The rule's name, as shown in the Mercury dashboard.",
            "type": "string"
          },
          "nextTransferAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getautotransferrules__UTCTime"
              },
              {
                "description": " When the rule next runs, if scheduled."
              }
            ],
            "nullable": true
          },
          "nickname": {
            "description": " A nickname the user gave the rule, if any.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "controlledAccountId",
          "name",
          "description",
          "frequency",
          "isPaused",
          "details"
        ],
        "type": "object"
      },
      "getautotransferrules__AutoTransferRuleDistributeAmount": {
        "description": " Distributes fixed amounts from the controlled account to one or more reservoir accounts.",
        "properties": {
          "reservoirAccounts": {
            "description": " The reservoir accounts and the amount each receives.",
            "items": {
              "$ref": "#/components/schemas/getautotransferrules__AutoTransferRuleReservoirAmount"
            },
            "type": "array"
          }
        },
        "required": [
          "reservoirAccounts"
        ],
        "type": "object"
      },
      "getautotransferrules__AutoTransferRuleDistributePercentage": {
        "description": " Distributes a percentage of the controlled account's balance to one or more reservoir accounts.",
        "properties": {
          "reservoirAccounts": {
            "description": " The reservoir accounts and the percentage each receives.",
            "items": {
              "$ref": "#/components/schemas/getautotransferrules__AutoTransferRuleReservoirPercentage"
            },
            "type": "array"
          }
        },
        "required": [
          "reservoirAccounts"
        ],
        "type": "object"
      },
      "getautotransferrules__AutoTransferRuleKind": {
        "oneOf": [
          {
            "properties": {
              "contents": {
                "$ref": "#/components/schemas/getautotransferrules__AutoTransferRuleDistributeAmount"
              },
              "kind": {
                "enum": [
                  "distributeAmount"
                ],
                "type": "string"
              }
            },
            "required": [
              "kind",
              "contents"
            ],
            "title": "AutoTransferRuleKindDistributeAmount",
            "type": "object"
          },
          {
            "properties": {
              "contents": {
                "$ref": "#/components/schemas/getautotransferrules__AutoTransferRuleDistributePercentage"
              },
              "kind": {
                "enum": [
                  "distributePercentage"
                ],
                "type": "string"
              }
            },
            "required": [
              "kind",
              "contents"
            ],
            "title": "AutoTransferRuleKindDistributePercentage",
            "type": "object"
          },
          {
            "properties": {
              "contents": {
                "$ref": "#/components/schemas/getautotransferrules__AutoTransferRuleMaintainTargetBalance"
              },
              "kind": {
                "enum": [
                  "maintainTargetBalance"
                ],
                "type": "string"
              }
            },
            "required": [
              "kind",
              "contents"
            ],
            "title": "AutoTransferRuleKindMaintainTargetBalance",
            "type": "object"
          }
        ]
      },
      "getautotransferrules__AutoTransferRuleMaintainTargetBalance": {
        "description": " Keeps the controlled account's balance near a target by moving money between it and a reservoir account.\n When the balance moves outside the bounds, the rule moves exactly enough money to bring it back to\n targetBalance. A rule with both bounds equal to targetBalance moves money whenever the balance differs\n from the target.",
        "properties": {
          "lowerBound": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getautotransferrules__Dollar"
              },
              {
                "description": " When the controlled account's balance falls below this, money moves in from the reservoir account. Omitted when the rule never moves money in."
              }
            ],
            "nullable": true
          },
          "reservoirAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getautotransferrules__TransactionPartyId"
              },
              {
                "description": " The reservoir account money is moved to or from."
              }
            ]
          },
          "targetBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getautotransferrules__Dollar"
              },
              {
                "description": " The balance the rule brings the controlled account back to. Never below lowerBound or above upperBound."
              }
            ]
          },
          "upperBound": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getautotransferrules__Dollar"
              },
              {
                "description": " When the controlled account's balance rises above this, money moves out to the reservoir account. Omitted when the rule never moves money out."
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "reservoirAccountId",
          "targetBalance"
        ],
        "type": "object"
      },
      "getautotransferrules__AutoTransferRuleReservoirAmount": {
        "description": " A reservoir account and the fixed amount a distribute rule moves to it.",
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getautotransferrules__TransactionPartyId"
              },
              {
                "description": " The reservoir account."
              }
            ]
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getautotransferrules__Dollar"
              },
              {
                "description": " The amount moved to this account each time the rule runs."
              }
            ]
          }
        },
        "required": [
          "accountId",
          "amount"
        ],
        "type": "object"
      },
      "getautotransferrules__AutoTransferRuleReservoirPercentage": {
        "description": " A reservoir account and the share of the controlled account's balance a distribute rule moves to it.",
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getautotransferrules__TransactionPartyId"
              },
              {
                "description": " The reservoir account."
              }
            ]
          },
          "percentage": {
            "description": " The percentage, 0 through 100, of the controlled account's balance moved to this account.",
            "multipleOf": 0.01,
            "type": "number"
          }
        },
        "required": [
          "accountId",
          "percentage"
        ],
        "type": "object"
      },
      "getautotransferrules__AutoTransferRulesResponse": {
        "description": " A page of the organization's active auto-transfer rules.",
        "properties": {
          "page": {
            "description": " Cursors for navigating to the next and previous pages.",
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/getautotransferrules__UUID"
              },
              "previousPage": {
                "$ref": "#/components/schemas/getautotransferrules__UUID"
              }
            },
            "type": "object"
          },
          "rules": {
            "description": " Rules in the current page.",
            "items": {
              "$ref": "#/components/schemas/getautotransferrules__AutoTransferRule"
            },
            "type": "array"
          }
        },
        "required": [
          "rules",
          "page"
        ],
        "type": "object"
      },
      "getautotransferrules__Dollar": {
        "description": "A dollar amount",
        "format": "double",
        "type": "number"
      },
      "getautotransferrules__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "getautotransferrules__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getautotransferrules__UUID": {
        "example": "00000000-0000-0000-0000-000000000000",
        "format": "uuid",
        "type": "string"
      },
      "getbudget__ApiV1BudgetFrequency": {
        "enum": [
          "oneTime",
          "daily",
          "weekly",
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "getbudget__ApiV1BudgetPublishStatus": {
        "enum": [
          "draft",
          "published",
          "archived"
        ],
        "type": "string"
      },
      "getbudget__ApiV1SpendBudgetResponse": {
        "properties": {
          "amountPerUserPerPeriod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getbudget__NonNegativeDollar"
              }
            ],
            "nullable": true
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "endDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getbudget__Day"
              }
            ],
            "nullable": true
          },
          "frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getbudget__ApiV1BudgetFrequency"
              }
            ]
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getbudget__BudgetId"
              }
            ]
          },
          "name": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "startDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getbudget__Day"
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getbudget__ApiV1BudgetPublishStatus"
              }
            ]
          }
        },
        "required": [
          "id",
          "status",
          "frequency"
        ],
        "type": "object"
      },
      "getbudget__BudgetId": {
        "description": "ID for the budget",
        "format": "uuid",
        "type": "string"
      },
      "getbudget__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "getbudget__NonNegativeDollar": {
        "description": "A non-negative dollar amount",
        "format": "double",
        "minimum": 0,
        "type": "number"
      },
      "getbudgetexpenditures__ApiV1BudgetExpenditure": {
        "properties": {
          "assignedAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getbudgetexpenditures__Dollar"
              },
              {
                "description": " Absent when the full underlying spend is assigned."
              }
            ],
            "nullable": true
          },
          "expenseId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getbudgetexpenditures__ExpenseId"
              }
            ],
            "nullable": true
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getbudgetexpenditures__BudgetExpenditureId"
              }
            ]
          },
          "transactionId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getbudgetexpenditures__TransactionMetadataId"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "getbudgetexpenditures__ApiV1BudgetExpendituresResponse": {
        "properties": {
          "expenditures": {
            "items": {
              "$ref": "#/components/schemas/getbudgetexpenditures__ApiV1BudgetExpenditure"
            },
            "type": "array"
          },
          "page": {
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/getbudgetexpenditures__BudgetExpenditureId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/getbudgetexpenditures__BudgetExpenditureId"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "expenditures",
          "page"
        ],
        "type": "object"
      },
      "getbudgetexpenditures__BudgetExpenditureId": {
        "description": "ID for the budget expenditure",
        "format": "uuid",
        "type": "string"
      },
      "getbudgetexpenditures__Dollar": {
        "description": "A dollar amount",
        "format": "double",
        "type": "number"
      },
      "getbudgetexpenditures__ExpenseId": {
        "description": "ID for the expense",
        "format": "uuid",
        "type": "string"
      },
      "getbudgetexpenditures__TransactionMetadataId": {
        "description": "ID for this transaction",
        "format": "uuid",
        "type": "string"
      },
      "getbudgetmembers__ApiV1BudgetMember": {
        "properties": {
          "cycleRemaining": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getbudgetmembers__NonNegativeDollar"
              }
            ]
          },
          "cycleSpent": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getbudgetmembers__NonNegativeDollar"
              }
            ]
          },
          "email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getbudgetmembers__Email"
              }
            ]
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "orgUserId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getbudgetmembers__OrganizationUserId"
              }
            ]
          }
        },
        "required": [
          "orgUserId",
          "email",
          "firstName",
          "lastName",
          "cycleSpent",
          "cycleRemaining"
        ],
        "type": "object"
      },
      "getbudgetmembers__ApiV1BudgetMembersResponse": {
        "properties": {
          "members": {
            "items": {
              "$ref": "#/components/schemas/getbudgetmembers__ApiV1BudgetMember"
            },
            "type": "array"
          },
          "page": {
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/getbudgetmembers__OrganizationUserId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/getbudgetmembers__OrganizationUserId"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "members",
          "page"
        ],
        "type": "object"
      },
      "getbudgetmembers__Email": {
        "type": "string"
      },
      "getbudgetmembers__NonNegativeDollar": {
        "description": "A non-negative dollar amount",
        "format": "double",
        "minimum": 0,
        "type": "number"
      },
      "getbudgetmembers__OrganizationUserId": {
        "description": "ID for the organization user",
        "format": "uuid",
        "type": "string"
      },
      "getcard__Card": {
        "properties": {
          "accountId": {
            "description": " The Mercury account this card is associated with.",
            "type": "string"
          },
          "budgets": {
            "description": " One entry per active budget linked to this card and cardholder.\n Empty under cardLimit, or when this response has no active budget for the cardholder.",
            "items": {
              "$ref": "#/components/schemas/getcard__CardBudget"
            },
            "type": "array"
          },
          "categoryLocks": {
            "description": " Mercury spend-category locks applied to this card, in no particular order. Empty when the card has no category restrictions.",
            "items": {
              "$ref": "#/components/schemas/getcard__MercuryCategory"
            },
            "type": "array"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcard__UTCTime"
              },
              {
                "description": " Timestamp when the card was issued."
              }
            ]
          },
          "expiration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcard__CardExpiration"
              },
              {
                "description": " Month and year the card expires."
              }
            ]
          },
          "id": {
            "description": " Unique identifier for the card.",
            "format": "uuid",
            "type": "string"
          },
          "isAgentCard": {
            "description": " Whether the card is managed by the agentic spend-management agent. Only agent\n cards can have their full details revealed.",
            "type": "boolean"
          },
          "isSingleUse": {
            "description": " Whether the card closes automatically after its first approved purchase. A used\n single-use card reports a @singleUseConsumed@ status.",
            "type": "boolean"
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcard__CardKind"
              },
              {
                "description": " Whether the card is a debit or credit card."
              }
            ]
          },
          "lastFour": {
            "description": " Last four digits of the card's primary account number (PAN).",
            "type": "string"
          },
          "merchantLock": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcard__MerchantInfo"
              },
              {
                "description": " Merchant lock applied to this card. Present only when the card is locked to a single merchant; otherwise omitted."
              }
            ],
            "nullable": true
          },
          "nameOnCard": {
            "description": " Cardholder name printed on the card.",
            "type": "string"
          },
          "nickname": {
            "description": " Optional user-assigned label for the card.",
            "nullable": true,
            "type": "string"
          },
          "physicalCardStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcard__PhysicalCardStatus"
              },
              {
                "description": " Activation state of a physical card. Null for virtual cards."
              }
            ],
            "nullable": true
          },
          "spendLimit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcard__SpendLimit"
              },
              {
                "description": " Card-level spending controls. This is null when card-level limits are\n unavailable, including for credit cards governed by budgets. For debit\n cards, this includes the underlying card limits even when budgets govern\n purchase spending. In budget mode, the transaction limit does not gate\n purchases, but the ATM or cash limit can still apply to cash withdrawals."
              }
            ],
            "nullable": true
          },
          "spendLimitType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcard__SpendLimitType"
              },
              {
                "description": " Whether card-level limits or budgets govern purchase spending."
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcard__CardStatus"
              },
              {
                "description": " Current lifecycle state of the card."
              }
            ]
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcard__CardType"
              },
              {
                "description": " Whether the card is virtual (digital-only) or physical (printed, supports ATM)."
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcard__UTCTime"
              },
              {
                "description": " Timestamp of the last modification to the card or its settings."
              }
            ]
          },
          "userId": {
            "description": " Mercury User who owns the card.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "accountId",
          "createdAt",
          "updatedAt",
          "lastFour",
          "nameOnCard",
          "userId",
          "status",
          "type",
          "kind",
          "expiration",
          "spendLimitType",
          "budgets",
          "categoryLocks",
          "isAgentCard",
          "isSingleUse"
        ],
        "type": "object"
      },
      "getcard__CardBudget": {
        "description": " Current-cycle limits for one budget linked to this card and cardholder.",
        "properties": {
          "amountCents": {
            "description": " The cardholder's spend limit for the current budget cycle, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "id": {
            "description": "Unique identifier for a budget",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": " Display name of the budget.",
            "type": "string"
          },
          "remainingAmountCents": {
            "description": " Current-cycle limit minus recorded spend, clamped at zero, in cents.\n Authorization also uses cached allocations and in-flight holds, so its available amount may differ.",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "amountCents",
          "remainingAmountCents"
        ],
        "type": "object"
      },
      "getcard__CardExpiration": {
        "description": "Month and year the card expires.",
        "properties": {
          "month": {
            "description": "Calendar month.",
            "example": 8,
            "maximum": 12,
            "minimum": 1,
            "type": "integer"
          },
          "year": {
            "description": "Four-digit calendar year.",
            "example": 2026,
            "maximum": 2999,
            "minimum": 2000,
            "type": "integer"
          }
        },
        "required": [
          "month",
          "year"
        ],
        "type": "object"
      },
      "getcard__CardKind": {
        "enum": [
          "debit",
          "credit"
        ],
        "type": "string"
      },
      "getcard__CardStatus": {
        "enum": [
          "active",
          "frozen",
          "cancelled",
          "inactive",
          "expired",
          "suspended",
          "singleUseConsumed"
        ],
        "type": "string"
      },
      "getcard__CardType": {
        "enum": [
          "virtual",
          "physical"
        ],
        "type": "string"
      },
      "getcard__MerchantId": {
        "format": "uuid",
        "type": "string"
      },
      "getcard__MerchantInfo": {
        "description": " Information about a merchant that can be used for spend controls like merchant locking.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcard__MerchantId"
              }
            ]
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "getcard__MercuryCategory": {
        "enum": [
          "Other",
          "Advertising",
          "Airlines",
          "AlcoholAndBars",
          "BooksAndNewspaper",
          "CarRental",
          "Charity",
          "Clothing",
          "Conferences",
          "Education",
          "Electronics",
          "Entertainment",
          "FacilitiesExpenses",
          "Fees",
          "FoodDelivery",
          "FuelAndGas",
          "Gambling",
          "GovernmentServices",
          "Grocery",
          "GroundTransportation",
          "Insurance",
          "InternetAndTelephone",
          "Legal",
          "Lodging",
          "Medical",
          "Memberships",
          "OfficeSupplies",
          "OtherTravel",
          "Parking",
          "Political",
          "ProfessionalServices",
          "Restaurants",
          "Retail",
          "RideshareAndTaxis",
          "Shipping",
          "Software",
          "Taxes",
          "Utilities",
          "VehicleExpenses"
        ],
        "type": "string"
      },
      "getcard__PhysicalCardStatus": {
        "enum": [
          "inactive",
          "active",
          "locked"
        ],
        "type": "string"
      },
      "getcard__SpendLimit": {
        "description": " Spending controls applied to a card",
        "properties": {
          "amountCents": {
            "description": " Maximum total spend allowed per interval, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "atmAmountCents": {
            "description": " Maximum ATM withdrawal allowed per interval, in cents. Null for virtual\n cards and credit cards.",
            "minimum": 0,
            "nullable": true,
            "type": "integer"
          },
          "interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcard__SpendLimitInterval"
              },
              {
                "description": " Rolling window the limit applies to."
              }
            ]
          }
        },
        "required": [
          "amountCents",
          "interval"
        ],
        "type": "object"
      },
      "getcard__SpendLimitInterval": {
        "enum": [
          "daily",
          "weekly",
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "getcard__SpendLimitType": {
        "enum": [
          "cardLimit",
          "budgets"
        ],
        "type": "string"
      },
      "getcard__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getcreditaccountstatements__AccountStatement": {
        "properties": {
          "companyLegalAddress": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__Address"
              }
            ]
          },
          "companyLegalName": {
            "type": "string"
          },
          "details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__AccountStatementPayload"
              }
            ]
          },
          "downloadUrl": {
            "type": "string"
          },
          "ein": {
            "nullable": true,
            "type": "string"
          },
          "endDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__UTCTime"
              }
            ]
          },
          "endingBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__Dollar"
              }
            ]
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__AccountStatementId"
              }
            ]
          },
          "startDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__UTCTime"
              }
            ]
          },
          "transactions": {
            "items": {
              "$ref": "#/components/schemas/getcreditaccountstatements__AccountStatementTransaction"
            },
            "type": "array"
          }
        },
        "required": [
          "startDate",
          "endDate",
          "companyLegalName",
          "companyLegalAddress",
          "endingBalance",
          "details",
          "downloadUrl",
          "id",
          "transactions"
        ],
        "type": "object"
      },
      "getcreditaccountstatements__AccountStatementId": {
        "description": "ID for the account statement",
        "format": "uuid",
        "type": "string"
      },
      "getcreditaccountstatements__AccountStatementPayload": {
        "description": "Account statement payload with type discriminator",
        "properties": {
          "accountDetails": {
            "description": "Account-specific details based on accountType",
            "oneOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__DepositoryAccountStatementPayload"
              },
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__CreditAccountStatementPayload"
              }
            ]
          },
          "accountType": {
            "enum": [
              "depository",
              "credit"
            ],
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "accountDetails"
        ],
        "type": "object"
      },
      "getcreditaccountstatements__AccountStatementTransaction": {
        "properties": {
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__UTCTime"
              }
            ]
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__TransactionMetadataId"
              }
            ]
          },
          "postedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__UTCTime"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "id",
          "createdAt"
        ],
        "type": "object"
      },
      "getcreditaccountstatements__Address": {
        "properties": {
          "address1": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "address2": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "city": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__ISO3166Alpha2"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "postalCode": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__Region"
              }
            ]
          }
        },
        "required": [
          "name",
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "getcreditaccountstatements__CreditAccountStatementPayload": {
        "properties": {
          "creditLimit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__Dollar"
              }
            ]
          },
          "creditPeriodId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__MercuryCreditAccountStatementPeriodId"
              }
            ]
          },
          "dueDate": {
            "type": "string"
          },
          "startingBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__Dollar"
              }
            ]
          },
          "totalAutopayPayments": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__Dollar"
              }
            ]
          },
          "totalCashbackEarned": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__Dollar"
              }
            ]
          },
          "totalOneTimePayments": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__Dollar"
              }
            ]
          },
          "totalTransactions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcreditaccountstatements__Dollar"
              }
            ]
          }
        },
        "required": [
          "creditLimit",
          "totalTransactions",
          "totalOneTimePayments",
          "totalAutopayPayments",
          "totalCashbackEarned",
          "dueDate",
          "creditPeriodId",
          "startingBalance"
        ],
        "type": "object"
      },
      "getcreditaccountstatements__CreditAccountStatementsPaginatedResponse": {
        "properties": {
          "page": {
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/getcreditaccountstatements__AccountStatementId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/getcreditaccountstatements__AccountStatementId"
              }
            },
            "type": "object"
          },
          "statements": {
            "items": {
              "$ref": "#/components/schemas/getcreditaccountstatements__AccountStatement"
            },
            "type": "array"
          }
        },
        "required": [
          "statements",
          "page"
        ],
        "type": "object"
      },
      "getcreditaccountstatements__DepositoryAccountStatementPayload": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber"
        ],
        "type": "object"
      },
      "getcreditaccountstatements__Dollar": {
        "description": "A dollar amount",
        "format": "double",
        "type": "number"
      },
      "getcreditaccountstatements__ISO3166Alpha2": {
        "type": "string"
      },
      "getcreditaccountstatements__MercuryCreditAccountStatementPeriodId": {
        "description": "ID for the credit statement period",
        "format": "uuid",
        "type": "string"
      },
      "getcreditaccountstatements__Region": {
        "type": "string"
      },
      "getcreditaccountstatements__TransactionMetadataId": {
        "description": "ID for this transaction",
        "format": "uuid",
        "type": "string"
      },
      "getcreditaccountstatements__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getcustomer__ApiV1ArCustomerAddress": {
        "description": " Customer address information for Accounts Receivable API",
        "properties": {
          "address1": {
            "description": " Primary street address line.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "address2": {
            "description": " Secondary street address line (optional).",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "city": {
            "description": " City name.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcustomer__ISO3166Alpha2"
              },
              {
                "description": " Two-letter country code (ISO 3166-1 alpha-2)."
              }
            ]
          },
          "postalCode": {
            "description": " Postal or ZIP code",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcustomer__Region"
              },
              {
                "description": " State, province, or region."
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "getcustomer__ApiV1ArCustomerResponseData": {
        "description": " Response data for Accounts Receivable customer API endpoints",
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcustomer__ApiV1ArCustomerAddress"
              },
              {
                "description": " Address of customer."
              }
            ],
            "nullable": true
          },
          "deletedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcustomer__UTCTime"
              },
              {
                "description": " The time the customer was deleted, if it was deleted."
              }
            ],
            "nullable": true
          },
          "email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcustomer__Email"
              },
              {
                "description": " Email of customer."
              }
            ]
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getcustomer__CustomerId"
              },
              {
                "description": " ArCustomerId"
              }
            ]
          },
          "name": {
            "description": " Name of customer.",
            "maxLength": 5000,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id",
          "email",
          "name"
        ],
        "type": "object"
      },
      "getcustomer__CustomerId": {
        "description": "The customer who will receive the invoice. Use the /api/v1/ar/customers endpoint to list your customers and find the corresponding id, or create a new customer first.",
        "format": "uuid",
        "type": "string"
      },
      "getcustomer__Email": {
        "type": "string"
      },
      "getcustomer__ISO3166Alpha2": {
        "type": "string"
      },
      "getcustomer__Region": {
        "type": "string"
      },
      "getcustomer__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getevent__ApiEventId": {
        "description": "ID for the API event",
        "format": "uuid",
        "type": "string"
      },
      "getevent__ApiEventOperationType": {
        "enum": [
          "create",
          "update",
          "delete"
        ],
        "type": "string"
      },
      "getevent__ApiEventResourceType": {
        "enum": [
          "transaction",
          "checkingAccount",
          "savingsAccount",
          "treasuryAccount",
          "investmentAccount",
          "creditAccount"
        ],
        "type": "string"
      },
      "getevent__ApiEventResponse": {
        "description": " Represents a single event in the Mercury API event stream.\n Events track changes to resources over time, providing an audit trail\n of all modifications with before/after values and metadata about what changed.",
        "properties": {
          "changedPaths": {
            "description": " List of JSON paths that were modified in this event",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getevent__ApiEventId"
              },
              {
                "description": " Unique identifier for this event"
              }
            ]
          },
          "mergePatch": {
            "description": " JSON object containing the fields that were changed and their new values",
            "type": "object"
          },
          "occurredAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getevent__UTCTime"
              },
              {
                "description": " Timestamp when the event occurred"
              }
            ]
          },
          "operationType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getevent__ApiEventOperationType"
              },
              {
                "description": " The type of operation performed (e.g., create, update, delete)"
              }
            ]
          },
          "previousValues": {
            "description": " JSON object containing the fields that were changed and their previous values before the update",
            "nullable": true,
            "type": "object"
          },
          "resourceId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getevent__UUID"
              },
              {
                "description": " The ID of the resource that was affected"
              }
            ]
          },
          "resourceType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getevent__ApiEventResourceType"
              },
              {
                "description": " The type of resource that was affected (e.g., transaction, account)"
              }
            ]
          },
          "resourceVersion": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getevent__ResourceVersion"
              },
              {
                "description": " Version number of the resource after this change"
              }
            ]
          }
        },
        "required": [
          "id",
          "resourceType",
          "resourceId",
          "operationType",
          "resourceVersion",
          "occurredAt",
          "changedPaths",
          "mergePatch"
        ],
        "type": "object"
      },
      "getevent__ResourceVersion": {
        "format": "int64",
        "minimum": 1,
        "type": "integer"
      },
      "getevent__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getevent__UUID": {
        "example": "00000000-0000-0000-0000-000000000000",
        "format": "uuid",
        "type": "string"
      },
      "getevents__ApiEventId": {
        "description": "ID for the API event",
        "format": "uuid",
        "type": "string"
      },
      "getevents__ApiEventOperationType": {
        "enum": [
          "create",
          "update",
          "delete"
        ],
        "type": "string"
      },
      "getevents__ApiEventResourceType": {
        "enum": [
          "transaction",
          "checkingAccount",
          "savingsAccount",
          "treasuryAccount",
          "investmentAccount",
          "creditAccount"
        ],
        "type": "string"
      },
      "getevents__ApiEventResponse": {
        "description": " Represents a single event in the Mercury API event stream.\n Events track changes to resources over time, providing an audit trail\n of all modifications with before/after values and metadata about what changed.",
        "properties": {
          "changedPaths": {
            "description": " List of JSON paths that were modified in this event",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getevents__ApiEventId"
              },
              {
                "description": " Unique identifier for this event"
              }
            ]
          },
          "mergePatch": {
            "description": " JSON object containing the fields that were changed and their new values",
            "type": "object"
          },
          "occurredAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getevents__UTCTime"
              },
              {
                "description": " Timestamp when the event occurred"
              }
            ]
          },
          "operationType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getevents__ApiEventOperationType"
              },
              {
                "description": " The type of operation performed (e.g., create, update, delete)"
              }
            ]
          },
          "previousValues": {
            "description": " JSON object containing the fields that were changed and their previous values before the update",
            "nullable": true,
            "type": "object"
          },
          "resourceId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getevents__UUID"
              },
              {
                "description": " The ID of the resource that was affected"
              }
            ]
          },
          "resourceType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getevents__ApiEventResourceType"
              },
              {
                "description": " The type of resource that was affected (e.g., transaction, account)"
              }
            ]
          },
          "resourceVersion": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getevents__ResourceVersion"
              },
              {
                "description": " Version number of the resource after this change"
              }
            ]
          }
        },
        "required": [
          "id",
          "resourceType",
          "resourceId",
          "operationType",
          "resourceVersion",
          "occurredAt",
          "changedPaths",
          "mergePatch"
        ],
        "type": "object"
      },
      "getevents__ApiEventsPaginatedResponse": {
        "description": " Paginated response containing a list of API events.\n | Use the page cursor information to fetch additional pages of events.",
        "properties": {
          "events": {
            "description": " List of events in the current page",
            "items": {
              "$ref": "#/components/schemas/getevents__ApiEventResponse"
            },
            "type": "array"
          },
          "page": {
            "description": " Pagination information including cursors for navigating to next/previous pages",
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/getevents__ApiEventId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/getevents__ApiEventId"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "events",
          "page"
        ],
        "type": "object"
      },
      "getevents__ResourceVersion": {
        "format": "int64",
        "minimum": 1,
        "type": "integer"
      },
      "getevents__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getevents__UUID": {
        "example": "00000000-0000-0000-0000-000000000000",
        "format": "uuid",
        "type": "string"
      },
      "getinvoice__ApiV1ArInvoiceResponse": {
        "description": " The response type for an invoice in the api.",
        "properties": {
          "achDebitEnabled": {
            "description": " Whether or not the invoice can be paid via ach debit.",
            "type": "boolean"
          },
          "amount": {
            "description": " The total amount of the invoice line items plus taxes.",
            "multipleOf": 0.01,
            "type": "number"
          },
          "canceledAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getinvoice__UTCTime"
              },
              {
                "description": " The time when the invoice was canceled."
              }
            ],
            "nullable": true
          },
          "ccEmails": {
            "description": " Emails to be CCed on invoice notifications/reminders.",
            "items": {
              "$ref": "#/components/schemas/getinvoice__Email"
            },
            "type": "array"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getinvoice__UTCTime"
              },
              {
                "description": " The timestamp when the invoice was created."
              }
            ]
          },
          "creditCardEnabled": {
            "description": " Whether or not the invoice can be paid via credit card. Requires stripe to be\n setup for the Mercury account.",
            "type": "boolean"
          },
          "currencyCode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getinvoice__CurrencyCode"
              },
              {
                "description": " ISO 4217 currency code for the invoice (e.g. \"USD\", \"EUR\")."
              }
            ]
          },
          "customerId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getinvoice__CustomerId"
              },
              {
                "description": " Id of the customer the invoice was sent to."
              }
            ]
          },
          "destinationAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getinvoice__TransactionPartyId"
              },
              {
                "description": " The Mercury account where invoice payments will be deposited. Use the /api/v1/accounts endpoint to list your accounts and find the corresponding id. Only checking and savings accounts are supported."
              }
            ]
          },
          "dueDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getinvoice__Day"
              },
              {
                "description": " The due date the invoice should be paid by."
              }
            ]
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getinvoice__InvoiceId"
              },
              {
                "description": " The ID of the invoice."
              }
            ]
          },
          "internalNote": {
            "description": " Internal note for the invoice, visible by users in the\n mercury organization but not visible to payers.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "invoiceDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getinvoice__Day"
              },
              {
                "description": " The date of the invoice, set by the invoice creator\n and likely to be context specific to the type of transaction.\n i.e. it could be a date a service was performed, it does not need\n to be the date the invoice was created."
              }
            ]
          },
          "invoiceNumber": {
            "description": " The payer facing invoice number/identifier.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "lineItems": {
            "description": " The line items for the invoice.",
            "items": {
              "$ref": "#/components/schemas/getinvoice__ApiV1ArLineItemData"
            },
            "type": "array"
          },
          "payerMemo": {
            "description": " Memo for the payer of the invoice.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "poNumber": {
            "description": " Purchase order number for the invoice if applicable.",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "servicePeriodEndDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getinvoice__Day"
              },
              {
                "description": " The end date for the service period this invoice covers, if applicable. YYYY-MM-DD"
              }
            ],
            "nullable": true
          },
          "servicePeriodStartDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getinvoice__Day"
              },
              {
                "description": " The start date for the service period this invoice covers, if applicable. YYYY-MM-DD"
              }
            ],
            "nullable": true
          },
          "slug": {
            "description": " Public slug for an invoice. Used to construct the pay page URL\n as well as the URL to retrieve the PDF of the invoice.",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getinvoice__PaymentLinkStatus"
              },
              {
                "description": " The status of the invoice."
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getinvoice__UTCTime"
              },
              {
                "description": " The timestamp when the invoice was updated."
              }
            ]
          },
          "useRealAccountNumber": {
            "description": " Whether or not the invoice payment instructions will show the real\n account and routing number for the destination account or use\n virtual account numbers instead.",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "dueDate",
          "invoiceDate",
          "invoiceNumber",
          "customerId",
          "ccEmails",
          "slug",
          "status",
          "amount",
          "currencyCode",
          "destinationAccountId",
          "creditCardEnabled",
          "achDebitEnabled",
          "useRealAccountNumber",
          "createdAt",
          "updatedAt",
          "lineItems"
        ],
        "type": "object"
      },
      "getinvoice__ApiV1ArLineItemData": {
        "description": " Data for an invoice line item",
        "properties": {
          "name": {
            "description": " the name of the line item",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "quantity": {
            "description": " the quantity of this item",
            "format": "double",
            "type": "number"
          },
          "salesTaxRate": {
            "description": " the sales tax applied to this item",
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "unitPrice": {
            "description": " the price of one unit of the item before sales tax",
            "multipleOf": 0.01,
            "type": "number"
          }
        },
        "required": [
          "name",
          "unitPrice",
          "quantity"
        ],
        "type": "object"
      },
      "getinvoice__CurrencyCode": {
        "type": "string"
      },
      "getinvoice__CustomerId": {
        "description": "The customer who will receive the invoice. Use the /api/v1/ar/customers endpoint to list your customers and find the corresponding id, or create a new customer first.",
        "format": "uuid",
        "type": "string"
      },
      "getinvoice__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "getinvoice__Email": {
        "type": "string"
      },
      "getinvoice__InvoiceId": {
        "description": "ID for the invoice.",
        "format": "uuid",
        "type": "string"
      },
      "getinvoice__PaymentLinkStatus": {
        "enum": [
          "Unpaid",
          "Paid",
          "Cancelled",
          "Processing"
        ],
        "type": "string"
      },
      "getinvoice__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "getinvoice__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getinvoicepdf__PDFDocument": {
        "format": "binary",
        "type": "string"
      },
      "getorganization__ApiBillingCadence": {
        "enum": [
          "monthly",
          "annual"
        ],
        "type": "string"
      },
      "getorganization__ApiOrganizationKind": {
        "enum": [
          "personal",
          "business"
        ],
        "type": "string"
      },
      "getorganization__ApiSubscriptionTier": {
        "enum": [
          "free",
          "plus",
          "premium",
          "pro",
          "enterprise"
        ],
        "type": "string"
      },
      "getorganization__OrganizationDBA": {
        "description": " DBA (Doing Business As) information",
        "properties": {
          "dbaIsDefault": {
            "description": " Whether this DBA is set as the default for payments",
            "type": "boolean"
          },
          "dbaName": {
            "description": " The DBA name",
            "type": "string"
          }
        },
        "required": [
          "dbaName",
          "dbaIsDefault"
        ],
        "type": "object"
      },
      "getorganization__OrganizationInfo": {
        "description": " Organization information",
        "properties": {
          "billingCadence": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getorganization__ApiBillingCadence"
              },
              {
                "description": " How often the organization is billed for its current subscription.\n Always \"monthly\" when the tier is \"free\"."
              }
            ]
          },
          "dbas": {
            "description": " List of DBAs (Doing Business As names) for this organization",
            "items": {
              "$ref": "#/components/schemas/getorganization__OrganizationDBA"
            },
            "type": "array"
          },
          "ein": {
            "description": " Employer Identification Number (EIN), if available",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getorganization__UUID"
              },
              {
                "description": " Unique identifier for the organization"
              }
            ]
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getorganization__ApiOrganizationKind"
              },
              {
                "description": " Whether this is a personal or business organization"
              }
            ]
          },
          "legalBusinessName": {
            "description": " Legal business name as registered",
            "type": "string"
          },
          "subscriptionTier": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getorganization__ApiSubscriptionTier"
              },
              {
                "description": " The Mercury subscription tier this organization is currently on.\n Reports \"free\" when the organization has no paid subscription."
              }
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "legalBusinessName",
          "dbas",
          "subscriptionTier",
          "billingCadence"
        ],
        "type": "object"
      },
      "getorganization__OrganizationResponse": {
        "description": " Response containing organization details.",
        "properties": {
          "organization": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getorganization__OrganizationInfo"
              },
              {
                "description": " Organization information"
              }
            ]
          }
        },
        "required": [
          "organization"
        ],
        "type": "object"
      },
      "getorganization__UUID": {
        "example": "00000000-0000-0000-0000-000000000000",
        "format": "uuid",
        "type": "string"
      },
      "getreceipt__ApiV1ReceiptResponse": {
        "description": " Public view of a receipt and its matching state.",
        "properties": {
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getreceipt__UTCTime"
              }
            ]
          },
          "fileName": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getreceipt__ReceiptId"
              }
            ]
          },
          "matchedTransactionId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getreceipt__TransactionMetadataId"
              },
              {
                "description": " The transaction this receipt was matched to, once matched."
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getreceipt__ApiV1ReceiptStatus"
              }
            ]
          },
          "uploadedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getreceipt__UTCTime"
              },
              {
                "description": " When Mercury began processing the direct upload; absent until matching starts."
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "id",
          "fileName",
          "status",
          "createdAt"
        ],
        "type": "object"
      },
      "getreceipt__ApiV1ReceiptStatus": {
        "enum": [
          "pending",
          "matched",
          "unmatched",
          "notAttempted",
          "failed"
        ],
        "type": "string"
      },
      "getreceipt__ReceiptId": {
        "description": "ID for the receipt",
        "format": "uuid",
        "type": "string"
      },
      "getreceipt__TransactionMetadataId": {
        "description": "ID for this transaction",
        "format": "uuid",
        "type": "string"
      },
      "getreceipt__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getrecipient__Address": {
        "properties": {
          "address1": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "address2": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "city": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__ISO3166Alpha2"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "postalCode": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__Region"
              }
            ]
          }
        },
        "required": [
          "name",
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "getrecipient__AddressWithoutName": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__ISO3166Alpha2"
              }
            ]
          },
          "postalCode": {
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__Region"
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "getrecipient__CheckInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__AddressWithoutName"
              }
            ]
          }
        },
        "required": [
          "address"
        ],
        "type": "object"
      },
      "getrecipient__DomesticWireRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber"
        ],
        "type": "object"
      },
      "getrecipient__ElectronicAccountType": {
        "enum": [
          "businessChecking",
          "businessSavings",
          "personalChecking",
          "personalSavings",
          "businessGeneralLedger",
          "personalGeneralLedger",
          "businessLoan",
          "personalLoan"
        ],
        "type": "string"
      },
      "getrecipient__ElectronicRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "electronicAccountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__ElectronicAccountType"
              }
            ]
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "electronicAccountType"
        ],
        "type": "object"
      },
      "getrecipient__Email": {
        "type": "string"
      },
      "getrecipient__ISO3166Alpha2": {
        "type": "string"
      },
      "getrecipient__InternationalWireAustraliaSpecificData": {
        "properties": {
          "bsbCode": {
            "type": "string"
          }
        },
        "required": [
          "bsbCode"
        ],
        "type": "object"
      },
      "getrecipient__InternationalWireBrazilSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "getrecipient__InternationalWireCanadaSpecificData": {
        "properties": {
          "bankCode": {
            "type": "string"
          },
          "transitNumber": {
            "type": "string"
          }
        },
        "required": [
          "bankCode",
          "transitNumber"
        ],
        "type": "object"
      },
      "getrecipient__InternationalWireChileSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "getrecipient__InternationalWireColombiaSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "getrecipient__InternationalWireCorrespondentInfo": {
        "properties": {
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "getrecipient__InternationalWireCountrySpecificData": {
        "properties": {
          "australia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWireAustraliaSpecificData"
              }
            ],
            "nullable": true
          },
          "brazil": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWireBrazilSpecificData"
              }
            ],
            "nullable": true
          },
          "canada": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWireCanadaSpecificData"
              }
            ],
            "nullable": true
          },
          "chile": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWireChileSpecificData"
              }
            ],
            "nullable": true
          },
          "colombia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWireColombiaSpecificData"
              }
            ],
            "nullable": true
          },
          "dominicanRepublic": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWireDominicanRepublicSpecificData"
              }
            ],
            "nullable": true
          },
          "honduras": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWireHondurasSpecificData"
              }
            ],
            "nullable": true
          },
          "india": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWireIndiaSpecificData"
              }
            ],
            "nullable": true
          },
          "kazakhstan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWireKazakhstanSpecificData"
              }
            ],
            "nullable": true
          },
          "pakistan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWirePakistanSpecificData"
              }
            ],
            "nullable": true
          },
          "paraguay": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWireParaguaySpecificData"
              }
            ],
            "nullable": true
          },
          "philippines": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWirePhilippinesSpecificData"
              }
            ],
            "nullable": true
          },
          "russia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWireRussiaSpecificData"
              }
            ],
            "nullable": true
          },
          "southAfrica": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWireSouthAfricaSpecificData"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "getrecipient__InternationalWireDominicanRepublicSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "getrecipient__InternationalWireHondurasSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "getrecipient__InternationalWireIndiaSpecificData": {
        "properties": {
          "ifscCode": {
            "type": "string"
          }
        },
        "required": [
          "ifscCode"
        ],
        "type": "object"
      },
      "getrecipient__InternationalWireKazakhstanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "getrecipient__InternationalWirePakistanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          },
          "legalIdType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__PakistaniLegalIdType"
              }
            ]
          }
        },
        "required": [
          "legalIdType",
          "legalId"
        ],
        "type": "object"
      },
      "getrecipient__InternationalWireParaguaySpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "getrecipient__InternationalWirePhilippinesSpecificData": {
        "properties": {
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "routingNumber"
        ],
        "type": "object"
      },
      "getrecipient__InternationalWireRoutingInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankDetails": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__SwiftCodeData"
              }
            ],
            "nullable": true
          },
          "correspondentInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWireCorrespondentInfo"
              }
            ],
            "nullable": true
          },
          "countrySpecific": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWireCountrySpecificData"
              }
            ]
          },
          "emailAddress": {
            "nullable": true,
            "type": "string"
          },
          "iban": {
            "type": "string"
          },
          "phoneNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "type": "string"
          }
        },
        "required": [
          "iban",
          "swiftCode",
          "countrySpecific"
        ],
        "type": "object"
      },
      "getrecipient__InternationalWireRussiaSpecificData": {
        "properties": {
          "inn": {
            "type": "string"
          }
        },
        "required": [
          "inn"
        ],
        "type": "object"
      },
      "getrecipient__InternationalWireSouthAfricaSpecificData": {
        "properties": {
          "branchCode": {
            "type": "string"
          }
        },
        "required": [
          "branchCode"
        ],
        "type": "object"
      },
      "getrecipient__PakistaniLegalIdType": {
        "enum": [
          "CNIC",
          "SNIC",
          "Passport",
          "NTN"
        ],
        "type": "string"
      },
      "getrecipient__PaymentMethod": {
        "enum": [
          "ach",
          "check",
          "domesticWire",
          "internationalWire",
          "realTimePayment"
        ],
        "type": "string"
      },
      "getrecipient__RealTimePaymentRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber"
        ],
        "type": "object"
      },
      "getrecipient__RecipientAttachment": {
        "properties": {
          "fileName": {
            "description": " Name of the uploaded file",
            "type": "string"
          },
          "formType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__TaxFormType"
              },
              {
                "description": " The tax form type (W-9 for US persons, W-8BEN for foreign individuals, W-8BEN-E for foreign entities)"
              }
            ],
            "nullable": true
          },
          "uploadedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__UTCTime"
              },
              {
                "description": " Timestamp when the attachment was uploaded"
              }
            ]
          },
          "url": {
            "description": " Presigned URL to download the attachment (valid for 12 hours)",
            "type": "string"
          }
        },
        "required": [
          "fileName",
          "url",
          "uploadedAt"
        ],
        "type": "object"
      },
      "getrecipient__RecipientInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__Address"
              }
            ],
            "nullable": true
          },
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/getrecipient__RecipientAttachment"
            },
            "type": "array"
          },
          "checkInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__CheckInfo"
              }
            ],
            "nullable": true
          },
          "contactEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__Email"
              }
            ],
            "nullable": true
          },
          "dateLastPaid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__UTCTime"
              }
            ],
            "nullable": true
          },
          "defaultAddress": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "defaultPaymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__PaymentMethod"
              }
            ]
          },
          "domesticWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__DomesticWireRoutingInfo"
              }
            ],
            "nullable": true
          },
          "electronicRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__ElectronicRoutingInfo"
              }
            ],
            "nullable": true
          },
          "emails": {
            "items": {
              "$ref": "#/components/schemas/getrecipient__Email"
            },
            "type": "array"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__TransactionPartyId"
              }
            ]
          },
          "internationalWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__InternationalWireRoutingInfo"
              }
            ],
            "nullable": true
          },
          "inviteId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__Slug"
              }
            ],
            "nullable": true
          },
          "isBusiness": {
            "nullable": true,
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "nickname": {
            "nullable": true,
            "type": "string"
          },
          "realTimePaymentRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__RealTimePaymentRoutingInfo"
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__RecipientStatus"
              }
            ]
          }
        },
        "required": [
          "id",
          "status",
          "name",
          "emails",
          "defaultPaymentMethod",
          "attachments"
        ],
        "type": "object"
      },
      "getrecipient__RecipientStatus": {
        "enum": [
          "active",
          "deleted"
        ],
        "type": "string"
      },
      "getrecipient__Region": {
        "type": "string"
      },
      "getrecipient__Slug": {
        "type": "string"
      },
      "getrecipient__SwiftBankAccountType": {
        "enum": [
          "checking",
          "savings"
        ],
        "type": "string"
      },
      "getrecipient__SwiftCodeData": {
        "properties": {
          "bankCityState": {
            "type": "string"
          },
          "bankCountry": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipient__ISO3166Alpha2"
              }
            ]
          },
          "bankName": {
            "type": "string"
          }
        },
        "required": [
          "bankName",
          "bankCityState",
          "bankCountry"
        ],
        "type": "object"
      },
      "getrecipient__TaxFormType": {
        "enum": [
          "w9",
          "w8BEN",
          "w8BENE",
          "unknown"
        ],
        "type": "string"
      },
      "getrecipient__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "getrecipient__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getrecipientinvite__Email": {
        "type": "string"
      },
      "getrecipientinvite__PaymentMethod": {
        "enum": [
          "ach",
          "check",
          "domesticWire",
          "internationalWire",
          "realTimePayment"
        ],
        "type": "string"
      },
      "getrecipientinvite__RecipientInviteApiResponse": {
        "properties": {
          "contactEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipientinvite__Email"
              },
              {
                "description": " Recipient contact email the invite was created for."
              }
            ]
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipientinvite__UTCTime"
              },
              {
                "description": " When the invite was created."
              }
            ]
          },
          "expiresAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipientinvite__UTCTime"
              },
              {
                "description": " When the invite expires, if it has an expiry."
              }
            ],
            "nullable": true
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipientinvite__RecipientInviteId"
              },
              {
                "description": " The invite's id, also embedded in 'onboardingUrl'."
              }
            ]
          },
          "name": {
            "description": " Recipient name the invite was created for.",
            "type": "string"
          },
          "notes": {
            "description": " Notes shown to the recipient, if any.",
            "nullable": true,
            "type": "string"
          },
          "onboardingUrl": {
            "description": " URL where the recipient submits their payment details.",
            "type": "string"
          },
          "paymentMethods": {
            "description": " Payment methods the recipient may submit details for.",
            "items": {
              "$ref": "#/components/schemas/getrecipientinvite__PaymentMethod"
            },
            "minItems": 1,
            "type": "array"
          },
          "recipientId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipientinvite__TransactionPartyId"
              },
              {
                "description": " The existing recipient this invite is for, if any."
              }
            ],
            "nullable": true
          },
          "requireTaxDocument": {
            "description": " Whether the recipient must upload a tax document.",
            "type": "boolean"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipientinvite__RecipientInviteStatus"
              },
              {
                "description": " Status of the invite."
              }
            ]
          }
        },
        "required": [
          "id",
          "onboardingUrl",
          "status",
          "name",
          "contactEmail",
          "paymentMethods",
          "requireTaxDocument",
          "createdAt"
        ],
        "type": "object"
      },
      "getrecipientinvite__RecipientInviteId": {
        "description": "ID for the invite",
        "type": "string"
      },
      "getrecipientinvite__RecipientInviteStatus": {
        "enum": [
          "created",
          "completed",
          "expired",
          "declined"
        ],
        "type": "string"
      },
      "getrecipientinvite__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "getrecipientinvite__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getrecipients__Address": {
        "properties": {
          "address1": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "address2": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "city": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__ISO3166Alpha2"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "postalCode": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__Region"
              }
            ]
          }
        },
        "required": [
          "name",
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "getrecipients__AddressWithoutName": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__ISO3166Alpha2"
              }
            ]
          },
          "postalCode": {
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__Region"
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "getrecipients__CheckInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__AddressWithoutName"
              }
            ]
          }
        },
        "required": [
          "address"
        ],
        "type": "object"
      },
      "getrecipients__DomesticWireRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber"
        ],
        "type": "object"
      },
      "getrecipients__ElectronicAccountType": {
        "enum": [
          "businessChecking",
          "businessSavings",
          "personalChecking",
          "personalSavings",
          "businessGeneralLedger",
          "personalGeneralLedger",
          "businessLoan",
          "personalLoan"
        ],
        "type": "string"
      },
      "getrecipients__ElectronicRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "electronicAccountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__ElectronicAccountType"
              }
            ]
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "electronicAccountType"
        ],
        "type": "object"
      },
      "getrecipients__Email": {
        "type": "string"
      },
      "getrecipients__ISO3166Alpha2": {
        "type": "string"
      },
      "getrecipients__InternationalWireAustraliaSpecificData": {
        "properties": {
          "bsbCode": {
            "type": "string"
          }
        },
        "required": [
          "bsbCode"
        ],
        "type": "object"
      },
      "getrecipients__InternationalWireBrazilSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "getrecipients__InternationalWireCanadaSpecificData": {
        "properties": {
          "bankCode": {
            "type": "string"
          },
          "transitNumber": {
            "type": "string"
          }
        },
        "required": [
          "bankCode",
          "transitNumber"
        ],
        "type": "object"
      },
      "getrecipients__InternationalWireChileSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "getrecipients__InternationalWireColombiaSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "getrecipients__InternationalWireCorrespondentInfo": {
        "properties": {
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "getrecipients__InternationalWireCountrySpecificData": {
        "properties": {
          "australia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWireAustraliaSpecificData"
              }
            ],
            "nullable": true
          },
          "brazil": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWireBrazilSpecificData"
              }
            ],
            "nullable": true
          },
          "canada": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWireCanadaSpecificData"
              }
            ],
            "nullable": true
          },
          "chile": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWireChileSpecificData"
              }
            ],
            "nullable": true
          },
          "colombia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWireColombiaSpecificData"
              }
            ],
            "nullable": true
          },
          "dominicanRepublic": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWireDominicanRepublicSpecificData"
              }
            ],
            "nullable": true
          },
          "honduras": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWireHondurasSpecificData"
              }
            ],
            "nullable": true
          },
          "india": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWireIndiaSpecificData"
              }
            ],
            "nullable": true
          },
          "kazakhstan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWireKazakhstanSpecificData"
              }
            ],
            "nullable": true
          },
          "pakistan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWirePakistanSpecificData"
              }
            ],
            "nullable": true
          },
          "paraguay": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWireParaguaySpecificData"
              }
            ],
            "nullable": true
          },
          "philippines": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWirePhilippinesSpecificData"
              }
            ],
            "nullable": true
          },
          "russia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWireRussiaSpecificData"
              }
            ],
            "nullable": true
          },
          "southAfrica": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWireSouthAfricaSpecificData"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "getrecipients__InternationalWireDominicanRepublicSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "getrecipients__InternationalWireHondurasSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "getrecipients__InternationalWireIndiaSpecificData": {
        "properties": {
          "ifscCode": {
            "type": "string"
          }
        },
        "required": [
          "ifscCode"
        ],
        "type": "object"
      },
      "getrecipients__InternationalWireKazakhstanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "getrecipients__InternationalWirePakistanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          },
          "legalIdType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__PakistaniLegalIdType"
              }
            ]
          }
        },
        "required": [
          "legalIdType",
          "legalId"
        ],
        "type": "object"
      },
      "getrecipients__InternationalWireParaguaySpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "getrecipients__InternationalWirePhilippinesSpecificData": {
        "properties": {
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "routingNumber"
        ],
        "type": "object"
      },
      "getrecipients__InternationalWireRoutingInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankDetails": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__SwiftCodeData"
              }
            ],
            "nullable": true
          },
          "correspondentInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWireCorrespondentInfo"
              }
            ],
            "nullable": true
          },
          "countrySpecific": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWireCountrySpecificData"
              }
            ]
          },
          "emailAddress": {
            "nullable": true,
            "type": "string"
          },
          "iban": {
            "type": "string"
          },
          "phoneNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "type": "string"
          }
        },
        "required": [
          "iban",
          "swiftCode",
          "countrySpecific"
        ],
        "type": "object"
      },
      "getrecipients__InternationalWireRussiaSpecificData": {
        "properties": {
          "inn": {
            "type": "string"
          }
        },
        "required": [
          "inn"
        ],
        "type": "object"
      },
      "getrecipients__InternationalWireSouthAfricaSpecificData": {
        "properties": {
          "branchCode": {
            "type": "string"
          }
        },
        "required": [
          "branchCode"
        ],
        "type": "object"
      },
      "getrecipients__PageTotal": {
        "format": "int32",
        "maximum": 1000,
        "minimum": 0,
        "type": "integer"
      },
      "getrecipients__PakistaniLegalIdType": {
        "enum": [
          "CNIC",
          "SNIC",
          "Passport",
          "NTN"
        ],
        "type": "string"
      },
      "getrecipients__PaymentMethod": {
        "enum": [
          "ach",
          "check",
          "domesticWire",
          "internationalWire",
          "realTimePayment"
        ],
        "type": "string"
      },
      "getrecipients__RealTimePaymentRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber"
        ],
        "type": "object"
      },
      "getrecipients__RecipientAttachment": {
        "properties": {
          "fileName": {
            "description": " Name of the uploaded file",
            "type": "string"
          },
          "formType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__TaxFormType"
              },
              {
                "description": " The tax form type (W-9 for US persons, W-8BEN for foreign individuals, W-8BEN-E for foreign entities)"
              }
            ],
            "nullable": true
          },
          "uploadedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__UTCTime"
              },
              {
                "description": " Timestamp when the attachment was uploaded"
              }
            ]
          },
          "url": {
            "description": " Presigned URL to download the attachment (valid for 12 hours)",
            "type": "string"
          }
        },
        "required": [
          "fileName",
          "url",
          "uploadedAt"
        ],
        "type": "object"
      },
      "getrecipients__RecipientId": {
        "description": "ID for the recipient",
        "format": "uuid",
        "type": "string"
      },
      "getrecipients__RecipientInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__Address"
              }
            ],
            "nullable": true
          },
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/getrecipients__RecipientAttachment"
            },
            "type": "array"
          },
          "checkInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__CheckInfo"
              }
            ],
            "nullable": true
          },
          "contactEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__Email"
              }
            ],
            "nullable": true
          },
          "dateLastPaid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__UTCTime"
              }
            ],
            "nullable": true
          },
          "defaultAddress": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "defaultPaymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__PaymentMethod"
              }
            ]
          },
          "domesticWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__DomesticWireRoutingInfo"
              }
            ],
            "nullable": true
          },
          "electronicRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__ElectronicRoutingInfo"
              }
            ],
            "nullable": true
          },
          "emails": {
            "items": {
              "$ref": "#/components/schemas/getrecipients__Email"
            },
            "type": "array"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__TransactionPartyId"
              }
            ]
          },
          "internationalWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__InternationalWireRoutingInfo"
              }
            ],
            "nullable": true
          },
          "inviteId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__Slug"
              }
            ],
            "nullable": true
          },
          "isBusiness": {
            "nullable": true,
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "nickname": {
            "nullable": true,
            "type": "string"
          },
          "realTimePaymentRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__RealTimePaymentRoutingInfo"
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__RecipientStatus"
              }
            ]
          }
        },
        "required": [
          "id",
          "status",
          "name",
          "emails",
          "defaultPaymentMethod",
          "attachments"
        ],
        "type": "object"
      },
      "getrecipients__RecipientStatus": {
        "enum": [
          "active",
          "deleted"
        ],
        "type": "string"
      },
      "getrecipients__RecipientsPaginatedResponse": {
        "properties": {
          "page": {
            "description": " Pagination information including cursors for navigating to next/previous pages",
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/getrecipients__RecipientId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/getrecipients__RecipientId"
              }
            },
            "type": "object"
          },
          "recipients": {
            "description": " List of recipients in the current page",
            "items": {
              "$ref": "#/components/schemas/getrecipients__RecipientInfo"
            },
            "type": "array"
          },
          "total": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__PageTotal"
              },
              {
                "description": " Total number of recipients in the current page"
              }
            ]
          }
        },
        "required": [
          "total",
          "recipients",
          "page"
        ],
        "type": "object"
      },
      "getrecipients__Region": {
        "type": "string"
      },
      "getrecipients__Slug": {
        "type": "string"
      },
      "getrecipients__SwiftBankAccountType": {
        "enum": [
          "checking",
          "savings"
        ],
        "type": "string"
      },
      "getrecipients__SwiftCodeData": {
        "properties": {
          "bankCityState": {
            "type": "string"
          },
          "bankCountry": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getrecipients__ISO3166Alpha2"
              }
            ]
          },
          "bankName": {
            "type": "string"
          }
        },
        "required": [
          "bankName",
          "bankCityState",
          "bankCountry"
        ],
        "type": "object"
      },
      "getrecipients__TaxFormType": {
        "enum": [
          "w9",
          "w8BEN",
          "w8BENE",
          "unknown"
        ],
        "type": "string"
      },
      "getrecipients__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "getrecipients__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getsaferequest__APISafeRequest": {
        "description": " A summary of a SAFE request.",
        "properties": {
          "canceledAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequest__UTCTime"
              }
            ],
            "nullable": true
          },
          "discountRate": {
            "multipleOf": 0.01,
            "nullable": true,
            "type": "number"
          },
          "documentUrl": {
            "type": "string"
          },
          "expiresAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequest__UTCTime"
              }
            ]
          },
          "governingState": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequest__USState"
              }
            ],
            "nullable": true
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequest__SafeRequestId"
              }
            ]
          },
          "includesMostFavoredNationClause": {
            "type": "boolean"
          },
          "includesProRataRightsLetter": {
            "type": "boolean"
          },
          "investmentAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequest__PositiveDollar"
              }
            ]
          },
          "investmentDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequest__Day"
              }
            ]
          },
          "investor": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequest__APISafeRequestInvestor"
              }
            ]
          },
          "organization": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequest__APISafeRequestOrganization"
              }
            ]
          },
          "paidAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequest__UTCTime"
              }
            ],
            "nullable": true
          },
          "signedByInvestorAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequest__UTCTime"
              }
            ],
            "nullable": true
          },
          "signedByOwnerAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequest__UTCTime"
              }
            ],
            "nullable": true
          },
          "valuationCap": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequest__PositiveDollar"
              }
            ],
            "nullable": true
          },
          "valuationType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequest__ValuationType"
              }
            ]
          }
        },
        "required": [
          "id",
          "documentUrl",
          "expiresAt",
          "includesMostFavoredNationClause",
          "includesProRataRightsLetter",
          "investmentAmount",
          "investor",
          "investmentDate",
          "organization",
          "valuationType"
        ],
        "type": "object"
      },
      "getsaferequest__APISafeRequestInvestor": {
        "description": " Details about the investor buying the equity.",
        "properties": {
          "additionalBylines": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "address": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "investorType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequest__SafeRequestInvestorType"
              }
            ]
          },
          "legalEntityName": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "signatoryEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequest__Email"
              }
            ]
          },
          "signatoryName": {
            "maxLength": 5000,
            "minLength": 1,
            "type": "string"
          },
          "signatoryTitle": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "signatoryName",
          "signatoryEmail",
          "legalEntityName",
          "investorType"
        ],
        "type": "object"
      },
      "getsaferequest__APISafeRequestOrganization": {
        "description": " Details about the organization selling the equity",
        "properties": {
          "legalEntityName": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "signatoryEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequest__Email"
              }
            ]
          },
          "signatoryName": {
            "maxLength": 5000,
            "minLength": 1,
            "type": "string"
          },
          "signatoryTitle": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "legalEntityName",
          "signatoryName",
          "signatoryTitle",
          "signatoryEmail"
        ],
        "type": "object"
      },
      "getsaferequest__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "getsaferequest__Email": {
        "type": "string"
      },
      "getsaferequest__PositiveDollar": {
        "description": "A positive dollar amount with at least 1 cent.",
        "format": "double",
        "minimum": 0.01,
        "type": "number"
      },
      "getsaferequest__SafeRequestId": {
        "description": "ID for the SAFE request",
        "format": "uuid",
        "type": "string"
      },
      "getsaferequest__SafeRequestInvestorType": {
        "enum": [
          "SafeRequestInvestorTypeIndividual",
          "SafeRequestInvestorTypeVentureFund",
          "SafeRequestInvestorTypeOther"
        ],
        "type": "string"
      },
      "getsaferequest__USState": {
        "enum": [
          "AL",
          "AK",
          "AZ",
          "AR",
          "CA",
          "CO",
          "CT",
          "DE",
          "DC",
          "FL",
          "GA",
          "HI",
          "ID",
          "IL",
          "IN",
          "IA",
          "KS",
          "KY",
          "LA",
          "ME",
          "MD",
          "MA",
          "MI",
          "MN",
          "MS",
          "MO",
          "MT",
          "NE",
          "NV",
          "NH",
          "NJ",
          "NM",
          "NY",
          "NC",
          "ND",
          "OH",
          "OK",
          "OR",
          "PA",
          "RI",
          "SC",
          "SD",
          "TN",
          "TX",
          "UT",
          "VT",
          "VA",
          "WA",
          "WV",
          "WI",
          "WY"
        ],
        "type": "string"
      },
      "getsaferequest__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getsaferequest__ValuationType": {
        "enum": [
          "PreMoney",
          "PostMoney",
          "NoValuation"
        ],
        "type": "string"
      },
      "getsaferequestdocument__PDFDocument": {
        "format": "binary",
        "type": "string"
      },
      "getsaferequests__APISafeRequest": {
        "description": " A summary of a SAFE request.",
        "properties": {
          "canceledAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequests__UTCTime"
              }
            ],
            "nullable": true
          },
          "discountRate": {
            "multipleOf": 0.01,
            "nullable": true,
            "type": "number"
          },
          "documentUrl": {
            "type": "string"
          },
          "expiresAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequests__UTCTime"
              }
            ]
          },
          "governingState": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequests__USState"
              }
            ],
            "nullable": true
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequests__SafeRequestId"
              }
            ]
          },
          "includesMostFavoredNationClause": {
            "type": "boolean"
          },
          "includesProRataRightsLetter": {
            "type": "boolean"
          },
          "investmentAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequests__PositiveDollar"
              }
            ]
          },
          "investmentDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequests__Day"
              }
            ]
          },
          "investor": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequests__APISafeRequestInvestor"
              }
            ]
          },
          "organization": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequests__APISafeRequestOrganization"
              }
            ]
          },
          "paidAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequests__UTCTime"
              }
            ],
            "nullable": true
          },
          "signedByInvestorAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequests__UTCTime"
              }
            ],
            "nullable": true
          },
          "signedByOwnerAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequests__UTCTime"
              }
            ],
            "nullable": true
          },
          "valuationCap": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequests__PositiveDollar"
              }
            ],
            "nullable": true
          },
          "valuationType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequests__ValuationType"
              }
            ]
          }
        },
        "required": [
          "id",
          "documentUrl",
          "expiresAt",
          "includesMostFavoredNationClause",
          "includesProRataRightsLetter",
          "investmentAmount",
          "investor",
          "investmentDate",
          "organization",
          "valuationType"
        ],
        "type": "object"
      },
      "getsaferequests__APISafeRequestInvestor": {
        "description": " Details about the investor buying the equity.",
        "properties": {
          "additionalBylines": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "address": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "investorType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequests__SafeRequestInvestorType"
              }
            ]
          },
          "legalEntityName": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "signatoryEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequests__Email"
              }
            ]
          },
          "signatoryName": {
            "maxLength": 5000,
            "minLength": 1,
            "type": "string"
          },
          "signatoryTitle": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "signatoryName",
          "signatoryEmail",
          "legalEntityName",
          "investorType"
        ],
        "type": "object"
      },
      "getsaferequests__APISafeRequestOrganization": {
        "description": " Details about the organization selling the equity",
        "properties": {
          "legalEntityName": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "signatoryEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsaferequests__Email"
              }
            ]
          },
          "signatoryName": {
            "maxLength": 5000,
            "minLength": 1,
            "type": "string"
          },
          "signatoryTitle": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "legalEntityName",
          "signatoryName",
          "signatoryTitle",
          "signatoryEmail"
        ],
        "type": "object"
      },
      "getsaferequests__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "getsaferequests__Email": {
        "type": "string"
      },
      "getsaferequests__PositiveDollar": {
        "description": "A positive dollar amount with at least 1 cent.",
        "format": "double",
        "minimum": 0.01,
        "type": "number"
      },
      "getsaferequests__SafeRequestId": {
        "description": "ID for the SAFE request",
        "format": "uuid",
        "type": "string"
      },
      "getsaferequests__SafeRequestInvestorType": {
        "enum": [
          "SafeRequestInvestorTypeIndividual",
          "SafeRequestInvestorTypeVentureFund",
          "SafeRequestInvestorTypeOther"
        ],
        "type": "string"
      },
      "getsaferequests__USState": {
        "enum": [
          "AL",
          "AK",
          "AZ",
          "AR",
          "CA",
          "CO",
          "CT",
          "DE",
          "DC",
          "FL",
          "GA",
          "HI",
          "ID",
          "IL",
          "IN",
          "IA",
          "KS",
          "KY",
          "LA",
          "ME",
          "MD",
          "MA",
          "MI",
          "MN",
          "MS",
          "MO",
          "MT",
          "NE",
          "NV",
          "NH",
          "NJ",
          "NM",
          "NY",
          "NC",
          "ND",
          "OH",
          "OK",
          "OR",
          "PA",
          "RI",
          "SC",
          "SD",
          "TN",
          "TX",
          "UT",
          "VT",
          "VA",
          "WA",
          "WV",
          "WI",
          "WY"
        ],
        "type": "string"
      },
      "getsaferequests__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getsaferequests__ValuationType": {
        "enum": [
          "PreMoney",
          "PostMoney",
          "NoValuation"
        ],
        "type": "string"
      },
      "getsendmoneyapprovalrequest__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "getsendmoneyapprovalrequest__PaymentApprovalReview": {
        "properties": {
          "reviewedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsendmoneyapprovalrequest__UTCTime"
              }
            ]
          },
          "reviewerUserId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsendmoneyapprovalrequest__UserId"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsendmoneyapprovalrequest__PaymentApprovalReviewStatus"
              }
            ]
          }
        },
        "required": [
          "reviewerUserId",
          "status",
          "reviewedAt"
        ],
        "type": "object"
      },
      "getsendmoneyapprovalrequest__PaymentApprovalReviewStatus": {
        "enum": [
          "approved",
          "rejected"
        ],
        "type": "string"
      },
      "getsendmoneyapprovalrequest__PositiveDollar": {
        "description": "A positive dollar amount with at least 1 cent.",
        "format": "double",
        "minimum": 0.01,
        "type": "number"
      },
      "getsendmoneyapprovalrequest__RequestSendMoneyPaymentMethod": {
        "enum": [
          "ach",
          "check",
          "domesticWire",
          "internationalWire",
          "realTimePayment"
        ],
        "type": "string"
      },
      "getsendmoneyapprovalrequest__ReviewRequestStatus": {
        "enum": [
          "pendingApproval",
          "approved",
          "rejected",
          "cancelled"
        ],
        "type": "string"
      },
      "getsendmoneyapprovalrequest__SendMoneyApprovalRequestResponse": {
        "description": " A pending or completed approval request for a Mercury payment.",
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsendmoneyapprovalrequest__TransactionPartyId"
              }
            ]
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsendmoneyapprovalrequest__PositiveDollar"
              }
            ]
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsendmoneyapprovalrequest__UTCTime"
              },
              {
                "description": " Time at which the payment request was created."
              }
            ]
          },
          "memo": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "numberOfApproversRequired": {
            "description": " Total number of approvals required for this payment to be sent.\n Omitted for older requests where the requirement is not available.",
            "maximum": 9223372036854776000,
            "minimum": -9223372036854776000,
            "nullable": true,
            "type": "integer"
          },
          "paymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsendmoneyapprovalrequest__RequestSendMoneyPaymentMethod"
              }
            ]
          },
          "recipientId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsendmoneyapprovalrequest__TransactionPartyId"
              }
            ]
          },
          "requestId": {
            "type": "string"
          },
          "requestedByUserId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsendmoneyapprovalrequest__UserId"
              },
              {
                "description": " The user who created the payment request."
              }
            ]
          },
          "requesterMayApprove": {
            "description": " True when the approval requirement recorded for this payment names the\n requester as its approver. Reflects the recorded requirement, not the\n requester's current standing, so submitting the approval can still be\n refused. The value persists after the request settles and says only whether\n the requirement names the requester; whether an approval is still\n outstanding is carried by numberOfApproversRequired and status. Omitted for\n older requests where the requirement is not available.",
            "nullable": true,
            "type": "boolean"
          },
          "reviews": {
            "description": " Approval decisions recorded against this request, ordered from\n oldest to most recent.",
            "items": {
              "$ref": "#/components/schemas/getsendmoneyapprovalrequest__PaymentApprovalReview"
            },
            "type": "array"
          },
          "scheduledSendDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsendmoneyapprovalrequest__Day"
              },
              {
                "description": " Date on which the payment is scheduled to be sent once fully\n approved. Null when the payment will be sent as soon as approvals\n are complete."
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getsendmoneyapprovalrequest__ReviewRequestStatus"
              }
            ]
          }
        },
        "required": [
          "accountId",
          "requestId",
          "recipientId",
          "paymentMethod",
          "amount",
          "status",
          "requestedByUserId",
          "reviews",
          "createdAt"
        ],
        "type": "object"
      },
      "getsendmoneyapprovalrequest__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "getsendmoneyapprovalrequest__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getsendmoneyapprovalrequest__UserId": {
        "description": "ID for the user",
        "format": "uuid",
        "type": "string"
      },
      "getstatementpdf__PDFDocument": {
        "format": "binary",
        "type": "string"
      },
      "gettransaction__AccountingSyncStatus": {
        "enum": [
          "pending",
          "reviewed",
          "syncing",
          "synced",
          "errored",
          "excluded"
        ],
        "type": "string"
      },
      "gettransaction__AddressData": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__USState"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "address1",
          "city",
          "postalCode"
        ],
        "type": "object"
      },
      "gettransaction__AddressWithoutName": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__ISO3166Alpha2"
              }
            ]
          },
          "postalCode": {
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__Region"
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "gettransaction__CategoryData": {
        "description": " Represents an expense category for transaction classification.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__CategoryId"
              },
              {
                "description": " The ID of the category"
              }
            ]
          },
          "name": {
            "description": " The name of the category",
            "type": "string"
          },
          "visibleForCardSpend": {
            "description": " Whether this category is applicable to card transactions",
            "type": "boolean"
          },
          "visibleForOther": {
            "description": " Whether this category is applicable to all other transaction kinds",
            "type": "boolean"
          },
          "visibleForReimbursements": {
            "description": " Whether this category is applicable to expense reimbursement transactions",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "visibleForReimbursements",
          "visibleForCardSpend",
          "visibleForOther"
        ],
        "type": "object"
      },
      "gettransaction__CategoryId": {
        "description": "ID for the category",
        "format": "uuid",
        "type": "string"
      },
      "gettransaction__CreditCardId": {
        "format": "uuid",
        "type": "string"
      },
      "gettransaction__CreditCardInfo": {
        "properties": {
          "email": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__CreditCardId"
              },
              {
                "description": " Superseded by the flat `transaction.cardId`, which identifies the card on any card payment\n or refund without branching on debit vs credit. Retained for backwards compatibility; a formal\n (OpenAPI-level) deprecation will follow in a separate change."
              }
            ]
          },
          "paymentMethod": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "paymentMethod"
        ],
        "type": "object"
      },
      "gettransaction__CurrencyCode": {
        "type": "string"
      },
      "gettransaction__CurrencyExchangeInfo": {
        "properties": {
          "convertedFromAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "convertedFromCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__CurrencyCode"
              }
            ]
          },
          "convertedToAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "convertedToCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__CurrencyCode"
              }
            ]
          },
          "exchangeRate": {
            "description": " Exchange rate goes from \"from currency\" to \"to currency\"\n (ie from currency * exchange rate = to currency)",
            "multipleOf": 0.0001,
            "type": "number"
          },
          "feeAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "feePercentage": {
            "multipleOf": 0.0001,
            "type": "number"
          },
          "feeTransactionId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__TransactionMetadataId"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "convertedFromCurrency",
          "convertedToCurrency",
          "convertedFromAmount",
          "convertedToAmount",
          "feeAmount",
          "feePercentage",
          "exchangeRate"
        ],
        "type": "object"
      },
      "gettransaction__DebitCardId": {
        "format": "uuid",
        "type": "string"
      },
      "gettransaction__DebitCardInfo": {
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__DebitCardId"
              },
              {
                "description": " Superseded by the flat `transaction.cardId`, which identifies the card on any card payment\n or refund without branching on debit vs credit. Retained for backwards compatibility; a formal\n (OpenAPI-level) deprecation will follow in a separate change."
              }
            ]
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "gettransaction__DomesticWireRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber"
        ],
        "type": "object"
      },
      "gettransaction__ElectronicAccountType": {
        "enum": [
          "businessChecking",
          "businessSavings",
          "personalChecking",
          "personalSavings",
          "businessGeneralLedger",
          "personalGeneralLedger",
          "businessLoan",
          "personalLoan"
        ],
        "type": "string"
      },
      "gettransaction__ElectronicRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "electronicAccountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__ElectronicAccountType"
              }
            ]
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "electronicAccountType"
        ],
        "type": "object"
      },
      "gettransaction__GlAllocation": {
        "description": " A GL code allocation on a transaction — a GL code name paired with the amount\n allocated to it. When a transaction is fully categorized, the amounts across all\n allocations sum to the transaction total.",
        "properties": {
          "amount": {
            "description": " The amount allocated to this GL code",
            "multipleOf": 0.01,
            "type": "number"
          },
          "className": {
            "description": " The name of the class from the connected accounting integration, if assigned",
            "nullable": true,
            "type": "string"
          },
          "departmentName": {
            "description": " The name of the department from the connected accounting integration, if assigned",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": " Optional user-provided description for this allocation",
            "nullable": true,
            "type": "string"
          },
          "glCodeName": {
            "description": " The name of the GL code from the connected accounting integration",
            "type": "string"
          }
        },
        "required": [
          "glCodeName",
          "amount"
        ],
        "type": "object"
      },
      "gettransaction__ISO3166Alpha2": {
        "type": "string"
      },
      "gettransaction__InternationalWireAustraliaSpecificData": {
        "properties": {
          "bsbCode": {
            "type": "string"
          }
        },
        "required": [
          "bsbCode"
        ],
        "type": "object"
      },
      "gettransaction__InternationalWireBrazilSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "gettransaction__InternationalWireCanadaSpecificData": {
        "properties": {
          "bankCode": {
            "type": "string"
          },
          "transitNumber": {
            "type": "string"
          }
        },
        "required": [
          "bankCode",
          "transitNumber"
        ],
        "type": "object"
      },
      "gettransaction__InternationalWireChileSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "gettransaction__InternationalWireColombiaSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "gettransaction__InternationalWireCorrespondentInfo": {
        "properties": {
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "gettransaction__InternationalWireCountrySpecificData": {
        "properties": {
          "australia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWireAustraliaSpecificData"
              }
            ],
            "nullable": true
          },
          "brazil": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWireBrazilSpecificData"
              }
            ],
            "nullable": true
          },
          "canada": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWireCanadaSpecificData"
              }
            ],
            "nullable": true
          },
          "chile": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWireChileSpecificData"
              }
            ],
            "nullable": true
          },
          "colombia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWireColombiaSpecificData"
              }
            ],
            "nullable": true
          },
          "dominicanRepublic": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWireDominicanRepublicSpecificData"
              }
            ],
            "nullable": true
          },
          "honduras": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWireHondurasSpecificData"
              }
            ],
            "nullable": true
          },
          "india": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWireIndiaSpecificData"
              }
            ],
            "nullable": true
          },
          "kazakhstan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWireKazakhstanSpecificData"
              }
            ],
            "nullable": true
          },
          "pakistan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWirePakistanSpecificData"
              }
            ],
            "nullable": true
          },
          "paraguay": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWireParaguaySpecificData"
              }
            ],
            "nullable": true
          },
          "philippines": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWirePhilippinesSpecificData"
              }
            ],
            "nullable": true
          },
          "russia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWireRussiaSpecificData"
              }
            ],
            "nullable": true
          },
          "southAfrica": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWireSouthAfricaSpecificData"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "gettransaction__InternationalWireDominicanRepublicSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "gettransaction__InternationalWireHondurasSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "gettransaction__InternationalWireIndiaSpecificData": {
        "properties": {
          "ifscCode": {
            "type": "string"
          }
        },
        "required": [
          "ifscCode"
        ],
        "type": "object"
      },
      "gettransaction__InternationalWireKazakhstanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "gettransaction__InternationalWirePakistanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          },
          "legalIdType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__PakistaniLegalIdType"
              }
            ]
          }
        },
        "required": [
          "legalIdType",
          "legalId"
        ],
        "type": "object"
      },
      "gettransaction__InternationalWireParaguaySpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "gettransaction__InternationalWirePhilippinesSpecificData": {
        "properties": {
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "routingNumber"
        ],
        "type": "object"
      },
      "gettransaction__InternationalWireRoutingInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankDetails": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__SwiftCodeData"
              }
            ],
            "nullable": true
          },
          "correspondentInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWireCorrespondentInfo"
              }
            ],
            "nullable": true
          },
          "countrySpecific": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWireCountrySpecificData"
              }
            ]
          },
          "emailAddress": {
            "nullable": true,
            "type": "string"
          },
          "iban": {
            "type": "string"
          },
          "phoneNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "type": "string"
          }
        },
        "required": [
          "iban",
          "swiftCode",
          "countrySpecific"
        ],
        "type": "object"
      },
      "gettransaction__InternationalWireRussiaSpecificData": {
        "properties": {
          "inn": {
            "type": "string"
          }
        },
        "required": [
          "inn"
        ],
        "type": "object"
      },
      "gettransaction__InternationalWireSouthAfricaSpecificData": {
        "properties": {
          "branchCode": {
            "type": "string"
          }
        },
        "required": [
          "branchCode"
        ],
        "type": "object"
      },
      "gettransaction__MerchantData": {
        "description": " Merchant information for card transactions",
        "properties": {
          "amount": {
            "description": " The transaction amount in the smallest unit of the merchant's currency\n (e.g., cents for USD/EUR, yen for JPY, fils for BHD).\n For debits this is negative, for credits positive.\n Use 'merchantCurrency' to determine the appropriate decimal scaling:\n most currencies use 2 decimal places (divide by 100), but JPY uses 0\n (no division needed) and BHD/KWD/OMR use 3 (divide by 1000).\n This is useful for international transactions where the merchant charges in a\n currency different from the account currency. Nothing if not available.",
            "format": "int64",
            "maximum": 9223372036854776000,
            "minimum": -9223372036854776000,
            "nullable": true,
            "type": "integer"
          },
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__MercuryCategory"
              },
              {
                "description": " Mercury category for the merchant (e.g., \"Restaurants\", \"Software\")"
              }
            ],
            "nullable": true
          },
          "categoryCode": {
            "description": " 4-digit merchant category code (MCC) for card transactions",
            "nullable": true,
            "type": "string"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__CurrencyCode"
              },
              {
                "description": " ISO 4217 currency code of the merchant's currency (e.g., \"EUR\", \"GBP\", \"JPY\").\n Nothing if not available."
              }
            ],
            "nullable": true
          },
          "id": {
            "description": " Merchant ID for card transactions",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "gettransaction__MercuryCategory": {
        "enum": [
          "Other",
          "Advertising",
          "Airlines",
          "AlcoholAndBars",
          "BooksAndNewspaper",
          "CarRental",
          "Charity",
          "Clothing",
          "Conferences",
          "Education",
          "Electronics",
          "Entertainment",
          "FacilitiesExpenses",
          "Fees",
          "FoodDelivery",
          "FuelAndGas",
          "Gambling",
          "GovernmentServices",
          "Grocery",
          "GroundTransportation",
          "Insurance",
          "InternetAndTelephone",
          "Legal",
          "Lodging",
          "Medical",
          "Memberships",
          "OfficeSupplies",
          "OtherTravel",
          "Parking",
          "Political",
          "ProfessionalServices",
          "Restaurants",
          "Retail",
          "RideshareAndTaxis",
          "Shipping",
          "Software",
          "Taxes",
          "Utilities",
          "VehicleExpenses"
        ],
        "type": "string"
      },
      "gettransaction__MercuryCreditAccountStatementPeriodId": {
        "description": "ID for the credit statement period",
        "format": "uuid",
        "type": "string"
      },
      "gettransaction__PakistaniLegalIdType": {
        "enum": [
          "CNIC",
          "SNIC",
          "Passport",
          "NTN"
        ],
        "type": "string"
      },
      "gettransaction__Region": {
        "type": "string"
      },
      "gettransaction__RelatedTransactionData": {
        "description": " A Public API version of RelatedTransactionData.",
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__TransactionPartyId"
              }
            ]
          },
          "amount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__TransactionMetadataId"
              }
            ]
          },
          "relationKind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__TransactionRelationKind"
              }
            ]
          }
        },
        "required": [
          "id",
          "accountId",
          "relationKind",
          "amount"
        ],
        "type": "object"
      },
      "gettransaction__SwiftBankAccountType": {
        "enum": [
          "checking",
          "savings"
        ],
        "type": "string"
      },
      "gettransaction__SwiftCodeData": {
        "properties": {
          "bankCityState": {
            "type": "string"
          },
          "bankCountry": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__ISO3166Alpha2"
              }
            ]
          },
          "bankName": {
            "type": "string"
          }
        },
        "required": [
          "bankName",
          "bankCityState",
          "bankCountry"
        ],
        "type": "object"
      },
      "gettransaction__Transaction": {
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__TransactionPartyId"
              },
              {
                "description": " The external-facing account identifier for the Mercury account that owns this transaction"
              }
            ]
          },
          "accountingStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__TransactionAccountingStatus"
              },
              {
                "description": " Review and sync status of this transaction for the connected accounting integration (e.g.\n QuickBooks, Xero, NetSuite). A transaction with no accounting activity is pending with no\n timestamps. Null if the caller is not authorized to read accounting status, if the\n organization has no active general ledger (no active Books or third-party ERP ledger), and\n on the responses of endpoints that create transactions or transfers."
              }
            ],
            "nullable": true
          },
          "amount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/gettransaction__TransactionAttachment"
            },
            "type": "array"
          },
          "bankDescription": {
            "nullable": true,
            "type": "string"
          },
          "cardId": {
            "description": " Id of the card behind this transaction, present on card payments and refunds (debit or\n credit); null otherwise, including for card-related fee transactions. Fetch the card's details\n (kind, cardholder, last four, etc.) via the Cards API (`GET /cards/{cardId}`). Supersedes the\n kind-specific `details.creditCardInfo.id` / `details.debitCardInfo.id`.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "categoryData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__CategoryData"
              }
            ],
            "nullable": true
          },
          "checkNumber": {
            "description": " Present for check deposits and mailed checks; Nothing otherwise.",
            "nullable": true,
            "type": "string"
          },
          "compliantWithReceiptPolicy": {
            "type": "boolean"
          },
          "counterpartyId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__TransactionPartyId"
              }
            ]
          },
          "counterpartyName": {
            "type": "string"
          },
          "counterpartyNickname": {
            "nullable": true,
            "type": "string"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__UTCTime"
              }
            ]
          },
          "creditAccountPeriodId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__MercuryCreditAccountStatementPeriodId"
              }
            ],
            "nullable": true
          },
          "currencyExchangeInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__CurrencyExchangeInfo"
              }
            ],
            "nullable": true
          },
          "dashboardLink": {
            "type": "string"
          },
          "details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__TransactionMethodData"
              }
            ],
            "nullable": true
          },
          "estimatedDeliveryDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__UTCTime"
              }
            ]
          },
          "externalMemo": {
            "nullable": true,
            "type": "string"
          },
          "failedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__UTCTime"
              }
            ],
            "nullable": true
          },
          "feeId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__TransactionMetadataId"
              }
            ],
            "nullable": true
          },
          "generalLedgerCodeName": {
            "description": " Deprecated: use transactionGlAllocations instead. This field does not reflect GL codes\n assigned via Mercury auto-categorization rules. Preserved for backwards compatibility.",
            "nullable": true,
            "type": "string"
          },
          "glAllocations": {
            "description": " GL code allocations assigned to this transaction via a connected accounting software\n integration (e.g. QuickBooks, Xero, NetSuite). Each allocation has a GL code name and\n the amount allocated to it; amounts sum to the transaction total when the transaction is\n fully categorized. Empty if no GL codes have been assigned. Distinct from Mercury custom\n categories (see transactionCategoryData).",
            "items": {
              "$ref": "#/components/schemas/gettransaction__GlAllocation"
            },
            "type": "array"
          },
          "hasGeneratedReceipt": {
            "type": "boolean"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__TransactionMetadataId"
              }
            ]
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__TransactionKind"
              }
            ]
          },
          "merchant": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__MerchantData"
              },
              {
                "description": " Merchant information for card transactions, including the merchant category code (MCC),\n merchant ID, Mercury category, and for international transactions, the amount and currency\n in the merchant's local currency. Nothing for non-card transactions."
              }
            ],
            "nullable": true
          },
          "mercuryCategory": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__MercuryCategory"
              }
            ],
            "nullable": true
          },
          "note": {
            "nullable": true,
            "type": "string"
          },
          "postedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__UTCTime"
              }
            ],
            "nullable": true
          },
          "reasonForFailure": {
            "nullable": true,
            "type": "string"
          },
          "relatedTransactions": {
            "items": {
              "$ref": "#/components/schemas/gettransaction__RelatedTransactionData"
            },
            "type": "array"
          },
          "requestId": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__TransactionStatus"
              }
            ]
          },
          "trackingNumber": {
            "description": " Present for transactions that have tracking numbers (e.g., RTP, ACH, wires); Nothing otherwise.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "amount",
          "createdAt",
          "estimatedDeliveryDate",
          "status",
          "counterpartyId",
          "dashboardLink",
          "counterpartyName",
          "kind",
          "compliantWithReceiptPolicy",
          "hasGeneratedReceipt",
          "glAllocations",
          "attachments",
          "relatedTransactions",
          "accountId"
        ],
        "type": "object"
      },
      "gettransaction__TransactionAccountingStatus": {
        "description": " A transaction's accounting review and sync status, for the accounting integration connected\n to the organization (e.g. QuickBooks, Xero, NetSuite).",
        "properties": {
          "erroredAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__UTCTime"
              },
              {
                "description": " When the sync of the transaction to the accounting integration failed. Null if it has not\n failed."
              }
            ],
            "nullable": true
          },
          "excludedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__UTCTime"
              },
              {
                "description": " When the transaction was excluded from accounting sync. Null if it is not excluded."
              }
            ],
            "nullable": true
          },
          "reviewedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__UTCTime"
              },
              {
                "description": " When the transaction was last marked as reviewed. Null if it has not been reviewed."
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__AccountingSyncStatus"
              },
              {
                "description": " Current review and sync status of the transaction. pending: not reviewed or synced yet,\n including transactions with no accounting activity. reviewed: marked as reviewed and ready to\n sync. syncing: a sync has started but not finished. synced: synced successfully. errored: the\n sync failed. excluded: excluded from accounting sync. When more than one applies, the first of\n excluded, errored, synced, syncing and reviewed wins."
              }
            ]
          },
          "syncStartedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__UTCTime"
              },
              {
                "description": " When a sync of the transaction to the accounting integration was started. This is the\n start of the sync, not its completion (see syncedAt). Null if no sync has been started."
              }
            ],
            "nullable": true
          },
          "syncedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__UTCTime"
              },
              {
                "description": " When the transaction finished syncing to the accounting integration successfully. Null if\n it has not finished syncing."
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "gettransaction__TransactionAttachment": {
        "properties": {
          "attachmentType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__TransactionAttachmentType"
              }
            ]
          },
          "fileName": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "fileName",
          "url",
          "attachmentType"
        ],
        "type": "object"
      },
      "gettransaction__TransactionAttachmentType": {
        "enum": [
          "checkImage",
          "receipt",
          "other"
        ],
        "type": "string"
      },
      "gettransaction__TransactionKind": {
        "enum": [
          "externalTransfer",
          "internalTransfer",
          "outgoingPayment",
          "creditCardCredit",
          "creditCardTransaction",
          "debitCardCredit",
          "debitCardTransaction",
          "cardInternationalTransactionFee",
          "cardInternationalTransactionFeeRebate",
          "cardInternationalTransactionFeeReversal",
          "cardInternationalTransactionFeeRebateReversal",
          "incomingDomesticWire",
          "checkDeposit",
          "incomingInternationalWire",
          "treasuryTransfer",
          "currencyCloudReturn",
          "wireFee",
          "personalBankingSubscriptionFee",
          "billingEngineSubscriptionFee",
          "expenseReimbursement",
          "exogenousWireDrawdown",
          "interestPayment",
          "other"
        ],
        "type": "string"
      },
      "gettransaction__TransactionMetadataId": {
        "description": "ID for this transaction",
        "format": "uuid",
        "type": "string"
      },
      "gettransaction__TransactionMethodData": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__AddressData"
              }
            ],
            "nullable": true
          },
          "creditCardInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__CreditCardInfo"
              }
            ],
            "nullable": true
          },
          "debitCardInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__DebitCardInfo"
              }
            ],
            "nullable": true
          },
          "domesticWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__DomesticWireRoutingInfo"
              }
            ],
            "nullable": true
          },
          "electronicRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__ElectronicRoutingInfo"
              }
            ],
            "nullable": true
          },
          "internationalWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransaction__InternationalWireRoutingInfo"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "gettransaction__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "gettransaction__TransactionRelationKind": {
        "enum": [
          "ProvisionalCreditReversalToMerchantRefund",
          "MerchantRefundToProvisionalCreditReversal",
          "MerchantRefundToFraudulentCharge",
          "FraudulentChargeToMerchantRefund",
          "PaymentRefundToFailedPayment",
          "FailedPaymentToPaymentRefund",
          "GiftCompensationToOriginalTransaction",
          "FeePaymentToOriginalTransaction",
          "OriginalTransactionToFeePayment",
          "FeePaymentToFeeRebate",
          "FeeRebateToFeePayment",
          "FeePaymentToFeeReversal",
          "FeeReversalToFeePayment",
          "FeeRebateToFeeRebateReversal",
          "FeeRebateReversalToFeeRebate",
          "TreasurySplitLiquidation",
          "ProvisionalCreditToOriginalCharge",
          "OriginalChargeToProvisionalCredit",
          "FeeAtmReimbursementToAtmTransaction",
          "AtmTransactionToFeeAtmReimbursement",
          "AtmTransactionToAtmReimbursementReversal",
          "AtmReimbursementReversalToAtmTransaction",
          "ReturnToOriginalTransaction",
          "OriginalTransactionToReturn",
          "ProvisionalCreditToReversal",
          "ReversalToProvisionalCredit",
          "MerchantRefundToOriginalCharge",
          "OriginalChargeToMerchantRefund"
        ],
        "type": "string"
      },
      "gettransaction__TransactionStatus": {
        "enum": [
          "pending",
          "sent",
          "cancelled",
          "failed",
          "reversed",
          "blocked"
        ],
        "type": "string"
      },
      "gettransaction__USState": {
        "enum": [
          "AL",
          "AK",
          "AZ",
          "AR",
          "CA",
          "CO",
          "CT",
          "DE",
          "DC",
          "FL",
          "GA",
          "HI",
          "ID",
          "IL",
          "IN",
          "IA",
          "KS",
          "KY",
          "LA",
          "ME",
          "MD",
          "MA",
          "MI",
          "MN",
          "MS",
          "MO",
          "MT",
          "NE",
          "NV",
          "NH",
          "NJ",
          "NM",
          "NY",
          "NC",
          "ND",
          "OH",
          "OK",
          "OR",
          "PA",
          "RI",
          "SC",
          "SD",
          "TN",
          "TX",
          "UT",
          "VT",
          "VA",
          "WA",
          "WV",
          "WI",
          "WY"
        ],
        "type": "string"
      },
      "gettransaction__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "gettransactionbyid__AccountingSyncStatus": {
        "enum": [
          "pending",
          "reviewed",
          "syncing",
          "synced",
          "errored",
          "excluded"
        ],
        "type": "string"
      },
      "gettransactionbyid__AddressData": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__USState"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "address1",
          "city",
          "postalCode"
        ],
        "type": "object"
      },
      "gettransactionbyid__AddressWithoutName": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__ISO3166Alpha2"
              }
            ]
          },
          "postalCode": {
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__Region"
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "gettransactionbyid__CategoryData": {
        "description": " Represents an expense category for transaction classification.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__CategoryId"
              },
              {
                "description": " The ID of the category"
              }
            ]
          },
          "name": {
            "description": " The name of the category",
            "type": "string"
          },
          "visibleForCardSpend": {
            "description": " Whether this category is applicable to card transactions",
            "type": "boolean"
          },
          "visibleForOther": {
            "description": " Whether this category is applicable to all other transaction kinds",
            "type": "boolean"
          },
          "visibleForReimbursements": {
            "description": " Whether this category is applicable to expense reimbursement transactions",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "visibleForReimbursements",
          "visibleForCardSpend",
          "visibleForOther"
        ],
        "type": "object"
      },
      "gettransactionbyid__CategoryId": {
        "description": "ID for the category",
        "format": "uuid",
        "type": "string"
      },
      "gettransactionbyid__CreditCardId": {
        "format": "uuid",
        "type": "string"
      },
      "gettransactionbyid__CreditCardInfo": {
        "properties": {
          "email": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__CreditCardId"
              },
              {
                "description": " Superseded by the flat `transaction.cardId`, which identifies the card on any card payment\n or refund without branching on debit vs credit. Retained for backwards compatibility; a formal\n (OpenAPI-level) deprecation will follow in a separate change."
              }
            ]
          },
          "paymentMethod": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "paymentMethod"
        ],
        "type": "object"
      },
      "gettransactionbyid__CurrencyCode": {
        "type": "string"
      },
      "gettransactionbyid__CurrencyExchangeInfo": {
        "properties": {
          "convertedFromAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "convertedFromCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__CurrencyCode"
              }
            ]
          },
          "convertedToAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "convertedToCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__CurrencyCode"
              }
            ]
          },
          "exchangeRate": {
            "description": " Exchange rate goes from \"from currency\" to \"to currency\"\n (ie from currency * exchange rate = to currency)",
            "multipleOf": 0.0001,
            "type": "number"
          },
          "feeAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "feePercentage": {
            "multipleOf": 0.0001,
            "type": "number"
          },
          "feeTransactionId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__TransactionMetadataId"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "convertedFromCurrency",
          "convertedToCurrency",
          "convertedFromAmount",
          "convertedToAmount",
          "feeAmount",
          "feePercentage",
          "exchangeRate"
        ],
        "type": "object"
      },
      "gettransactionbyid__DebitCardId": {
        "format": "uuid",
        "type": "string"
      },
      "gettransactionbyid__DebitCardInfo": {
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__DebitCardId"
              },
              {
                "description": " Superseded by the flat `transaction.cardId`, which identifies the card on any card payment\n or refund without branching on debit vs credit. Retained for backwards compatibility; a formal\n (OpenAPI-level) deprecation will follow in a separate change."
              }
            ]
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "gettransactionbyid__DomesticWireRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber"
        ],
        "type": "object"
      },
      "gettransactionbyid__ElectronicAccountType": {
        "enum": [
          "businessChecking",
          "businessSavings",
          "personalChecking",
          "personalSavings",
          "businessGeneralLedger",
          "personalGeneralLedger",
          "businessLoan",
          "personalLoan"
        ],
        "type": "string"
      },
      "gettransactionbyid__ElectronicRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "electronicAccountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__ElectronicAccountType"
              }
            ]
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "electronicAccountType"
        ],
        "type": "object"
      },
      "gettransactionbyid__GlAllocation": {
        "description": " A GL code allocation on a transaction — a GL code name paired with the amount\n allocated to it. When a transaction is fully categorized, the amounts across all\n allocations sum to the transaction total.",
        "properties": {
          "amount": {
            "description": " The amount allocated to this GL code",
            "multipleOf": 0.01,
            "type": "number"
          },
          "className": {
            "description": " The name of the class from the connected accounting integration, if assigned",
            "nullable": true,
            "type": "string"
          },
          "departmentName": {
            "description": " The name of the department from the connected accounting integration, if assigned",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": " Optional user-provided description for this allocation",
            "nullable": true,
            "type": "string"
          },
          "glCodeName": {
            "description": " The name of the GL code from the connected accounting integration",
            "type": "string"
          }
        },
        "required": [
          "glCodeName",
          "amount"
        ],
        "type": "object"
      },
      "gettransactionbyid__ISO3166Alpha2": {
        "type": "string"
      },
      "gettransactionbyid__InternationalWireAustraliaSpecificData": {
        "properties": {
          "bsbCode": {
            "type": "string"
          }
        },
        "required": [
          "bsbCode"
        ],
        "type": "object"
      },
      "gettransactionbyid__InternationalWireBrazilSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "gettransactionbyid__InternationalWireCanadaSpecificData": {
        "properties": {
          "bankCode": {
            "type": "string"
          },
          "transitNumber": {
            "type": "string"
          }
        },
        "required": [
          "bankCode",
          "transitNumber"
        ],
        "type": "object"
      },
      "gettransactionbyid__InternationalWireChileSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "gettransactionbyid__InternationalWireColombiaSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "gettransactionbyid__InternationalWireCorrespondentInfo": {
        "properties": {
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "gettransactionbyid__InternationalWireCountrySpecificData": {
        "properties": {
          "australia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWireAustraliaSpecificData"
              }
            ],
            "nullable": true
          },
          "brazil": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWireBrazilSpecificData"
              }
            ],
            "nullable": true
          },
          "canada": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWireCanadaSpecificData"
              }
            ],
            "nullable": true
          },
          "chile": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWireChileSpecificData"
              }
            ],
            "nullable": true
          },
          "colombia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWireColombiaSpecificData"
              }
            ],
            "nullable": true
          },
          "dominicanRepublic": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWireDominicanRepublicSpecificData"
              }
            ],
            "nullable": true
          },
          "honduras": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWireHondurasSpecificData"
              }
            ],
            "nullable": true
          },
          "india": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWireIndiaSpecificData"
              }
            ],
            "nullable": true
          },
          "kazakhstan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWireKazakhstanSpecificData"
              }
            ],
            "nullable": true
          },
          "pakistan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWirePakistanSpecificData"
              }
            ],
            "nullable": true
          },
          "paraguay": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWireParaguaySpecificData"
              }
            ],
            "nullable": true
          },
          "philippines": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWirePhilippinesSpecificData"
              }
            ],
            "nullable": true
          },
          "russia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWireRussiaSpecificData"
              }
            ],
            "nullable": true
          },
          "southAfrica": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWireSouthAfricaSpecificData"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "gettransactionbyid__InternationalWireDominicanRepublicSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "gettransactionbyid__InternationalWireHondurasSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "gettransactionbyid__InternationalWireIndiaSpecificData": {
        "properties": {
          "ifscCode": {
            "type": "string"
          }
        },
        "required": [
          "ifscCode"
        ],
        "type": "object"
      },
      "gettransactionbyid__InternationalWireKazakhstanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "gettransactionbyid__InternationalWirePakistanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          },
          "legalIdType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__PakistaniLegalIdType"
              }
            ]
          }
        },
        "required": [
          "legalIdType",
          "legalId"
        ],
        "type": "object"
      },
      "gettransactionbyid__InternationalWireParaguaySpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "gettransactionbyid__InternationalWirePhilippinesSpecificData": {
        "properties": {
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "routingNumber"
        ],
        "type": "object"
      },
      "gettransactionbyid__InternationalWireRoutingInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankDetails": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__SwiftCodeData"
              }
            ],
            "nullable": true
          },
          "correspondentInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWireCorrespondentInfo"
              }
            ],
            "nullable": true
          },
          "countrySpecific": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWireCountrySpecificData"
              }
            ]
          },
          "emailAddress": {
            "nullable": true,
            "type": "string"
          },
          "iban": {
            "type": "string"
          },
          "phoneNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "type": "string"
          }
        },
        "required": [
          "iban",
          "swiftCode",
          "countrySpecific"
        ],
        "type": "object"
      },
      "gettransactionbyid__InternationalWireRussiaSpecificData": {
        "properties": {
          "inn": {
            "type": "string"
          }
        },
        "required": [
          "inn"
        ],
        "type": "object"
      },
      "gettransactionbyid__InternationalWireSouthAfricaSpecificData": {
        "properties": {
          "branchCode": {
            "type": "string"
          }
        },
        "required": [
          "branchCode"
        ],
        "type": "object"
      },
      "gettransactionbyid__MerchantData": {
        "description": " Merchant information for card transactions",
        "properties": {
          "amount": {
            "description": " The transaction amount in the smallest unit of the merchant's currency\n (e.g., cents for USD/EUR, yen for JPY, fils for BHD).\n For debits this is negative, for credits positive.\n Use 'merchantCurrency' to determine the appropriate decimal scaling:\n most currencies use 2 decimal places (divide by 100), but JPY uses 0\n (no division needed) and BHD/KWD/OMR use 3 (divide by 1000).\n This is useful for international transactions where the merchant charges in a\n currency different from the account currency. Nothing if not available.",
            "format": "int64",
            "maximum": 9223372036854776000,
            "minimum": -9223372036854776000,
            "nullable": true,
            "type": "integer"
          },
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__MercuryCategory"
              },
              {
                "description": " Mercury category for the merchant (e.g., \"Restaurants\", \"Software\")"
              }
            ],
            "nullable": true
          },
          "categoryCode": {
            "description": " 4-digit merchant category code (MCC) for card transactions",
            "nullable": true,
            "type": "string"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__CurrencyCode"
              },
              {
                "description": " ISO 4217 currency code of the merchant's currency (e.g., \"EUR\", \"GBP\", \"JPY\").\n Nothing if not available."
              }
            ],
            "nullable": true
          },
          "id": {
            "description": " Merchant ID for card transactions",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "gettransactionbyid__MercuryCategory": {
        "enum": [
          "Other",
          "Advertising",
          "Airlines",
          "AlcoholAndBars",
          "BooksAndNewspaper",
          "CarRental",
          "Charity",
          "Clothing",
          "Conferences",
          "Education",
          "Electronics",
          "Entertainment",
          "FacilitiesExpenses",
          "Fees",
          "FoodDelivery",
          "FuelAndGas",
          "Gambling",
          "GovernmentServices",
          "Grocery",
          "GroundTransportation",
          "Insurance",
          "InternetAndTelephone",
          "Legal",
          "Lodging",
          "Medical",
          "Memberships",
          "OfficeSupplies",
          "OtherTravel",
          "Parking",
          "Political",
          "ProfessionalServices",
          "Restaurants",
          "Retail",
          "RideshareAndTaxis",
          "Shipping",
          "Software",
          "Taxes",
          "Utilities",
          "VehicleExpenses"
        ],
        "type": "string"
      },
      "gettransactionbyid__MercuryCreditAccountStatementPeriodId": {
        "description": "ID for the credit statement period",
        "format": "uuid",
        "type": "string"
      },
      "gettransactionbyid__PakistaniLegalIdType": {
        "enum": [
          "CNIC",
          "SNIC",
          "Passport",
          "NTN"
        ],
        "type": "string"
      },
      "gettransactionbyid__Region": {
        "type": "string"
      },
      "gettransactionbyid__RelatedTransactionData": {
        "description": " A Public API version of RelatedTransactionData.",
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__TransactionPartyId"
              }
            ]
          },
          "amount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__TransactionMetadataId"
              }
            ]
          },
          "relationKind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__TransactionRelationKind"
              }
            ]
          }
        },
        "required": [
          "id",
          "accountId",
          "relationKind",
          "amount"
        ],
        "type": "object"
      },
      "gettransactionbyid__SwiftBankAccountType": {
        "enum": [
          "checking",
          "savings"
        ],
        "type": "string"
      },
      "gettransactionbyid__SwiftCodeData": {
        "properties": {
          "bankCityState": {
            "type": "string"
          },
          "bankCountry": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__ISO3166Alpha2"
              }
            ]
          },
          "bankName": {
            "type": "string"
          }
        },
        "required": [
          "bankName",
          "bankCityState",
          "bankCountry"
        ],
        "type": "object"
      },
      "gettransactionbyid__Transaction": {
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__TransactionPartyId"
              },
              {
                "description": " The external-facing account identifier for the Mercury account that owns this transaction"
              }
            ]
          },
          "accountingStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__TransactionAccountingStatus"
              },
              {
                "description": " Review and sync status of this transaction for the connected accounting integration (e.g.\n QuickBooks, Xero, NetSuite). A transaction with no accounting activity is pending with no\n timestamps. Null if the caller is not authorized to read accounting status, if the\n organization has no active general ledger (no active Books or third-party ERP ledger), and\n on the responses of endpoints that create transactions or transfers."
              }
            ],
            "nullable": true
          },
          "amount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/gettransactionbyid__TransactionAttachment"
            },
            "type": "array"
          },
          "bankDescription": {
            "nullable": true,
            "type": "string"
          },
          "cardId": {
            "description": " Id of the card behind this transaction, present on card payments and refunds (debit or\n credit); null otherwise, including for card-related fee transactions. Fetch the card's details\n (kind, cardholder, last four, etc.) via the Cards API (`GET /cards/{cardId}`). Supersedes the\n kind-specific `details.creditCardInfo.id` / `details.debitCardInfo.id`.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "categoryData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__CategoryData"
              }
            ],
            "nullable": true
          },
          "checkNumber": {
            "description": " Present for check deposits and mailed checks; Nothing otherwise.",
            "nullable": true,
            "type": "string"
          },
          "compliantWithReceiptPolicy": {
            "type": "boolean"
          },
          "counterpartyId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__TransactionPartyId"
              }
            ]
          },
          "counterpartyName": {
            "type": "string"
          },
          "counterpartyNickname": {
            "nullable": true,
            "type": "string"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__UTCTime"
              }
            ]
          },
          "creditAccountPeriodId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__MercuryCreditAccountStatementPeriodId"
              }
            ],
            "nullable": true
          },
          "currencyExchangeInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__CurrencyExchangeInfo"
              }
            ],
            "nullable": true
          },
          "dashboardLink": {
            "type": "string"
          },
          "details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__TransactionMethodData"
              }
            ],
            "nullable": true
          },
          "estimatedDeliveryDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__UTCTime"
              }
            ]
          },
          "externalMemo": {
            "nullable": true,
            "type": "string"
          },
          "failedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__UTCTime"
              }
            ],
            "nullable": true
          },
          "feeId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__TransactionMetadataId"
              }
            ],
            "nullable": true
          },
          "generalLedgerCodeName": {
            "description": " Deprecated: use transactionGlAllocations instead. This field does not reflect GL codes\n assigned via Mercury auto-categorization rules. Preserved for backwards compatibility.",
            "nullable": true,
            "type": "string"
          },
          "glAllocations": {
            "description": " GL code allocations assigned to this transaction via a connected accounting software\n integration (e.g. QuickBooks, Xero, NetSuite). Each allocation has a GL code name and\n the amount allocated to it; amounts sum to the transaction total when the transaction is\n fully categorized. Empty if no GL codes have been assigned. Distinct from Mercury custom\n categories (see transactionCategoryData).",
            "items": {
              "$ref": "#/components/schemas/gettransactionbyid__GlAllocation"
            },
            "type": "array"
          },
          "hasGeneratedReceipt": {
            "type": "boolean"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__TransactionMetadataId"
              }
            ]
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__TransactionKind"
              }
            ]
          },
          "merchant": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__MerchantData"
              },
              {
                "description": " Merchant information for card transactions, including the merchant category code (MCC),\n merchant ID, Mercury category, and for international transactions, the amount and currency\n in the merchant's local currency. Nothing for non-card transactions."
              }
            ],
            "nullable": true
          },
          "mercuryCategory": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__MercuryCategory"
              }
            ],
            "nullable": true
          },
          "note": {
            "nullable": true,
            "type": "string"
          },
          "postedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__UTCTime"
              }
            ],
            "nullable": true
          },
          "reasonForFailure": {
            "nullable": true,
            "type": "string"
          },
          "relatedTransactions": {
            "items": {
              "$ref": "#/components/schemas/gettransactionbyid__RelatedTransactionData"
            },
            "type": "array"
          },
          "requestId": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__TransactionStatus"
              }
            ]
          },
          "trackingNumber": {
            "description": " Present for transactions that have tracking numbers (e.g., RTP, ACH, wires); Nothing otherwise.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "amount",
          "createdAt",
          "estimatedDeliveryDate",
          "status",
          "counterpartyId",
          "dashboardLink",
          "counterpartyName",
          "kind",
          "compliantWithReceiptPolicy",
          "hasGeneratedReceipt",
          "glAllocations",
          "attachments",
          "relatedTransactions",
          "accountId"
        ],
        "type": "object"
      },
      "gettransactionbyid__TransactionAccountingStatus": {
        "description": " A transaction's accounting review and sync status, for the accounting integration connected\n to the organization (e.g. QuickBooks, Xero, NetSuite).",
        "properties": {
          "erroredAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__UTCTime"
              },
              {
                "description": " When the sync of the transaction to the accounting integration failed. Null if it has not\n failed."
              }
            ],
            "nullable": true
          },
          "excludedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__UTCTime"
              },
              {
                "description": " When the transaction was excluded from accounting sync. Null if it is not excluded."
              }
            ],
            "nullable": true
          },
          "reviewedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__UTCTime"
              },
              {
                "description": " When the transaction was last marked as reviewed. Null if it has not been reviewed."
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__AccountingSyncStatus"
              },
              {
                "description": " Current review and sync status of the transaction. pending: not reviewed or synced yet,\n including transactions with no accounting activity. reviewed: marked as reviewed and ready to\n sync. syncing: a sync has started but not finished. synced: synced successfully. errored: the\n sync failed. excluded: excluded from accounting sync. When more than one applies, the first of\n excluded, errored, synced, syncing and reviewed wins."
              }
            ]
          },
          "syncStartedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__UTCTime"
              },
              {
                "description": " When a sync of the transaction to the accounting integration was started. This is the\n start of the sync, not its completion (see syncedAt). Null if no sync has been started."
              }
            ],
            "nullable": true
          },
          "syncedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__UTCTime"
              },
              {
                "description": " When the transaction finished syncing to the accounting integration successfully. Null if\n it has not finished syncing."
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "gettransactionbyid__TransactionAttachment": {
        "properties": {
          "attachmentType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__TransactionAttachmentType"
              }
            ]
          },
          "fileName": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "fileName",
          "url",
          "attachmentType"
        ],
        "type": "object"
      },
      "gettransactionbyid__TransactionAttachmentType": {
        "enum": [
          "checkImage",
          "receipt",
          "other"
        ],
        "type": "string"
      },
      "gettransactionbyid__TransactionKind": {
        "enum": [
          "externalTransfer",
          "internalTransfer",
          "outgoingPayment",
          "creditCardCredit",
          "creditCardTransaction",
          "debitCardCredit",
          "debitCardTransaction",
          "cardInternationalTransactionFee",
          "cardInternationalTransactionFeeRebate",
          "cardInternationalTransactionFeeReversal",
          "cardInternationalTransactionFeeRebateReversal",
          "incomingDomesticWire",
          "checkDeposit",
          "incomingInternationalWire",
          "treasuryTransfer",
          "currencyCloudReturn",
          "wireFee",
          "personalBankingSubscriptionFee",
          "billingEngineSubscriptionFee",
          "expenseReimbursement",
          "exogenousWireDrawdown",
          "interestPayment",
          "other"
        ],
        "type": "string"
      },
      "gettransactionbyid__TransactionMetadataId": {
        "description": "ID for this transaction",
        "format": "uuid",
        "type": "string"
      },
      "gettransactionbyid__TransactionMethodData": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__AddressData"
              }
            ],
            "nullable": true
          },
          "creditCardInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__CreditCardInfo"
              }
            ],
            "nullable": true
          },
          "debitCardInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__DebitCardInfo"
              }
            ],
            "nullable": true
          },
          "domesticWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__DomesticWireRoutingInfo"
              }
            ],
            "nullable": true
          },
          "electronicRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__ElectronicRoutingInfo"
              }
            ],
            "nullable": true
          },
          "internationalWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransactionbyid__InternationalWireRoutingInfo"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "gettransactionbyid__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "gettransactionbyid__TransactionRelationKind": {
        "enum": [
          "ProvisionalCreditReversalToMerchantRefund",
          "MerchantRefundToProvisionalCreditReversal",
          "MerchantRefundToFraudulentCharge",
          "FraudulentChargeToMerchantRefund",
          "PaymentRefundToFailedPayment",
          "FailedPaymentToPaymentRefund",
          "GiftCompensationToOriginalTransaction",
          "FeePaymentToOriginalTransaction",
          "OriginalTransactionToFeePayment",
          "FeePaymentToFeeRebate",
          "FeeRebateToFeePayment",
          "FeePaymentToFeeReversal",
          "FeeReversalToFeePayment",
          "FeeRebateToFeeRebateReversal",
          "FeeRebateReversalToFeeRebate",
          "TreasurySplitLiquidation",
          "ProvisionalCreditToOriginalCharge",
          "OriginalChargeToProvisionalCredit",
          "FeeAtmReimbursementToAtmTransaction",
          "AtmTransactionToFeeAtmReimbursement",
          "AtmTransactionToAtmReimbursementReversal",
          "AtmReimbursementReversalToAtmTransaction",
          "ReturnToOriginalTransaction",
          "OriginalTransactionToReturn",
          "ProvisionalCreditToReversal",
          "ReversalToProvisionalCredit",
          "MerchantRefundToOriginalCharge",
          "OriginalChargeToMerchantRefund"
        ],
        "type": "string"
      },
      "gettransactionbyid__TransactionStatus": {
        "enum": [
          "pending",
          "sent",
          "cancelled",
          "failed",
          "reversed",
          "blocked"
        ],
        "type": "string"
      },
      "gettransactionbyid__USState": {
        "enum": [
          "AL",
          "AK",
          "AZ",
          "AR",
          "CA",
          "CO",
          "CT",
          "DE",
          "DC",
          "FL",
          "GA",
          "HI",
          "ID",
          "IL",
          "IN",
          "IA",
          "KS",
          "KY",
          "LA",
          "ME",
          "MD",
          "MA",
          "MI",
          "MN",
          "MS",
          "MO",
          "MT",
          "NE",
          "NV",
          "NH",
          "NJ",
          "NM",
          "NY",
          "NC",
          "ND",
          "OH",
          "OK",
          "OR",
          "PA",
          "RI",
          "SC",
          "SD",
          "TN",
          "TX",
          "UT",
          "VT",
          "VA",
          "WA",
          "WV",
          "WI",
          "WY"
        ],
        "type": "string"
      },
      "gettransactionbyid__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "gettransfermoneyapprovalrequest__PaymentApprovalReview": {
        "properties": {
          "reviewedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransfermoneyapprovalrequest__UTCTime"
              }
            ]
          },
          "reviewerUserId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransfermoneyapprovalrequest__UserId"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransfermoneyapprovalrequest__PaymentApprovalReviewStatus"
              }
            ]
          }
        },
        "required": [
          "reviewerUserId",
          "status",
          "reviewedAt"
        ],
        "type": "object"
      },
      "gettransfermoneyapprovalrequest__PaymentApprovalReviewStatus": {
        "enum": [
          "approved",
          "rejected"
        ],
        "type": "string"
      },
      "gettransfermoneyapprovalrequest__PositiveDollar": {
        "description": "A positive dollar amount with at least 1 cent.",
        "format": "double",
        "minimum": 0.01,
        "type": "number"
      },
      "gettransfermoneyapprovalrequest__ReviewRequestStatus": {
        "enum": [
          "pendingApproval",
          "approved",
          "rejected",
          "cancelled"
        ],
        "type": "string"
      },
      "gettransfermoneyapprovalrequest__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "gettransfermoneyapprovalrequest__TransferMoneyApprovalRequestResponse": {
        "description": " An approval request for a transfer between accounts.",
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransfermoneyapprovalrequest__PositiveDollar"
              }
            ]
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransfermoneyapprovalrequest__UTCTime"
              },
              {
                "description": " When the request was created."
              }
            ]
          },
          "destinationAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransfermoneyapprovalrequest__TransactionPartyId"
              },
              {
                "description": " The account the money is sent to."
              }
            ]
          },
          "memo": {
            "description": " Memo that appears on the resulting transaction.",
            "nullable": true,
            "type": "string"
          },
          "note": {
            "description": " Internal note recorded on the request. Not shown to any counterparty.",
            "nullable": true,
            "type": "string"
          },
          "numberOfApproversRequired": {
            "description": " Number of approvals required before the transfer is sent.",
            "maximum": 9223372036854776000,
            "minimum": -9223372036854776000,
            "nullable": true,
            "type": "integer"
          },
          "requestId": {
            "type": "string"
          },
          "requestedByUserId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransfermoneyapprovalrequest__UserId"
              },
              {
                "description": " The user who requested the transfer."
              }
            ]
          },
          "requesterMayApprove": {
            "description": " Whether the requester may approve this request. Omitted whenever numberOfApproversRequired is omitted.",
            "nullable": true,
            "type": "boolean"
          },
          "reviews": {
            "description": " Approval decisions recorded on this request, oldest first.",
            "items": {
              "$ref": "#/components/schemas/gettransfermoneyapprovalrequest__PaymentApprovalReview"
            },
            "type": "array"
          },
          "sourceAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransfermoneyapprovalrequest__TransactionPartyId"
              },
              {
                "description": " The account the money is sent from."
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettransfermoneyapprovalrequest__ReviewRequestStatus"
              }
            ]
          }
        },
        "required": [
          "requestId",
          "sourceAccountId",
          "destinationAccountId",
          "amount",
          "status",
          "requestedByUserId",
          "reviews",
          "createdAt"
        ],
        "type": "object"
      },
      "gettransfermoneyapprovalrequest__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "gettransfermoneyapprovalrequest__UserId": {
        "description": "ID for the user",
        "format": "uuid",
        "type": "string"
      },
      "gettreasury__AccountStatus": {
        "enum": [
          "active",
          "deleted",
          "pending",
          "archived"
        ],
        "type": "string"
      },
      "gettreasury__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "gettreasury__SecurityIdType": {
        "enum": [
          "cusip"
        ],
        "type": "string"
      },
      "gettreasury__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "gettreasury__TreasuryAccount": {
        "properties": {
          "availableBalance": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasury__UTCTime"
              }
            ]
          },
          "currentBalance": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasury__TransactionPartyId"
              }
            ]
          },
          "netReturns": {
            "description": " Monthly net return breakdown with dividend and fee details",
            "items": {
              "$ref": "#/components/schemas/gettreasury__TreasuryNetReturn"
            },
            "type": "array"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasury__AccountStatus"
              }
            ]
          }
        },
        "required": [
          "id",
          "status",
          "createdAt",
          "availableBalance",
          "currentBalance",
          "netReturns"
        ],
        "type": "object"
      },
      "gettreasury__TreasuryAccountsPaginatedResponse": {
        "description": " Paginated response type for treasury accounts API endpoint",
        "properties": {
          "accounts": {
            "description": " List of treasury accounts in the current page",
            "items": {
              "$ref": "#/components/schemas/gettreasury__TreasuryAccount"
            },
            "type": "array"
          },
          "page": {
            "description": " Pagination information including cursors for navigating to next/previous pages",
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/gettreasury__TransactionPartyId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/gettreasury__TransactionPartyId"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "accounts",
          "page"
        ],
        "type": "object"
      },
      "gettreasury__TreasuryDividend": {
        "description": " Dividend information for a specific treasury security",
        "properties": {
          "amount": {
            "description": " Dividend amount for this security",
            "multipleOf": 0.01,
            "type": "number"
          },
          "id": {
            "description": " Security identifier (e.g., \"617455696\")",
            "type": "string"
          },
          "securityName": {
            "description": " Human-readable security name (e.g., \"Morgan Stanley Ultra-Short Income Portfolio Class IR\")",
            "type": "string"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasury__SecurityIdType"
              },
              {
                "description": " Security identifier type"
              }
            ]
          }
        },
        "required": [
          "id",
          "type",
          "securityName",
          "amount"
        ],
        "type": "object"
      },
      "gettreasury__TreasuryNetReturn": {
        "description": " Monthly net return breakdown for a treasury account",
        "properties": {
          "dividends": {
            "description": " List of dividends received by security",
            "items": {
              "$ref": "#/components/schemas/gettreasury__TreasuryDividend"
            },
            "type": "array"
          },
          "month": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasury__Day"
              },
              {
                "description": " First day of the month for this net return"
              }
            ]
          },
          "netAmount": {
            "description": " Net return amount (dividends minus fees)",
            "multipleOf": 0.01,
            "type": "number"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasury__TreasuryNetReturnStatus"
              },
              {
                "description": " Status of this net return calculation"
              }
            ]
          },
          "treasuryFee": {
            "description": " Treasury fee charged for this period (positive value)",
            "multipleOf": 0.01,
            "type": "number"
          }
        },
        "required": [
          "month",
          "netAmount",
          "dividends",
          "treasuryFee",
          "status"
        ],
        "type": "object"
      },
      "gettreasury__TreasuryNetReturnStatus": {
        "enum": [
          "processing",
          "pending",
          "charged",
          "error"
        ],
        "type": "string"
      },
      "gettreasury__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "gettreasurystatements__AccountStatementId": {
        "description": "ID for the account statement",
        "format": "uuid",
        "type": "string"
      },
      "gettreasurystatements__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "gettreasurystatements__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "gettreasurystatements__TreasuryStatement": {
        "description": " Individual treasury statement in the response",
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasurystatements__TransactionPartyId"
              },
              {
                "description": " External treasury account ID this statement belongs to"
              }
            ]
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasurystatements__UTCTime"
              },
              {
                "description": " Timestamp when the record was created"
              }
            ]
          },
          "creationDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasurystatements__UTCTime"
              },
              {
                "description": " Date the statement was created by the custodian"
              }
            ]
          },
          "description": {
            "description": " Human-readable description of the statement",
            "type": "string"
          },
          "documentType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasurystatements__TreasuryStatementDocumentType"
              },
              {
                "description": " Type of document (e.g. monthly statement, trade confirmation, tax form)"
              }
            ]
          },
          "downloadUrl": {
            "description": " URL to download the statement PDF",
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasurystatements__AccountStatementId"
              },
              {
                "description": " Unique identifier for the statement"
              }
            ]
          },
          "periodEnd": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasurystatements__Day"
              },
              {
                "description": " End of the period covered by the statement"
              }
            ]
          },
          "periodStart": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasurystatements__Day"
              },
              {
                "description": " Start of the period covered by the statement"
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasurystatements__UTCTime"
              },
              {
                "description": " Timestamp when the record was last updated"
              }
            ]
          }
        },
        "required": [
          "id",
          "documentType",
          "description",
          "accountId",
          "creationDate",
          "periodStart",
          "periodEnd",
          "downloadUrl",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "gettreasurystatements__TreasuryStatementDocumentType": {
        "enum": [
          "MonthlyStatement",
          "TradeConfirmation",
          "1099",
          "1099R",
          "1042S",
          "5498",
          "5498ESA",
          "1099Q",
          "FMV",
          "SDIRA"
        ],
        "type": "string"
      },
      "gettreasurystatements__TreasuryStatementsPaginatedResponse": {
        "description": " Paginated response for treasury account statements",
        "properties": {
          "page": {
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/gettreasurystatements__AccountStatementId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/gettreasurystatements__AccountStatementId"
              }
            },
            "type": "object"
          },
          "statements": {
            "items": {
              "$ref": "#/components/schemas/gettreasurystatements__TreasuryStatement"
            },
            "type": "array"
          }
        },
        "required": [
          "statements",
          "page"
        ],
        "type": "object"
      },
      "gettreasurystatements__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "gettreasurytransactions__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "gettreasurytransactions__SliceSequenceNumber": {
        "description": "Pagination cursor for retrieving next batch of transactions",
        "minimum": 0,
        "type": "integer"
      },
      "gettreasurytransactions__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "gettreasurytransactions__TreasuryLedgerPostedTransactionId": {
        "description": "ID for this treasury transaction",
        "format": "uuid",
        "type": "string"
      },
      "gettreasurytransactions__TreasuryTransactionDetails": {
        "properties": {
          "creditDescription": {
            "nullable": true,
            "type": "string"
          },
          "depositCounterpartyId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasurytransactions__TransactionPartyId"
              }
            ],
            "nullable": true
          },
          "feeDescription": {
            "nullable": true,
            "type": "string"
          },
          "manualAmendmentDescription": {
            "nullable": true,
            "type": "string"
          },
          "security": {
            "nullable": true,
            "type": "string"
          },
          "sweepDirection": {
            "nullable": true,
            "type": "string"
          },
          "tradeAction": {
            "nullable": true,
            "type": "string"
          },
          "withdrawalCounterpartyId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasurytransactions__TransactionPartyId"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "gettreasurytransactions__TreasuryTransactionType": {
        "enum": [
          "depositCanceled",
          "depositComplete",
          "depositFailed",
          "depositReturned",
          "mercuryFeePosted",
          "mercuryFeeFailed",
          "mercuryFeeRefunded",
          "mercuryFeeCanceled",
          "withdrawalPosted",
          "withdrawalFailed",
          "withdrawalCanceled",
          "withdrawalReturned",
          "revertTxn",
          "interestPosted",
          "interestCanceled",
          "manualAmendmentPosted",
          "mercuryCreditPosted",
          "mercuryCreditFailed",
          "dividendPosted",
          "dividendCanceled",
          "dividendReinvestmentPosted",
          "mutualFundTradeFailed",
          "mutualFundTradePosted",
          "sweepInPosted",
          "sweepOutPosted",
          "sweepReconcilePosted",
          "valuationChangePosted",
          "oemsMutualFundOrderSettled",
          "oemsMutualFundOrderCanceled",
          "oemsMutualFundOrderRejected",
          "oemsFixedIncomeOrderSettled",
          "oemsFixedIncomeOrderCanceled",
          "oemsFixedIncomeOrderRejected",
          "couponPosted",
          "couponCanceled",
          "maturityPosted",
          "maturityCanceled"
        ],
        "type": "string"
      },
      "gettreasurytransactions__TreasuryTransactionsResponse": {
        "description": " Response type for treasury transactions API endpoint",
        "properties": {
          "cursor": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasurytransactions__SliceSequenceNumber"
              },
              {
                "description": " Pagination cursor for retrieving next batch of transactions"
              }
            ],
            "nullable": true
          },
          "transactions": {
            "description": " List of treasury transactions in the response",
            "items": {
              "$ref": "#/components/schemas/gettreasurytransactions__TreasuryTxn"
            },
            "type": "array"
          }
        },
        "required": [
          "transactions"
        ],
        "type": "object"
      },
      "gettreasurytransactions__TreasuryTxn": {
        "description": " Treasury transaction data for external API consumption",
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasurytransactions__TransactionPartyId"
              }
            ]
          },
          "additionalDetails": {
            "nullable": true,
            "type": "string"
          },
          "amount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "balance": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "canonicalDay": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasurytransactions__Day"
              }
            ]
          },
          "description": {
            "type": "string"
          },
          "details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasurytransactions__TreasuryTransactionDetails"
              }
            ],
            "nullable": true
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasurytransactions__TreasuryLedgerPostedTransactionId"
              }
            ]
          },
          "security": {
            "nullable": true,
            "type": "string"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/gettreasurytransactions__TreasuryTransactionType"
              }
            ]
          }
        },
        "required": [
          "type",
          "id",
          "accountId",
          "description",
          "amount",
          "canonicalDay",
          "balance"
        ],
        "type": "object"
      },
      "getuser__ApiUserRole": {
        "enum": [
          "administrator",
          "bookkeeper",
          "customUser",
          "cardOnlyUser",
          "employee"
        ],
        "type": "string"
      },
      "getuser__UserDetails": {
        "description": " Details of a user within an organization.",
        "properties": {
          "email": {
            "description": " User's email address",
            "type": "string"
          },
          "firstName": {
            "description": " User's first name",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "lastName": {
            "description": " User's last name",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "organizationRole": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getuser__ApiUserRole"
              },
              {
                "description": " User's role within the organization"
              }
            ]
          },
          "userId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getuser__UserId"
              },
              {
                "description": " Unique identifier for the user"
              }
            ]
          }
        },
        "required": [
          "userId",
          "firstName",
          "lastName",
          "email",
          "organizationRole"
        ],
        "type": "object"
      },
      "getuser__UserId": {
        "description": "ID for the user",
        "format": "uuid",
        "type": "string"
      },
      "getusers__ApiUserRole": {
        "enum": [
          "administrator",
          "bookkeeper",
          "customUser",
          "cardOnlyUser",
          "employee"
        ],
        "type": "string"
      },
      "getusers__UserDetails": {
        "description": " Details of a user within an organization.",
        "properties": {
          "email": {
            "description": " User's email address",
            "type": "string"
          },
          "firstName": {
            "description": " User's first name",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "lastName": {
            "description": " User's last name",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "organizationRole": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getusers__ApiUserRole"
              },
              {
                "description": " User's role within the organization"
              }
            ]
          },
          "userId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getusers__UserId"
              },
              {
                "description": " Unique identifier for the user"
              }
            ]
          }
        },
        "required": [
          "userId",
          "firstName",
          "lastName",
          "email",
          "organizationRole"
        ],
        "type": "object"
      },
      "getusers__UserId": {
        "description": "ID for the user",
        "format": "uuid",
        "type": "string"
      },
      "getusers__UsersPaginatedResponse": {
        "description": " Paginated response containing a list of organization users.",
        "properties": {
          "page": {
            "description": " Pagination information including cursors for navigating to next/previous pages",
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/getusers__UserId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/getusers__UserId"
              }
            },
            "type": "object"
          },
          "users": {
            "description": " List of users in the current page",
            "items": {
              "$ref": "#/components/schemas/getusers__UserDetails"
            },
            "type": "array"
          }
        },
        "required": [
          "users",
          "page"
        ],
        "type": "object"
      },
      "getwebhook__ApiWebhookEndpointId": {
        "description": "ID for the webhook",
        "format": "uuid",
        "type": "string"
      },
      "getwebhook__ApiWebhookResponse": {
        "description": " Webhook configuration details",
        "properties": {
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getwebhook__UTCTime"
              },
              {
                "description": " When the webhook was created"
              }
            ]
          },
          "eventTypes": {
            "description": " Optional array of event types this webhook is subscribed to. Nothing means all events.",
            "items": {
              "$ref": "#/components/schemas/getwebhook__WebhookEventType"
            },
            "nullable": true,
            "type": "array"
          },
          "filterPaths": {
            "description": " Optional array of resource field paths to filter events by. Nothing means no filtering.",
            "items": {
              "$ref": "#/components/schemas/getwebhook__ResourceField"
            },
            "nullable": true,
            "type": "array"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getwebhook__ApiWebhookEndpointId"
              },
              {
                "description": " Unique identifier for the webhook endpoint"
              }
            ]
          },
          "secret": {
            "description": " Webhook signing secret. Only returned on creation (POST), not on GET or UPDATE operations.",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getwebhook__ApiWebhookStatus"
              },
              {
                "description": " Current status of the webhook (active, paused, or disabled)"
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getwebhook__UTCTime"
              },
              {
                "description": " When the webhook was last updated"
              }
            ]
          },
          "url": {
            "description": " The URL that will receive webhook POST requests",
            "type": "string"
          }
        },
        "required": [
          "id",
          "url",
          "status",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "getwebhook__ApiWebhookStatus": {
        "description": "The status of the webhook endpoint. 'active': delivering events normally. 'paused': paused by the user. 'disabled': automatically disabled by the system due to consecutive delivery failures. A disabled webhook can be reactivated by updating its status to 'active'.",
        "enum": [
          "active",
          "paused",
          "disabled"
        ],
        "type": "string"
      },
      "getwebhook__ResourceField": {
        "enum": [
          "transaction.amount",
          "transaction.bankDescription",
          "transaction.categoryData",
          "transaction.customCategory",
          "transaction.customCategory.id",
          "transaction.customCategory.name",
          "transaction.mercuryCategory",
          "transaction.estimatedDeliveryDate",
          "transaction.externalMemo",
          "transaction.failedAt",
          "transaction.note",
          "transaction.postedAt",
          "transaction.reasonForFailure",
          "transaction.status",
          "checkingAccount.availableBalance",
          "checkingAccount.currentBalance",
          "checkingAccount.inFlightBalance",
          "savingsAccount.availableBalance",
          "savingsAccount.currentBalance",
          "savingsAccount.inFlightBalance",
          "treasuryAccount.availableBalance",
          "treasuryAccount.currentBalance",
          "treasuryAccount.inFlightBalance",
          "investmentAccount.availableBalance",
          "investmentAccount.currentBalance",
          "investmentAccount.inFlightBalance",
          "creditAccount.availableBalance",
          "creditAccount.currentBalance",
          "creditAccount.inFlightBalance"
        ],
        "type": "string"
      },
      "getwebhook__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getwebhook__WebhookEventType": {
        "enum": [
          "transaction.created",
          "transaction.updated",
          "checkingAccount.balance.updated",
          "savingsAccount.balance.updated",
          "treasuryAccount.balance.updated",
          "investmentAccount.balance.updated",
          "creditAccount.balance.updated"
        ],
        "type": "string"
      },
      "getwebhooks__ApiWebhookEndpointId": {
        "description": "ID for the webhook",
        "format": "uuid",
        "type": "string"
      },
      "getwebhooks__ApiWebhookResponse": {
        "description": " Webhook configuration details",
        "properties": {
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getwebhooks__UTCTime"
              },
              {
                "description": " When the webhook was created"
              }
            ]
          },
          "eventTypes": {
            "description": " Optional array of event types this webhook is subscribed to. Nothing means all events.",
            "items": {
              "$ref": "#/components/schemas/getwebhooks__WebhookEventType"
            },
            "nullable": true,
            "type": "array"
          },
          "filterPaths": {
            "description": " Optional array of resource field paths to filter events by. Nothing means no filtering.",
            "items": {
              "$ref": "#/components/schemas/getwebhooks__ResourceField"
            },
            "nullable": true,
            "type": "array"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getwebhooks__ApiWebhookEndpointId"
              },
              {
                "description": " Unique identifier for the webhook endpoint"
              }
            ]
          },
          "secret": {
            "description": " Webhook signing secret. Only returned on creation (POST), not on GET or UPDATE operations.",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getwebhooks__ApiWebhookStatus"
              },
              {
                "description": " Current status of the webhook (active, paused, or disabled)"
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/getwebhooks__UTCTime"
              },
              {
                "description": " When the webhook was last updated"
              }
            ]
          },
          "url": {
            "description": " The URL that will receive webhook POST requests",
            "type": "string"
          }
        },
        "required": [
          "id",
          "url",
          "status",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "getwebhooks__ApiWebhookStatus": {
        "description": "The status of the webhook endpoint. 'active': delivering events normally. 'paused': paused by the user. 'disabled': automatically disabled by the system due to consecutive delivery failures. A disabled webhook can be reactivated by updating its status to 'active'.",
        "enum": [
          "active",
          "paused",
          "disabled"
        ],
        "type": "string"
      },
      "getwebhooks__ApiWebhooksPaginatedResponse": {
        "description": " API response for listing webhook endpoints with pagination",
        "properties": {
          "page": {
            "description": " Pagination information including cursors for navigating to next/previous pages",
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/getwebhooks__ApiWebhookEndpointId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/getwebhooks__ApiWebhookEndpointId"
              }
            },
            "type": "object"
          },
          "webhooks": {
            "description": " List of webhooks in the current page",
            "items": {
              "$ref": "#/components/schemas/getwebhooks__ApiWebhookResponse"
            },
            "type": "array"
          }
        },
        "required": [
          "webhooks",
          "page"
        ],
        "type": "object"
      },
      "getwebhooks__ResourceField": {
        "enum": [
          "transaction.amount",
          "transaction.bankDescription",
          "transaction.categoryData",
          "transaction.customCategory",
          "transaction.customCategory.id",
          "transaction.customCategory.name",
          "transaction.mercuryCategory",
          "transaction.estimatedDeliveryDate",
          "transaction.externalMemo",
          "transaction.failedAt",
          "transaction.note",
          "transaction.postedAt",
          "transaction.reasonForFailure",
          "transaction.status",
          "checkingAccount.availableBalance",
          "checkingAccount.currentBalance",
          "checkingAccount.inFlightBalance",
          "savingsAccount.availableBalance",
          "savingsAccount.currentBalance",
          "savingsAccount.inFlightBalance",
          "treasuryAccount.availableBalance",
          "treasuryAccount.currentBalance",
          "treasuryAccount.inFlightBalance",
          "investmentAccount.availableBalance",
          "investmentAccount.currentBalance",
          "investmentAccount.inFlightBalance",
          "creditAccount.availableBalance",
          "creditAccount.currentBalance",
          "creditAccount.inFlightBalance"
        ],
        "type": "string"
      },
      "getwebhooks__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "getwebhooks__WebhookEventType": {
        "enum": [
          "transaction.created",
          "transaction.updated",
          "checkingAccount.balance.updated",
          "savingsAccount.balance.updated",
          "treasuryAccount.balance.updated",
          "investmentAccount.balance.updated",
          "creditAccount.balance.updated"
        ],
        "type": "string"
      },
      "listaccounttransactions__AccountingSyncStatus": {
        "enum": [
          "pending",
          "reviewed",
          "syncing",
          "synced",
          "errored",
          "excluded"
        ],
        "type": "string"
      },
      "listaccounttransactions__AddressData": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__USState"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "address1",
          "city",
          "postalCode"
        ],
        "type": "object"
      },
      "listaccounttransactions__AddressWithoutName": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__ISO3166Alpha2"
              }
            ]
          },
          "postalCode": {
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__Region"
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "listaccounttransactions__CategoryData": {
        "description": " Represents an expense category for transaction classification.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__CategoryId"
              },
              {
                "description": " The ID of the category"
              }
            ]
          },
          "name": {
            "description": " The name of the category",
            "type": "string"
          },
          "visibleForCardSpend": {
            "description": " Whether this category is applicable to card transactions",
            "type": "boolean"
          },
          "visibleForOther": {
            "description": " Whether this category is applicable to all other transaction kinds",
            "type": "boolean"
          },
          "visibleForReimbursements": {
            "description": " Whether this category is applicable to expense reimbursement transactions",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "visibleForReimbursements",
          "visibleForCardSpend",
          "visibleForOther"
        ],
        "type": "object"
      },
      "listaccounttransactions__CategoryId": {
        "description": "ID for the category",
        "format": "uuid",
        "type": "string"
      },
      "listaccounttransactions__CreditCardId": {
        "format": "uuid",
        "type": "string"
      },
      "listaccounttransactions__CreditCardInfo": {
        "properties": {
          "email": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__CreditCardId"
              },
              {
                "description": " Superseded by the flat `transaction.cardId`, which identifies the card on any card payment\n or refund without branching on debit vs credit. Retained for backwards compatibility; a formal\n (OpenAPI-level) deprecation will follow in a separate change."
              }
            ]
          },
          "paymentMethod": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "paymentMethod"
        ],
        "type": "object"
      },
      "listaccounttransactions__CurrencyCode": {
        "type": "string"
      },
      "listaccounttransactions__CurrencyExchangeInfo": {
        "properties": {
          "convertedFromAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "convertedFromCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__CurrencyCode"
              }
            ]
          },
          "convertedToAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "convertedToCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__CurrencyCode"
              }
            ]
          },
          "exchangeRate": {
            "description": " Exchange rate goes from \"from currency\" to \"to currency\"\n (ie from currency * exchange rate = to currency)",
            "multipleOf": 0.0001,
            "type": "number"
          },
          "feeAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "feePercentage": {
            "multipleOf": 0.0001,
            "type": "number"
          },
          "feeTransactionId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__TransactionMetadataId"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "convertedFromCurrency",
          "convertedToCurrency",
          "convertedFromAmount",
          "convertedToAmount",
          "feeAmount",
          "feePercentage",
          "exchangeRate"
        ],
        "type": "object"
      },
      "listaccounttransactions__DebitCardId": {
        "format": "uuid",
        "type": "string"
      },
      "listaccounttransactions__DebitCardInfo": {
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__DebitCardId"
              },
              {
                "description": " Superseded by the flat `transaction.cardId`, which identifies the card on any card payment\n or refund without branching on debit vs credit. Retained for backwards compatibility; a formal\n (OpenAPI-level) deprecation will follow in a separate change."
              }
            ]
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "listaccounttransactions__DomesticWireRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber"
        ],
        "type": "object"
      },
      "listaccounttransactions__ElectronicAccountType": {
        "enum": [
          "businessChecking",
          "businessSavings",
          "personalChecking",
          "personalSavings",
          "businessGeneralLedger",
          "personalGeneralLedger",
          "businessLoan",
          "personalLoan"
        ],
        "type": "string"
      },
      "listaccounttransactions__ElectronicRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "electronicAccountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__ElectronicAccountType"
              }
            ]
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "electronicAccountType"
        ],
        "type": "object"
      },
      "listaccounttransactions__GlAllocation": {
        "description": " A GL code allocation on a transaction — a GL code name paired with the amount\n allocated to it. When a transaction is fully categorized, the amounts across all\n allocations sum to the transaction total.",
        "properties": {
          "amount": {
            "description": " The amount allocated to this GL code",
            "multipleOf": 0.01,
            "type": "number"
          },
          "className": {
            "description": " The name of the class from the connected accounting integration, if assigned",
            "nullable": true,
            "type": "string"
          },
          "departmentName": {
            "description": " The name of the department from the connected accounting integration, if assigned",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": " Optional user-provided description for this allocation",
            "nullable": true,
            "type": "string"
          },
          "glCodeName": {
            "description": " The name of the GL code from the connected accounting integration",
            "type": "string"
          }
        },
        "required": [
          "glCodeName",
          "amount"
        ],
        "type": "object"
      },
      "listaccounttransactions__ISO3166Alpha2": {
        "type": "string"
      },
      "listaccounttransactions__InternationalWireAustraliaSpecificData": {
        "properties": {
          "bsbCode": {
            "type": "string"
          }
        },
        "required": [
          "bsbCode"
        ],
        "type": "object"
      },
      "listaccounttransactions__InternationalWireBrazilSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "listaccounttransactions__InternationalWireCanadaSpecificData": {
        "properties": {
          "bankCode": {
            "type": "string"
          },
          "transitNumber": {
            "type": "string"
          }
        },
        "required": [
          "bankCode",
          "transitNumber"
        ],
        "type": "object"
      },
      "listaccounttransactions__InternationalWireChileSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "listaccounttransactions__InternationalWireColombiaSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "listaccounttransactions__InternationalWireCorrespondentInfo": {
        "properties": {
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "listaccounttransactions__InternationalWireCountrySpecificData": {
        "properties": {
          "australia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWireAustraliaSpecificData"
              }
            ],
            "nullable": true
          },
          "brazil": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWireBrazilSpecificData"
              }
            ],
            "nullable": true
          },
          "canada": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWireCanadaSpecificData"
              }
            ],
            "nullable": true
          },
          "chile": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWireChileSpecificData"
              }
            ],
            "nullable": true
          },
          "colombia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWireColombiaSpecificData"
              }
            ],
            "nullable": true
          },
          "dominicanRepublic": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWireDominicanRepublicSpecificData"
              }
            ],
            "nullable": true
          },
          "honduras": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWireHondurasSpecificData"
              }
            ],
            "nullable": true
          },
          "india": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWireIndiaSpecificData"
              }
            ],
            "nullable": true
          },
          "kazakhstan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWireKazakhstanSpecificData"
              }
            ],
            "nullable": true
          },
          "pakistan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWirePakistanSpecificData"
              }
            ],
            "nullable": true
          },
          "paraguay": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWireParaguaySpecificData"
              }
            ],
            "nullable": true
          },
          "philippines": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWirePhilippinesSpecificData"
              }
            ],
            "nullable": true
          },
          "russia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWireRussiaSpecificData"
              }
            ],
            "nullable": true
          },
          "southAfrica": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWireSouthAfricaSpecificData"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "listaccounttransactions__InternationalWireDominicanRepublicSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "listaccounttransactions__InternationalWireHondurasSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "listaccounttransactions__InternationalWireIndiaSpecificData": {
        "properties": {
          "ifscCode": {
            "type": "string"
          }
        },
        "required": [
          "ifscCode"
        ],
        "type": "object"
      },
      "listaccounttransactions__InternationalWireKazakhstanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "listaccounttransactions__InternationalWirePakistanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          },
          "legalIdType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__PakistaniLegalIdType"
              }
            ]
          }
        },
        "required": [
          "legalIdType",
          "legalId"
        ],
        "type": "object"
      },
      "listaccounttransactions__InternationalWireParaguaySpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "listaccounttransactions__InternationalWirePhilippinesSpecificData": {
        "properties": {
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "routingNumber"
        ],
        "type": "object"
      },
      "listaccounttransactions__InternationalWireRoutingInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankDetails": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__SwiftCodeData"
              }
            ],
            "nullable": true
          },
          "correspondentInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWireCorrespondentInfo"
              }
            ],
            "nullable": true
          },
          "countrySpecific": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWireCountrySpecificData"
              }
            ]
          },
          "emailAddress": {
            "nullable": true,
            "type": "string"
          },
          "iban": {
            "type": "string"
          },
          "phoneNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "type": "string"
          }
        },
        "required": [
          "iban",
          "swiftCode",
          "countrySpecific"
        ],
        "type": "object"
      },
      "listaccounttransactions__InternationalWireRussiaSpecificData": {
        "properties": {
          "inn": {
            "type": "string"
          }
        },
        "required": [
          "inn"
        ],
        "type": "object"
      },
      "listaccounttransactions__InternationalWireSouthAfricaSpecificData": {
        "properties": {
          "branchCode": {
            "type": "string"
          }
        },
        "required": [
          "branchCode"
        ],
        "type": "object"
      },
      "listaccounttransactions__MerchantData": {
        "description": " Merchant information for card transactions",
        "properties": {
          "amount": {
            "description": " The transaction amount in the smallest unit of the merchant's currency\n (e.g., cents for USD/EUR, yen for JPY, fils for BHD).\n For debits this is negative, for credits positive.\n Use 'merchantCurrency' to determine the appropriate decimal scaling:\n most currencies use 2 decimal places (divide by 100), but JPY uses 0\n (no division needed) and BHD/KWD/OMR use 3 (divide by 1000).\n This is useful for international transactions where the merchant charges in a\n currency different from the account currency. Nothing if not available.",
            "format": "int64",
            "maximum": 9223372036854776000,
            "minimum": -9223372036854776000,
            "nullable": true,
            "type": "integer"
          },
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__MercuryCategory"
              },
              {
                "description": " Mercury category for the merchant (e.g., \"Restaurants\", \"Software\")"
              }
            ],
            "nullable": true
          },
          "categoryCode": {
            "description": " 4-digit merchant category code (MCC) for card transactions",
            "nullable": true,
            "type": "string"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__CurrencyCode"
              },
              {
                "description": " ISO 4217 currency code of the merchant's currency (e.g., \"EUR\", \"GBP\", \"JPY\").\n Nothing if not available."
              }
            ],
            "nullable": true
          },
          "id": {
            "description": " Merchant ID for card transactions",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "listaccounttransactions__MercuryCategory": {
        "enum": [
          "Other",
          "Advertising",
          "Airlines",
          "AlcoholAndBars",
          "BooksAndNewspaper",
          "CarRental",
          "Charity",
          "Clothing",
          "Conferences",
          "Education",
          "Electronics",
          "Entertainment",
          "FacilitiesExpenses",
          "Fees",
          "FoodDelivery",
          "FuelAndGas",
          "Gambling",
          "GovernmentServices",
          "Grocery",
          "GroundTransportation",
          "Insurance",
          "InternetAndTelephone",
          "Legal",
          "Lodging",
          "Medical",
          "Memberships",
          "OfficeSupplies",
          "OtherTravel",
          "Parking",
          "Political",
          "ProfessionalServices",
          "Restaurants",
          "Retail",
          "RideshareAndTaxis",
          "Shipping",
          "Software",
          "Taxes",
          "Utilities",
          "VehicleExpenses"
        ],
        "type": "string"
      },
      "listaccounttransactions__MercuryCreditAccountStatementPeriodId": {
        "description": "ID for the credit statement period",
        "format": "uuid",
        "type": "string"
      },
      "listaccounttransactions__PakistaniLegalIdType": {
        "enum": [
          "CNIC",
          "SNIC",
          "Passport",
          "NTN"
        ],
        "type": "string"
      },
      "listaccounttransactions__Region": {
        "type": "string"
      },
      "listaccounttransactions__RelatedTransactionData": {
        "description": " A Public API version of RelatedTransactionData.",
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__TransactionPartyId"
              }
            ]
          },
          "amount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__TransactionMetadataId"
              }
            ]
          },
          "relationKind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__TransactionRelationKind"
              }
            ]
          }
        },
        "required": [
          "id",
          "accountId",
          "relationKind",
          "amount"
        ],
        "type": "object"
      },
      "listaccounttransactions__SwiftBankAccountType": {
        "enum": [
          "checking",
          "savings"
        ],
        "type": "string"
      },
      "listaccounttransactions__SwiftCodeData": {
        "properties": {
          "bankCityState": {
            "type": "string"
          },
          "bankCountry": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__ISO3166Alpha2"
              }
            ]
          },
          "bankName": {
            "type": "string"
          }
        },
        "required": [
          "bankName",
          "bankCityState",
          "bankCountry"
        ],
        "type": "object"
      },
      "listaccounttransactions__Transaction": {
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__TransactionPartyId"
              },
              {
                "description": " The external-facing account identifier for the Mercury account that owns this transaction"
              }
            ]
          },
          "accountingStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__TransactionAccountingStatus"
              },
              {
                "description": " Review and sync status of this transaction for the connected accounting integration (e.g.\n QuickBooks, Xero, NetSuite). A transaction with no accounting activity is pending with no\n timestamps. Null if the caller is not authorized to read accounting status, if the\n organization has no active general ledger (no active Books or third-party ERP ledger), and\n on the responses of endpoints that create transactions or transfers."
              }
            ],
            "nullable": true
          },
          "amount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/listaccounttransactions__TransactionAttachment"
            },
            "type": "array"
          },
          "bankDescription": {
            "nullable": true,
            "type": "string"
          },
          "cardId": {
            "description": " Id of the card behind this transaction, present on card payments and refunds (debit or\n credit); null otherwise, including for card-related fee transactions. Fetch the card's details\n (kind, cardholder, last four, etc.) via the Cards API (`GET /cards/{cardId}`). Supersedes the\n kind-specific `details.creditCardInfo.id` / `details.debitCardInfo.id`.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "categoryData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__CategoryData"
              }
            ],
            "nullable": true
          },
          "checkNumber": {
            "description": " Present for check deposits and mailed checks; Nothing otherwise.",
            "nullable": true,
            "type": "string"
          },
          "compliantWithReceiptPolicy": {
            "type": "boolean"
          },
          "counterpartyId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__TransactionPartyId"
              }
            ]
          },
          "counterpartyName": {
            "type": "string"
          },
          "counterpartyNickname": {
            "nullable": true,
            "type": "string"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__UTCTime"
              }
            ]
          },
          "creditAccountPeriodId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__MercuryCreditAccountStatementPeriodId"
              }
            ],
            "nullable": true
          },
          "currencyExchangeInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__CurrencyExchangeInfo"
              }
            ],
            "nullable": true
          },
          "dashboardLink": {
            "type": "string"
          },
          "details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__TransactionMethodData"
              }
            ],
            "nullable": true
          },
          "estimatedDeliveryDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__UTCTime"
              }
            ]
          },
          "externalMemo": {
            "nullable": true,
            "type": "string"
          },
          "failedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__UTCTime"
              }
            ],
            "nullable": true
          },
          "feeId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__TransactionMetadataId"
              }
            ],
            "nullable": true
          },
          "generalLedgerCodeName": {
            "description": " Deprecated: use transactionGlAllocations instead. This field does not reflect GL codes\n assigned via Mercury auto-categorization rules. Preserved for backwards compatibility.",
            "nullable": true,
            "type": "string"
          },
          "glAllocations": {
            "description": " GL code allocations assigned to this transaction via a connected accounting software\n integration (e.g. QuickBooks, Xero, NetSuite). Each allocation has a GL code name and\n the amount allocated to it; amounts sum to the transaction total when the transaction is\n fully categorized. Empty if no GL codes have been assigned. Distinct from Mercury custom\n categories (see transactionCategoryData).",
            "items": {
              "$ref": "#/components/schemas/listaccounttransactions__GlAllocation"
            },
            "type": "array"
          },
          "hasGeneratedReceipt": {
            "type": "boolean"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__TransactionMetadataId"
              }
            ]
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__TransactionKind"
              }
            ]
          },
          "merchant": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__MerchantData"
              },
              {
                "description": " Merchant information for card transactions, including the merchant category code (MCC),\n merchant ID, Mercury category, and for international transactions, the amount and currency\n in the merchant's local currency. Nothing for non-card transactions."
              }
            ],
            "nullable": true
          },
          "mercuryCategory": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__MercuryCategory"
              }
            ],
            "nullable": true
          },
          "note": {
            "nullable": true,
            "type": "string"
          },
          "postedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__UTCTime"
              }
            ],
            "nullable": true
          },
          "reasonForFailure": {
            "nullable": true,
            "type": "string"
          },
          "relatedTransactions": {
            "items": {
              "$ref": "#/components/schemas/listaccounttransactions__RelatedTransactionData"
            },
            "type": "array"
          },
          "requestId": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__TransactionStatus"
              }
            ]
          },
          "trackingNumber": {
            "description": " Present for transactions that have tracking numbers (e.g., RTP, ACH, wires); Nothing otherwise.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "amount",
          "createdAt",
          "estimatedDeliveryDate",
          "status",
          "counterpartyId",
          "dashboardLink",
          "counterpartyName",
          "kind",
          "compliantWithReceiptPolicy",
          "hasGeneratedReceipt",
          "glAllocations",
          "attachments",
          "relatedTransactions",
          "accountId"
        ],
        "type": "object"
      },
      "listaccounttransactions__TransactionAccountingStatus": {
        "description": " A transaction's accounting review and sync status, for the accounting integration connected\n to the organization (e.g. QuickBooks, Xero, NetSuite).",
        "properties": {
          "erroredAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__UTCTime"
              },
              {
                "description": " When the sync of the transaction to the accounting integration failed. Null if it has not\n failed."
              }
            ],
            "nullable": true
          },
          "excludedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__UTCTime"
              },
              {
                "description": " When the transaction was excluded from accounting sync. Null if it is not excluded."
              }
            ],
            "nullable": true
          },
          "reviewedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__UTCTime"
              },
              {
                "description": " When the transaction was last marked as reviewed. Null if it has not been reviewed."
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__AccountingSyncStatus"
              },
              {
                "description": " Current review and sync status of the transaction. pending: not reviewed or synced yet,\n including transactions with no accounting activity. reviewed: marked as reviewed and ready to\n sync. syncing: a sync has started but not finished. synced: synced successfully. errored: the\n sync failed. excluded: excluded from accounting sync. When more than one applies, the first of\n excluded, errored, synced, syncing and reviewed wins."
              }
            ]
          },
          "syncStartedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__UTCTime"
              },
              {
                "description": " When a sync of the transaction to the accounting integration was started. This is the\n start of the sync, not its completion (see syncedAt). Null if no sync has been started."
              }
            ],
            "nullable": true
          },
          "syncedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__UTCTime"
              },
              {
                "description": " When the transaction finished syncing to the accounting integration successfully. Null if\n it has not finished syncing."
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "listaccounttransactions__TransactionAttachment": {
        "properties": {
          "attachmentType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__TransactionAttachmentType"
              }
            ]
          },
          "fileName": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "fileName",
          "url",
          "attachmentType"
        ],
        "type": "object"
      },
      "listaccounttransactions__TransactionAttachmentType": {
        "enum": [
          "checkImage",
          "receipt",
          "other"
        ],
        "type": "string"
      },
      "listaccounttransactions__TransactionKind": {
        "enum": [
          "externalTransfer",
          "internalTransfer",
          "outgoingPayment",
          "creditCardCredit",
          "creditCardTransaction",
          "debitCardCredit",
          "debitCardTransaction",
          "cardInternationalTransactionFee",
          "cardInternationalTransactionFeeRebate",
          "cardInternationalTransactionFeeReversal",
          "cardInternationalTransactionFeeRebateReversal",
          "incomingDomesticWire",
          "checkDeposit",
          "incomingInternationalWire",
          "treasuryTransfer",
          "currencyCloudReturn",
          "wireFee",
          "personalBankingSubscriptionFee",
          "billingEngineSubscriptionFee",
          "expenseReimbursement",
          "exogenousWireDrawdown",
          "interestPayment",
          "other"
        ],
        "type": "string"
      },
      "listaccounttransactions__TransactionMetadataId": {
        "description": "ID for this transaction",
        "format": "uuid",
        "type": "string"
      },
      "listaccounttransactions__TransactionMethodData": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__AddressData"
              }
            ],
            "nullable": true
          },
          "creditCardInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__CreditCardInfo"
              }
            ],
            "nullable": true
          },
          "debitCardInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__DebitCardInfo"
              }
            ],
            "nullable": true
          },
          "domesticWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__DomesticWireRoutingInfo"
              }
            ],
            "nullable": true
          },
          "electronicRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__ElectronicRoutingInfo"
              }
            ],
            "nullable": true
          },
          "internationalWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listaccounttransactions__InternationalWireRoutingInfo"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "listaccounttransactions__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "listaccounttransactions__TransactionRelationKind": {
        "enum": [
          "ProvisionalCreditReversalToMerchantRefund",
          "MerchantRefundToProvisionalCreditReversal",
          "MerchantRefundToFraudulentCharge",
          "FraudulentChargeToMerchantRefund",
          "PaymentRefundToFailedPayment",
          "FailedPaymentToPaymentRefund",
          "GiftCompensationToOriginalTransaction",
          "FeePaymentToOriginalTransaction",
          "OriginalTransactionToFeePayment",
          "FeePaymentToFeeRebate",
          "FeeRebateToFeePayment",
          "FeePaymentToFeeReversal",
          "FeeReversalToFeePayment",
          "FeeRebateToFeeRebateReversal",
          "FeeRebateReversalToFeeRebate",
          "TreasurySplitLiquidation",
          "ProvisionalCreditToOriginalCharge",
          "OriginalChargeToProvisionalCredit",
          "FeeAtmReimbursementToAtmTransaction",
          "AtmTransactionToFeeAtmReimbursement",
          "AtmTransactionToAtmReimbursementReversal",
          "AtmReimbursementReversalToAtmTransaction",
          "ReturnToOriginalTransaction",
          "OriginalTransactionToReturn",
          "ProvisionalCreditToReversal",
          "ReversalToProvisionalCredit",
          "MerchantRefundToOriginalCharge",
          "OriginalChargeToMerchantRefund"
        ],
        "type": "string"
      },
      "listaccounttransactions__TransactionStatus": {
        "enum": [
          "pending",
          "sent",
          "cancelled",
          "failed",
          "reversed",
          "blocked"
        ],
        "type": "string"
      },
      "listaccounttransactions__TransactionsResponse": {
        "properties": {
          "total": {
            "maximum": 9223372036854776000,
            "minimum": -9223372036854776000,
            "type": "integer"
          },
          "transactions": {
            "items": {
              "$ref": "#/components/schemas/listaccounttransactions__Transaction"
            },
            "type": "array"
          }
        },
        "required": [
          "total",
          "transactions"
        ],
        "type": "object"
      },
      "listaccounttransactions__USState": {
        "enum": [
          "AL",
          "AK",
          "AZ",
          "AR",
          "CA",
          "CO",
          "CT",
          "DE",
          "DC",
          "FL",
          "GA",
          "HI",
          "ID",
          "IL",
          "IN",
          "IA",
          "KS",
          "KY",
          "LA",
          "ME",
          "MD",
          "MA",
          "MI",
          "MN",
          "MS",
          "MO",
          "MT",
          "NE",
          "NV",
          "NH",
          "NJ",
          "NM",
          "NY",
          "NC",
          "ND",
          "OH",
          "OK",
          "OR",
          "PA",
          "RI",
          "SC",
          "SD",
          "TN",
          "TX",
          "UT",
          "VT",
          "VA",
          "WA",
          "WV",
          "WI",
          "WY"
        ],
        "type": "string"
      },
      "listaccounttransactions__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "listbudgets__ApiV1BudgetFrequency": {
        "enum": [
          "oneTime",
          "daily",
          "weekly",
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "listbudgets__ApiV1BudgetPublishStatus": {
        "enum": [
          "draft",
          "published",
          "archived"
        ],
        "type": "string"
      },
      "listbudgets__ApiV1SpendBudgetResponse": {
        "properties": {
          "amountPerUserPerPeriod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listbudgets__NonNegativeDollar"
              }
            ],
            "nullable": true
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "endDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listbudgets__Day"
              }
            ],
            "nullable": true
          },
          "frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listbudgets__ApiV1BudgetFrequency"
              }
            ]
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listbudgets__BudgetId"
              }
            ]
          },
          "name": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "startDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listbudgets__Day"
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listbudgets__ApiV1BudgetPublishStatus"
              }
            ]
          }
        },
        "required": [
          "id",
          "status",
          "frequency"
        ],
        "type": "object"
      },
      "listbudgets__ApiV1SpendBudgetsResponse": {
        "properties": {
          "budgets": {
            "items": {
              "$ref": "#/components/schemas/listbudgets__ApiV1SpendBudgetResponse"
            },
            "type": "array"
          },
          "page": {
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/listbudgets__BudgetId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/listbudgets__BudgetId"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "budgets",
          "page"
        ],
        "type": "object"
      },
      "listbudgets__BudgetId": {
        "description": "ID for the budget",
        "format": "uuid",
        "type": "string"
      },
      "listbudgets__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "listbudgets__NonNegativeDollar": {
        "description": "A non-negative dollar amount",
        "format": "double",
        "minimum": 0,
        "type": "number"
      },
      "listcards__Card": {
        "properties": {
          "accountId": {
            "description": " The Mercury account this card is associated with.",
            "type": "string"
          },
          "budgets": {
            "description": " One entry per active budget linked to this card and cardholder.\n Empty under cardLimit, or when this response has no active budget for the cardholder.",
            "items": {
              "$ref": "#/components/schemas/listcards__CardBudget"
            },
            "type": "array"
          },
          "categoryLocks": {
            "description": " Mercury spend-category locks applied to this card, in no particular order. Empty when the card has no category restrictions.",
            "items": {
              "$ref": "#/components/schemas/listcards__MercuryCategory"
            },
            "type": "array"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcards__UTCTime"
              },
              {
                "description": " Timestamp when the card was issued."
              }
            ]
          },
          "expiration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcards__CardExpiration"
              },
              {
                "description": " Month and year the card expires."
              }
            ]
          },
          "id": {
            "description": " Unique identifier for the card.",
            "format": "uuid",
            "type": "string"
          },
          "isAgentCard": {
            "description": " Whether the card is managed by the agentic spend-management agent. Only agent\n cards can have their full details revealed.",
            "type": "boolean"
          },
          "isSingleUse": {
            "description": " Whether the card closes automatically after its first approved purchase. A used\n single-use card reports a @singleUseConsumed@ status.",
            "type": "boolean"
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcards__CardKind"
              },
              {
                "description": " Whether the card is a debit or credit card."
              }
            ]
          },
          "lastFour": {
            "description": " Last four digits of the card's primary account number (PAN).",
            "type": "string"
          },
          "merchantLock": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcards__MerchantInfo"
              },
              {
                "description": " Merchant lock applied to this card. Present only when the card is locked to a single merchant; otherwise omitted."
              }
            ],
            "nullable": true
          },
          "nameOnCard": {
            "description": " Cardholder name printed on the card.",
            "type": "string"
          },
          "nickname": {
            "description": " Optional user-assigned label for the card.",
            "nullable": true,
            "type": "string"
          },
          "physicalCardStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcards__PhysicalCardStatus"
              },
              {
                "description": " Activation state of a physical card. Null for virtual cards."
              }
            ],
            "nullable": true
          },
          "spendLimit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcards__SpendLimit"
              },
              {
                "description": " Card-level spending controls. This is null when card-level limits are\n unavailable, including for credit cards governed by budgets. For debit\n cards, this includes the underlying card limits even when budgets govern\n purchase spending. In budget mode, the transaction limit does not gate\n purchases, but the ATM or cash limit can still apply to cash withdrawals."
              }
            ],
            "nullable": true
          },
          "spendLimitType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcards__SpendLimitType"
              },
              {
                "description": " Whether card-level limits or budgets govern purchase spending."
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcards__CardStatus"
              },
              {
                "description": " Current lifecycle state of the card."
              }
            ]
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcards__CardType"
              },
              {
                "description": " Whether the card is virtual (digital-only) or physical (printed, supports ATM)."
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcards__UTCTime"
              },
              {
                "description": " Timestamp of the last modification to the card or its settings."
              }
            ]
          },
          "userId": {
            "description": " Mercury User who owns the card.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "accountId",
          "createdAt",
          "updatedAt",
          "lastFour",
          "nameOnCard",
          "userId",
          "status",
          "type",
          "kind",
          "expiration",
          "spendLimitType",
          "budgets",
          "categoryLocks",
          "isAgentCard",
          "isSingleUse"
        ],
        "type": "object"
      },
      "listcards__CardBudget": {
        "description": " Current-cycle limits for one budget linked to this card and cardholder.",
        "properties": {
          "amountCents": {
            "description": " The cardholder's spend limit for the current budget cycle, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "id": {
            "description": "Unique identifier for a budget",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": " Display name of the budget.",
            "type": "string"
          },
          "remainingAmountCents": {
            "description": " Current-cycle limit minus recorded spend, clamped at zero, in cents.\n Authorization also uses cached allocations and in-flight holds, so its available amount may differ.",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "amountCents",
          "remainingAmountCents"
        ],
        "type": "object"
      },
      "listcards__CardExpiration": {
        "description": "Month and year the card expires.",
        "properties": {
          "month": {
            "description": "Calendar month.",
            "example": 8,
            "maximum": 12,
            "minimum": 1,
            "type": "integer"
          },
          "year": {
            "description": "Four-digit calendar year.",
            "example": 2026,
            "maximum": 2999,
            "minimum": 2000,
            "type": "integer"
          }
        },
        "required": [
          "month",
          "year"
        ],
        "type": "object"
      },
      "listcards__CardKind": {
        "enum": [
          "debit",
          "credit"
        ],
        "type": "string"
      },
      "listcards__CardListResponse": {
        "properties": {
          "cards": {
            "description": " List of cards in the current page.",
            "items": {
              "$ref": "#/components/schemas/listcards__Card"
            },
            "type": "array"
          },
          "page": {
            "description": " Pagination cursors for navigating to next/previous pages.",
            "properties": {
              "nextPage": {
                "description": "Unique identifier for a card",
                "format": "uuid",
                "type": "string"
              },
              "previousPage": {
                "description": "Unique identifier for a card",
                "format": "uuid",
                "type": "string"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "cards",
          "page"
        ],
        "type": "object"
      },
      "listcards__CardStatus": {
        "enum": [
          "active",
          "frozen",
          "cancelled",
          "inactive",
          "expired",
          "suspended",
          "singleUseConsumed"
        ],
        "type": "string"
      },
      "listcards__CardType": {
        "enum": [
          "virtual",
          "physical"
        ],
        "type": "string"
      },
      "listcards__MerchantId": {
        "format": "uuid",
        "type": "string"
      },
      "listcards__MerchantInfo": {
        "description": " Information about a merchant that can be used for spend controls like merchant locking.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcards__MerchantId"
              }
            ]
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "listcards__MercuryCategory": {
        "enum": [
          "Other",
          "Advertising",
          "Airlines",
          "AlcoholAndBars",
          "BooksAndNewspaper",
          "CarRental",
          "Charity",
          "Clothing",
          "Conferences",
          "Education",
          "Electronics",
          "Entertainment",
          "FacilitiesExpenses",
          "Fees",
          "FoodDelivery",
          "FuelAndGas",
          "Gambling",
          "GovernmentServices",
          "Grocery",
          "GroundTransportation",
          "Insurance",
          "InternetAndTelephone",
          "Legal",
          "Lodging",
          "Medical",
          "Memberships",
          "OfficeSupplies",
          "OtherTravel",
          "Parking",
          "Political",
          "ProfessionalServices",
          "Restaurants",
          "Retail",
          "RideshareAndTaxis",
          "Shipping",
          "Software",
          "Taxes",
          "Utilities",
          "VehicleExpenses"
        ],
        "type": "string"
      },
      "listcards__PhysicalCardStatus": {
        "enum": [
          "inactive",
          "active",
          "locked"
        ],
        "type": "string"
      },
      "listcards__SpendLimit": {
        "description": " Spending controls applied to a card",
        "properties": {
          "amountCents": {
            "description": " Maximum total spend allowed per interval, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "atmAmountCents": {
            "description": " Maximum ATM withdrawal allowed per interval, in cents. Null for virtual\n cards and credit cards.",
            "minimum": 0,
            "nullable": true,
            "type": "integer"
          },
          "interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcards__SpendLimitInterval"
              },
              {
                "description": " Rolling window the limit applies to."
              }
            ]
          }
        },
        "required": [
          "amountCents",
          "interval"
        ],
        "type": "object"
      },
      "listcards__SpendLimitInterval": {
        "enum": [
          "daily",
          "weekly",
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "listcards__SpendLimitType": {
        "enum": [
          "cardLimit",
          "budgets"
        ],
        "type": "string"
      },
      "listcards__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "listcategories__CategoriesPaginatedResponse": {
        "description": " Paginated response containing a list of categories.\n | Use the page cursor information to fetch additional pages of categories.",
        "properties": {
          "categories": {
            "description": " List of categories in the current page",
            "items": {
              "$ref": "#/components/schemas/listcategories__CategoryData"
            },
            "type": "array"
          },
          "page": {
            "description": " Pagination information including cursors for navigating to next/previous pages",
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/listcategories__CategoryId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/listcategories__CategoryId"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "categories",
          "page"
        ],
        "type": "object"
      },
      "listcategories__CategoryData": {
        "description": " Represents an expense category for transaction classification.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcategories__CategoryId"
              },
              {
                "description": " The ID of the category"
              }
            ]
          },
          "name": {
            "description": " The name of the category",
            "type": "string"
          },
          "visibleForCardSpend": {
            "description": " Whether this category is applicable to card transactions",
            "type": "boolean"
          },
          "visibleForOther": {
            "description": " Whether this category is applicable to all other transaction kinds",
            "type": "boolean"
          },
          "visibleForReimbursements": {
            "description": " Whether this category is applicable to expense reimbursement transactions",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "visibleForReimbursements",
          "visibleForCardSpend",
          "visibleForOther"
        ],
        "type": "object"
      },
      "listcategories__CategoryId": {
        "description": "ID for the category",
        "format": "uuid",
        "type": "string"
      },
      "listcredit__AccountStatus": {
        "enum": [
          "active",
          "deleted",
          "pending",
          "archived"
        ],
        "type": "string"
      },
      "listcredit__CreditAccount": {
        "properties": {
          "availableBalance": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcredit__UTCTime"
              }
            ]
          },
          "currentBalance": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcredit__TransactionPartyId"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcredit__AccountStatus"
              }
            ]
          }
        },
        "required": [
          "id",
          "status",
          "createdAt",
          "availableBalance",
          "currentBalance"
        ],
        "type": "object"
      },
      "listcredit__CreditAccountsResponse": {
        "properties": {
          "accounts": {
            "items": {
              "$ref": "#/components/schemas/listcredit__CreditAccount"
            },
            "type": "array"
          }
        },
        "required": [
          "accounts"
        ],
        "type": "object"
      },
      "listcredit__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "listcredit__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "listcustomers__ApiV1ArCustomerAddress": {
        "description": " Customer address information for Accounts Receivable API",
        "properties": {
          "address1": {
            "description": " Primary street address line.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "address2": {
            "description": " Secondary street address line (optional).",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "city": {
            "description": " City name.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcustomers__ISO3166Alpha2"
              },
              {
                "description": " Two-letter country code (ISO 3166-1 alpha-2)."
              }
            ]
          },
          "postalCode": {
            "description": " Postal or ZIP code",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcustomers__Region"
              },
              {
                "description": " State, province, or region."
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "listcustomers__ApiV1ArCustomerPaginatedResponseData": {
        "description": " Paginated response data for Accounts Receivable customers API endpoint",
        "properties": {
          "customers": {
            "description": " The list of customers for this page",
            "items": {
              "$ref": "#/components/schemas/listcustomers__ApiV1ArCustomerResponseData"
            },
            "type": "array"
          },
          "page": {
            "description": " Pagination cursors for navigating to next/previous pages",
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/listcustomers__CustomerId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/listcustomers__CustomerId"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "customers",
          "page"
        ],
        "type": "object"
      },
      "listcustomers__ApiV1ArCustomerResponseData": {
        "description": " Response data for Accounts Receivable customer API endpoints",
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcustomers__ApiV1ArCustomerAddress"
              },
              {
                "description": " Address of customer."
              }
            ],
            "nullable": true
          },
          "deletedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcustomers__UTCTime"
              },
              {
                "description": " The time the customer was deleted, if it was deleted."
              }
            ],
            "nullable": true
          },
          "email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcustomers__Email"
              },
              {
                "description": " Email of customer."
              }
            ]
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listcustomers__CustomerId"
              },
              {
                "description": " ArCustomerId"
              }
            ]
          },
          "name": {
            "description": " Name of customer.",
            "maxLength": 5000,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id",
          "email",
          "name"
        ],
        "type": "object"
      },
      "listcustomers__CustomerId": {
        "description": "The customer who will receive the invoice. Use the /api/v1/ar/customers endpoint to list your customers and find the corresponding id, or create a new customer first.",
        "format": "uuid",
        "type": "string"
      },
      "listcustomers__Email": {
        "type": "string"
      },
      "listcustomers__ISO3166Alpha2": {
        "type": "string"
      },
      "listcustomers__Region": {
        "type": "string"
      },
      "listcustomers__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "listinvoiceattachments__ApiV1ArAttachmentResponseData": {
        "description": " The object representing a file attachment for an invoice.\n The file is not a part of this object itself but information\n for where to download it will be in this object.",
        "properties": {
          "fileName": {
            "description": " The filename for the file.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listinvoiceattachments__AttachmentId"
              },
              {
                "description": " The ID of the attachment object."
              }
            ]
          },
          "url": {
            "description": " The signed download URL for the file itself.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "url",
          "fileName"
        ],
        "type": "object"
      },
      "listinvoiceattachments__ApiV1ArAttachmentsResponseData": {
        "description": " The response type for fetching attachments related to an AR Invoice.",
        "properties": {
          "attachments": {
            "description": " The list of attachments",
            "items": {
              "$ref": "#/components/schemas/listinvoiceattachments__ApiV1ArAttachmentResponseData"
            },
            "type": "array"
          }
        },
        "required": [
          "attachments"
        ],
        "type": "object"
      },
      "listinvoiceattachments__AttachmentId": {
        "description": "ID for the attachment.",
        "format": "uuid",
        "type": "string"
      },
      "listinvoices__ApiV1ArInvoicesData": {
        "description": " Response data for Accounts Receivable invoices API Endpoint",
        "properties": {
          "achDebitEnabled": {
            "description": " Whether or not the invoice can be paid via ach debit.",
            "type": "boolean"
          },
          "amount": {
            "description": " The total amount of the invoice line items plus taxes",
            "multipleOf": 0.01,
            "type": "number"
          },
          "canceledAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listinvoices__UTCTime"
              },
              {
                "description": " The time when the invoice was canceled."
              }
            ],
            "nullable": true
          },
          "ccEmails": {
            "description": " Emails to be CCed on invoice notifications/reminders.",
            "items": {
              "$ref": "#/components/schemas/listinvoices__Email"
            },
            "type": "array"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listinvoices__UTCTime"
              },
              {
                "description": " The timestamp when the invoice was created."
              }
            ]
          },
          "creditCardEnabled": {
            "description": " Whether or not the invoice can be paid via credit card. Requires stripe to be\n setup for the Mercury account.",
            "type": "boolean"
          },
          "currencyCode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listinvoices__CurrencyCode"
              },
              {
                "description": " ISO 4217 currency code for the invoice (e.g. \"USD\", \"EUR\")."
              }
            ]
          },
          "customerId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listinvoices__CustomerId"
              },
              {
                "description": " Id of the customer the invoice was sent to."
              }
            ]
          },
          "destinationAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listinvoices__TransactionPartyId"
              },
              {
                "description": " The Mercury account where invoice payments will be deposited. Use the /api/v1/accounts endpoint to list your accounts and find the corresponding id. Only checking and savings accounts are supported."
              }
            ]
          },
          "dueDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listinvoices__Day"
              },
              {
                "description": " The due date the invoice should be paid by."
              }
            ]
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listinvoices__InvoiceId"
              },
              {
                "description": " The ID of the invoice."
              }
            ]
          },
          "internalNote": {
            "description": " Internal note for the invoice, visible by users in the\n mercury organization but not visible to payers.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "invoiceDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listinvoices__Day"
              },
              {
                "description": " The date of the invoice, set by the invoice creator\n and likely to be context specific to the type of transaction.\n i.e. it could be a date a service was performed, it does not need\n to be the date the invoice was created."
              }
            ]
          },
          "invoiceNumber": {
            "description": " The payer facing invoice number/identifier.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "payerMemo": {
            "description": " Memo for the payer of the invoice.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "poNumber": {
            "description": " Purchase order number for the invoice if applicable.",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "slug": {
            "description": " A unique identifier used to build public URLs for this invoice. Use it to construct the payment page URL (https://app.mercury.com/pay/{slug}) or fetch the invoice PDF via /api/v1/ar/invoices/{slug}/pdf.",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listinvoices__PaymentLinkStatus"
              },
              {
                "description": " The status of the invoice."
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listinvoices__UTCTime"
              },
              {
                "description": " The timestamp when the invoice was updated."
              }
            ]
          },
          "useRealAccountNumber": {
            "description": " Whether or not the invoice payment instructions will show the real\n account and routing number for the destination account or use\n virtual account numbers instead.",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "dueDate",
          "invoiceDate",
          "invoiceNumber",
          "customerId",
          "ccEmails",
          "slug",
          "status",
          "amount",
          "currencyCode",
          "destinationAccountId",
          "creditCardEnabled",
          "achDebitEnabled",
          "useRealAccountNumber",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "listinvoices__ApiV1ArInvoicesPaginatedResponse": {
        "description": " Paginated response containing a list of invoices.\n | Use the page cursor information to fetch additional pages of invoices.",
        "properties": {
          "invoices": {
            "description": " List of invoices in the current page",
            "items": {
              "$ref": "#/components/schemas/listinvoices__ApiV1ArInvoicesData"
            },
            "type": "array"
          },
          "page": {
            "description": " Pagination information including cursors for navigating to next/previous pages",
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/listinvoices__InvoiceId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/listinvoices__InvoiceId"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "invoices",
          "page"
        ],
        "type": "object"
      },
      "listinvoices__CurrencyCode": {
        "type": "string"
      },
      "listinvoices__CustomerId": {
        "description": "The customer who will receive the invoice. Use the /api/v1/ar/customers endpoint to list your customers and find the corresponding id, or create a new customer first.",
        "format": "uuid",
        "type": "string"
      },
      "listinvoices__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "listinvoices__Email": {
        "type": "string"
      },
      "listinvoices__InvoiceId": {
        "description": "ID for the invoice.",
        "format": "uuid",
        "type": "string"
      },
      "listinvoices__PaymentLinkStatus": {
        "enum": [
          "Unpaid",
          "Paid",
          "Cancelled",
          "Processing"
        ],
        "type": "string"
      },
      "listinvoices__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "listinvoices__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "listmerchants__MerchantId": {
        "format": "uuid",
        "type": "string"
      },
      "listmerchants__MerchantInfo": {
        "description": " Information about a merchant that can be used for spend controls like merchant locking.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listmerchants__MerchantId"
              }
            ]
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "listmerchants__MerchantsResponse": {
        "description": " Paginated response for merchants endpoint",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/listmerchants__MerchantInfo"
            },
            "type": "array"
          },
          "page": {
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/listmerchants__MerchantId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/listmerchants__MerchantId"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "listproducts__ApiV1ArProductPaginatedResponseData": {
        "description": " Paginated response data for Accounts Receivable products API endpoint",
        "properties": {
          "page": {
            "description": " Pagination cursors for navigating to next/previous pages",
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/listproducts__ProductId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/listproducts__ProductId"
              }
            },
            "type": "object"
          },
          "products": {
            "description": " The list of products for this page",
            "items": {
              "$ref": "#/components/schemas/listproducts__ApiV1ArProductResponseData"
            },
            "type": "array"
          }
        },
        "required": [
          "products",
          "page"
        ],
        "type": "object"
      },
      "listproducts__ApiV1ArProductResponseData": {
        "description": " A product catalog item for Accounts Receivable API endpoints",
        "properties": {
          "description": {
            "description": " Description of the product, if any.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listproducts__ProductId"
              },
              {
                "description": " ID of the product."
              }
            ]
          },
          "name": {
            "description": " Name of the product.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "unitPrice": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listproducts__Dollar"
              },
              {
                "description": " Unit price of the product, in dollars."
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listproducts__UTCTime"
              },
              {
                "description": " The time the product's current details were last set."
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "unitPrice",
          "updatedAt"
        ],
        "type": "object"
      },
      "listproducts__Dollar": {
        "description": "A dollar amount",
        "format": "double",
        "type": "number"
      },
      "listproducts__ProductId": {
        "description": "The ID of an invoicing product. Use the /api/v1/ar/products endpoint to list your products.",
        "format": "uuid",
        "type": "string"
      },
      "listproducts__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "listreceipts__ApiV1ReceiptResponse": {
        "description": " Public view of a receipt and its matching state.",
        "properties": {
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listreceipts__UTCTime"
              }
            ]
          },
          "fileName": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listreceipts__ReceiptId"
              }
            ]
          },
          "matchedTransactionId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listreceipts__TransactionMetadataId"
              },
              {
                "description": " The transaction this receipt was matched to, once matched."
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listreceipts__ApiV1ReceiptStatus"
              }
            ]
          },
          "uploadedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listreceipts__UTCTime"
              },
              {
                "description": " When Mercury began processing the direct upload; absent until matching starts."
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "id",
          "fileName",
          "status",
          "createdAt"
        ],
        "type": "object"
      },
      "listreceipts__ApiV1ReceiptStatus": {
        "enum": [
          "pending",
          "matched",
          "unmatched",
          "notAttempted",
          "failed"
        ],
        "type": "string"
      },
      "listreceipts__ApiV1ReceiptsPaginatedResponse": {
        "description": " A page of receipts plus the cursor for the next page.",
        "properties": {
          "page": {
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/listreceipts__ReceiptId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/listreceipts__ReceiptId"
              }
            },
            "type": "object"
          },
          "receipts": {
            "items": {
              "$ref": "#/components/schemas/listreceipts__ApiV1ReceiptResponse"
            },
            "type": "array"
          }
        },
        "required": [
          "receipts",
          "page"
        ],
        "type": "object"
      },
      "listreceipts__ReceiptId": {
        "description": "ID for the receipt",
        "format": "uuid",
        "type": "string"
      },
      "listreceipts__TransactionMetadataId": {
        "description": "ID for this transaction",
        "format": "uuid",
        "type": "string"
      },
      "listreceipts__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "listrecipientinvites__Email": {
        "type": "string"
      },
      "listrecipientinvites__PaymentMethod": {
        "enum": [
          "ach",
          "check",
          "domesticWire",
          "internationalWire",
          "realTimePayment"
        ],
        "type": "string"
      },
      "listrecipientinvites__RecipientInviteApiPaginatedResponse": {
        "description": " API response for listing recipient invites with pagination.",
        "properties": {
          "invites": {
            "description": " List of invites in the current page.",
            "items": {
              "$ref": "#/components/schemas/listrecipientinvites__RecipientInviteApiResponse"
            },
            "type": "array"
          },
          "page": {
            "description": " Pagination cursors (inviteId) for navigating to next/previous pages.",
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/listrecipientinvites__RecipientInviteId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/listrecipientinvites__RecipientInviteId"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "invites",
          "page"
        ],
        "type": "object"
      },
      "listrecipientinvites__RecipientInviteApiResponse": {
        "properties": {
          "contactEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listrecipientinvites__Email"
              },
              {
                "description": " Recipient contact email the invite was created for."
              }
            ]
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listrecipientinvites__UTCTime"
              },
              {
                "description": " When the invite was created."
              }
            ]
          },
          "expiresAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listrecipientinvites__UTCTime"
              },
              {
                "description": " When the invite expires, if it has an expiry."
              }
            ],
            "nullable": true
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listrecipientinvites__RecipientInviteId"
              },
              {
                "description": " The invite's id, also embedded in 'onboardingUrl'."
              }
            ]
          },
          "name": {
            "description": " Recipient name the invite was created for.",
            "type": "string"
          },
          "notes": {
            "description": " Notes shown to the recipient, if any.",
            "nullable": true,
            "type": "string"
          },
          "onboardingUrl": {
            "description": " URL where the recipient submits their payment details.",
            "type": "string"
          },
          "paymentMethods": {
            "description": " Payment methods the recipient may submit details for.",
            "items": {
              "$ref": "#/components/schemas/listrecipientinvites__PaymentMethod"
            },
            "minItems": 1,
            "type": "array"
          },
          "recipientId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listrecipientinvites__TransactionPartyId"
              },
              {
                "description": " The existing recipient this invite is for, if any."
              }
            ],
            "nullable": true
          },
          "requireTaxDocument": {
            "description": " Whether the recipient must upload a tax document.",
            "type": "boolean"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listrecipientinvites__RecipientInviteStatus"
              },
              {
                "description": " Status of the invite."
              }
            ]
          }
        },
        "required": [
          "id",
          "onboardingUrl",
          "status",
          "name",
          "contactEmail",
          "paymentMethods",
          "requireTaxDocument",
          "createdAt"
        ],
        "type": "object"
      },
      "listrecipientinvites__RecipientInviteId": {
        "description": "ID for the invite",
        "type": "string"
      },
      "listrecipientinvites__RecipientInviteStatus": {
        "enum": [
          "created",
          "completed",
          "expired",
          "declined"
        ],
        "type": "string"
      },
      "listrecipientinvites__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "listrecipientinvites__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "listrecipientsattachments__PageTotal": {
        "format": "int32",
        "maximum": 1000,
        "minimum": 0,
        "type": "integer"
      },
      "listrecipientsattachments__RecipientAttachmentWithId": {
        "properties": {
          "fileName": {
            "description": " Name of the uploaded file",
            "type": "string"
          },
          "formType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listrecipientsattachments__TaxFormType"
              },
              {
                "description": " The tax form type (W-9, W-8BEN, W-8BEN-E, or Unknown)"
              }
            ],
            "nullable": true
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listrecipientsattachments__RecipientTaxFormAttachmentId"
              },
              {
                "description": " The unique identifier for this attachment"
              }
            ]
          },
          "recipientId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listrecipientsattachments__TransactionPartyId"
              },
              {
                "description": " The external ID of the recipient this attachment belongs to"
              }
            ]
          },
          "uploadedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listrecipientsattachments__UTCTime"
              },
              {
                "description": " Timestamp when the attachment was uploaded"
              }
            ]
          },
          "url": {
            "description": " Presigned URL to download the attachment (valid for 12 hours)",
            "type": "string"
          }
        },
        "required": [
          "id",
          "recipientId",
          "fileName",
          "url",
          "uploadedAt"
        ],
        "type": "object"
      },
      "listrecipientsattachments__RecipientTaxFormAttachmentId": {
        "description": "ID for the recipient tax form attachment",
        "format": "uuid",
        "type": "string"
      },
      "listrecipientsattachments__RecipientsAttachmentsPaginatedResponse": {
        "properties": {
          "attachments": {
            "description": " List of attachments with recipient IDs",
            "items": {
              "$ref": "#/components/schemas/listrecipientsattachments__RecipientAttachmentWithId"
            },
            "type": "array"
          },
          "page": {
            "description": " Pagination information",
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/listrecipientsattachments__RecipientTaxFormAttachmentId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/listrecipientsattachments__RecipientTaxFormAttachmentId"
              }
            },
            "type": "object"
          },
          "total": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listrecipientsattachments__PageTotal"
              },
              {
                "description": " Total number of attachments in the current page"
              }
            ]
          }
        },
        "required": [
          "total",
          "attachments",
          "page"
        ],
        "type": "object"
      },
      "listrecipientsattachments__TaxFormType": {
        "enum": [
          "w9",
          "w8BEN",
          "w8BENE",
          "unknown"
        ],
        "type": "string"
      },
      "listrecipientsattachments__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "listrecipientsattachments__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "listsendmoneyapprovalrequests__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "listsendmoneyapprovalrequests__PaymentApprovalReview": {
        "properties": {
          "reviewedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listsendmoneyapprovalrequests__UTCTime"
              }
            ]
          },
          "reviewerUserId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listsendmoneyapprovalrequests__UserId"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listsendmoneyapprovalrequests__PaymentApprovalReviewStatus"
              }
            ]
          }
        },
        "required": [
          "reviewerUserId",
          "status",
          "reviewedAt"
        ],
        "type": "object"
      },
      "listsendmoneyapprovalrequests__PaymentApprovalReviewStatus": {
        "enum": [
          "approved",
          "rejected"
        ],
        "type": "string"
      },
      "listsendmoneyapprovalrequests__PositiveDollar": {
        "description": "A positive dollar amount with at least 1 cent.",
        "format": "double",
        "minimum": 0.01,
        "type": "number"
      },
      "listsendmoneyapprovalrequests__RequestSendMoneyPaymentMethod": {
        "enum": [
          "ach",
          "check",
          "domesticWire",
          "internationalWire",
          "realTimePayment"
        ],
        "type": "string"
      },
      "listsendmoneyapprovalrequests__ReviewRequestStatus": {
        "enum": [
          "pendingApproval",
          "approved",
          "rejected",
          "cancelled"
        ],
        "type": "string"
      },
      "listsendmoneyapprovalrequests__SendMoneyApprovalRequestId": {
        "description": "ID for the send money approval request",
        "format": "uuid",
        "type": "string"
      },
      "listsendmoneyapprovalrequests__SendMoneyApprovalRequestResponse": {
        "description": " A pending or completed approval request for a Mercury payment.",
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listsendmoneyapprovalrequests__TransactionPartyId"
              }
            ]
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listsendmoneyapprovalrequests__PositiveDollar"
              }
            ]
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listsendmoneyapprovalrequests__UTCTime"
              },
              {
                "description": " Time at which the payment request was created."
              }
            ]
          },
          "memo": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "numberOfApproversRequired": {
            "description": " Total number of approvals required for this payment to be sent.\n Omitted for older requests where the requirement is not available.",
            "maximum": 9223372036854776000,
            "minimum": -9223372036854776000,
            "nullable": true,
            "type": "integer"
          },
          "paymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listsendmoneyapprovalrequests__RequestSendMoneyPaymentMethod"
              }
            ]
          },
          "recipientId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listsendmoneyapprovalrequests__TransactionPartyId"
              }
            ]
          },
          "requestId": {
            "type": "string"
          },
          "requestedByUserId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listsendmoneyapprovalrequests__UserId"
              },
              {
                "description": " The user who created the payment request."
              }
            ]
          },
          "requesterMayApprove": {
            "description": " True when the approval requirement recorded for this payment names the\n requester as its approver. Reflects the recorded requirement, not the\n requester's current standing, so submitting the approval can still be\n refused. The value persists after the request settles and says only whether\n the requirement names the requester; whether an approval is still\n outstanding is carried by numberOfApproversRequired and status. Omitted for\n older requests where the requirement is not available.",
            "nullable": true,
            "type": "boolean"
          },
          "reviews": {
            "description": " Approval decisions recorded against this request, ordered from\n oldest to most recent.",
            "items": {
              "$ref": "#/components/schemas/listsendmoneyapprovalrequests__PaymentApprovalReview"
            },
            "type": "array"
          },
          "scheduledSendDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listsendmoneyapprovalrequests__Day"
              },
              {
                "description": " Date on which the payment is scheduled to be sent once fully\n approved. Null when the payment will be sent as soon as approvals\n are complete."
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listsendmoneyapprovalrequests__ReviewRequestStatus"
              }
            ]
          }
        },
        "required": [
          "accountId",
          "requestId",
          "recipientId",
          "paymentMethod",
          "amount",
          "status",
          "requestedByUserId",
          "reviews",
          "createdAt"
        ],
        "type": "object"
      },
      "listsendmoneyapprovalrequests__SendMoneyApprovalRequestsPaginatedResponse": {
        "properties": {
          "page": {
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/listsendmoneyapprovalrequests__SendMoneyApprovalRequestId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/listsendmoneyapprovalrequests__SendMoneyApprovalRequestId"
              }
            },
            "type": "object"
          },
          "requests": {
            "items": {
              "$ref": "#/components/schemas/listsendmoneyapprovalrequests__SendMoneyApprovalRequestResponse"
            },
            "type": "array"
          }
        },
        "required": [
          "requests",
          "page"
        ],
        "type": "object"
      },
      "listsendmoneyapprovalrequests__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "listsendmoneyapprovalrequests__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "listsendmoneyapprovalrequests__UserId": {
        "description": "ID for the user",
        "format": "uuid",
        "type": "string"
      },
      "listtransactions__AccountingSyncStatus": {
        "enum": [
          "pending",
          "reviewed",
          "syncing",
          "synced",
          "errored",
          "excluded"
        ],
        "type": "string"
      },
      "listtransactions__AddressData": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__USState"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "address1",
          "city",
          "postalCode"
        ],
        "type": "object"
      },
      "listtransactions__AddressWithoutName": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__ISO3166Alpha2"
              }
            ]
          },
          "postalCode": {
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__Region"
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "listtransactions__CategoryData": {
        "description": " Represents an expense category for transaction classification.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__CategoryId"
              },
              {
                "description": " The ID of the category"
              }
            ]
          },
          "name": {
            "description": " The name of the category",
            "type": "string"
          },
          "visibleForCardSpend": {
            "description": " Whether this category is applicable to card transactions",
            "type": "boolean"
          },
          "visibleForOther": {
            "description": " Whether this category is applicable to all other transaction kinds",
            "type": "boolean"
          },
          "visibleForReimbursements": {
            "description": " Whether this category is applicable to expense reimbursement transactions",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "visibleForReimbursements",
          "visibleForCardSpend",
          "visibleForOther"
        ],
        "type": "object"
      },
      "listtransactions__CategoryId": {
        "description": "ID for the category",
        "format": "uuid",
        "type": "string"
      },
      "listtransactions__CreditCardId": {
        "format": "uuid",
        "type": "string"
      },
      "listtransactions__CreditCardInfo": {
        "properties": {
          "email": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__CreditCardId"
              },
              {
                "description": " Superseded by the flat `transaction.cardId`, which identifies the card on any card payment\n or refund without branching on debit vs credit. Retained for backwards compatibility; a formal\n (OpenAPI-level) deprecation will follow in a separate change."
              }
            ]
          },
          "paymentMethod": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "paymentMethod"
        ],
        "type": "object"
      },
      "listtransactions__CurrencyCode": {
        "type": "string"
      },
      "listtransactions__CurrencyExchangeInfo": {
        "properties": {
          "convertedFromAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "convertedFromCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__CurrencyCode"
              }
            ]
          },
          "convertedToAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "convertedToCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__CurrencyCode"
              }
            ]
          },
          "exchangeRate": {
            "description": " Exchange rate goes from \"from currency\" to \"to currency\"\n (ie from currency * exchange rate = to currency)",
            "multipleOf": 0.0001,
            "type": "number"
          },
          "feeAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "feePercentage": {
            "multipleOf": 0.0001,
            "type": "number"
          },
          "feeTransactionId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__TransactionMetadataId"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "convertedFromCurrency",
          "convertedToCurrency",
          "convertedFromAmount",
          "convertedToAmount",
          "feeAmount",
          "feePercentage",
          "exchangeRate"
        ],
        "type": "object"
      },
      "listtransactions__DebitCardId": {
        "format": "uuid",
        "type": "string"
      },
      "listtransactions__DebitCardInfo": {
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__DebitCardId"
              },
              {
                "description": " Superseded by the flat `transaction.cardId`, which identifies the card on any card payment\n or refund without branching on debit vs credit. Retained for backwards compatibility; a formal\n (OpenAPI-level) deprecation will follow in a separate change."
              }
            ]
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "listtransactions__DomesticWireRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber"
        ],
        "type": "object"
      },
      "listtransactions__ElectronicAccountType": {
        "enum": [
          "businessChecking",
          "businessSavings",
          "personalChecking",
          "personalSavings",
          "businessGeneralLedger",
          "personalGeneralLedger",
          "businessLoan",
          "personalLoan"
        ],
        "type": "string"
      },
      "listtransactions__ElectronicRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "electronicAccountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__ElectronicAccountType"
              }
            ]
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "electronicAccountType"
        ],
        "type": "object"
      },
      "listtransactions__GlAllocation": {
        "description": " A GL code allocation on a transaction — a GL code name paired with the amount\n allocated to it. When a transaction is fully categorized, the amounts across all\n allocations sum to the transaction total.",
        "properties": {
          "amount": {
            "description": " The amount allocated to this GL code",
            "multipleOf": 0.01,
            "type": "number"
          },
          "className": {
            "description": " The name of the class from the connected accounting integration, if assigned",
            "nullable": true,
            "type": "string"
          },
          "departmentName": {
            "description": " The name of the department from the connected accounting integration, if assigned",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": " Optional user-provided description for this allocation",
            "nullable": true,
            "type": "string"
          },
          "glCodeName": {
            "description": " The name of the GL code from the connected accounting integration",
            "type": "string"
          }
        },
        "required": [
          "glCodeName",
          "amount"
        ],
        "type": "object"
      },
      "listtransactions__ISO3166Alpha2": {
        "type": "string"
      },
      "listtransactions__InternationalWireAustraliaSpecificData": {
        "properties": {
          "bsbCode": {
            "type": "string"
          }
        },
        "required": [
          "bsbCode"
        ],
        "type": "object"
      },
      "listtransactions__InternationalWireBrazilSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "listtransactions__InternationalWireCanadaSpecificData": {
        "properties": {
          "bankCode": {
            "type": "string"
          },
          "transitNumber": {
            "type": "string"
          }
        },
        "required": [
          "bankCode",
          "transitNumber"
        ],
        "type": "object"
      },
      "listtransactions__InternationalWireChileSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "listtransactions__InternationalWireColombiaSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "listtransactions__InternationalWireCorrespondentInfo": {
        "properties": {
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "listtransactions__InternationalWireCountrySpecificData": {
        "properties": {
          "australia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWireAustraliaSpecificData"
              }
            ],
            "nullable": true
          },
          "brazil": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWireBrazilSpecificData"
              }
            ],
            "nullable": true
          },
          "canada": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWireCanadaSpecificData"
              }
            ],
            "nullable": true
          },
          "chile": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWireChileSpecificData"
              }
            ],
            "nullable": true
          },
          "colombia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWireColombiaSpecificData"
              }
            ],
            "nullable": true
          },
          "dominicanRepublic": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWireDominicanRepublicSpecificData"
              }
            ],
            "nullable": true
          },
          "honduras": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWireHondurasSpecificData"
              }
            ],
            "nullable": true
          },
          "india": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWireIndiaSpecificData"
              }
            ],
            "nullable": true
          },
          "kazakhstan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWireKazakhstanSpecificData"
              }
            ],
            "nullable": true
          },
          "pakistan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWirePakistanSpecificData"
              }
            ],
            "nullable": true
          },
          "paraguay": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWireParaguaySpecificData"
              }
            ],
            "nullable": true
          },
          "philippines": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWirePhilippinesSpecificData"
              }
            ],
            "nullable": true
          },
          "russia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWireRussiaSpecificData"
              }
            ],
            "nullable": true
          },
          "southAfrica": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWireSouthAfricaSpecificData"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "listtransactions__InternationalWireDominicanRepublicSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "listtransactions__InternationalWireHondurasSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "listtransactions__InternationalWireIndiaSpecificData": {
        "properties": {
          "ifscCode": {
            "type": "string"
          }
        },
        "required": [
          "ifscCode"
        ],
        "type": "object"
      },
      "listtransactions__InternationalWireKazakhstanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "listtransactions__InternationalWirePakistanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          },
          "legalIdType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__PakistaniLegalIdType"
              }
            ]
          }
        },
        "required": [
          "legalIdType",
          "legalId"
        ],
        "type": "object"
      },
      "listtransactions__InternationalWireParaguaySpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "listtransactions__InternationalWirePhilippinesSpecificData": {
        "properties": {
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "routingNumber"
        ],
        "type": "object"
      },
      "listtransactions__InternationalWireRoutingInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankDetails": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__SwiftCodeData"
              }
            ],
            "nullable": true
          },
          "correspondentInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWireCorrespondentInfo"
              }
            ],
            "nullable": true
          },
          "countrySpecific": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWireCountrySpecificData"
              }
            ]
          },
          "emailAddress": {
            "nullable": true,
            "type": "string"
          },
          "iban": {
            "type": "string"
          },
          "phoneNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "type": "string"
          }
        },
        "required": [
          "iban",
          "swiftCode",
          "countrySpecific"
        ],
        "type": "object"
      },
      "listtransactions__InternationalWireRussiaSpecificData": {
        "properties": {
          "inn": {
            "type": "string"
          }
        },
        "required": [
          "inn"
        ],
        "type": "object"
      },
      "listtransactions__InternationalWireSouthAfricaSpecificData": {
        "properties": {
          "branchCode": {
            "type": "string"
          }
        },
        "required": [
          "branchCode"
        ],
        "type": "object"
      },
      "listtransactions__MerchantData": {
        "description": " Merchant information for card transactions",
        "properties": {
          "amount": {
            "description": " The transaction amount in the smallest unit of the merchant's currency\n (e.g., cents for USD/EUR, yen for JPY, fils for BHD).\n For debits this is negative, for credits positive.\n Use 'merchantCurrency' to determine the appropriate decimal scaling:\n most currencies use 2 decimal places (divide by 100), but JPY uses 0\n (no division needed) and BHD/KWD/OMR use 3 (divide by 1000).\n This is useful for international transactions where the merchant charges in a\n currency different from the account currency. Nothing if not available.",
            "format": "int64",
            "maximum": 9223372036854776000,
            "minimum": -9223372036854776000,
            "nullable": true,
            "type": "integer"
          },
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__MercuryCategory"
              },
              {
                "description": " Mercury category for the merchant (e.g., \"Restaurants\", \"Software\")"
              }
            ],
            "nullable": true
          },
          "categoryCode": {
            "description": " 4-digit merchant category code (MCC) for card transactions",
            "nullable": true,
            "type": "string"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__CurrencyCode"
              },
              {
                "description": " ISO 4217 currency code of the merchant's currency (e.g., \"EUR\", \"GBP\", \"JPY\").\n Nothing if not available."
              }
            ],
            "nullable": true
          },
          "id": {
            "description": " Merchant ID for card transactions",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "listtransactions__MercuryCategory": {
        "enum": [
          "Other",
          "Advertising",
          "Airlines",
          "AlcoholAndBars",
          "BooksAndNewspaper",
          "CarRental",
          "Charity",
          "Clothing",
          "Conferences",
          "Education",
          "Electronics",
          "Entertainment",
          "FacilitiesExpenses",
          "Fees",
          "FoodDelivery",
          "FuelAndGas",
          "Gambling",
          "GovernmentServices",
          "Grocery",
          "GroundTransportation",
          "Insurance",
          "InternetAndTelephone",
          "Legal",
          "Lodging",
          "Medical",
          "Memberships",
          "OfficeSupplies",
          "OtherTravel",
          "Parking",
          "Political",
          "ProfessionalServices",
          "Restaurants",
          "Retail",
          "RideshareAndTaxis",
          "Shipping",
          "Software",
          "Taxes",
          "Utilities",
          "VehicleExpenses"
        ],
        "type": "string"
      },
      "listtransactions__MercuryCreditAccountStatementPeriodId": {
        "description": "ID for the credit statement period",
        "format": "uuid",
        "type": "string"
      },
      "listtransactions__PakistaniLegalIdType": {
        "enum": [
          "CNIC",
          "SNIC",
          "Passport",
          "NTN"
        ],
        "type": "string"
      },
      "listtransactions__Region": {
        "type": "string"
      },
      "listtransactions__RelatedTransactionData": {
        "description": " A Public API version of RelatedTransactionData.",
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__TransactionPartyId"
              }
            ]
          },
          "amount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__TransactionMetadataId"
              }
            ]
          },
          "relationKind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__TransactionRelationKind"
              }
            ]
          }
        },
        "required": [
          "id",
          "accountId",
          "relationKind",
          "amount"
        ],
        "type": "object"
      },
      "listtransactions__SwiftBankAccountType": {
        "enum": [
          "checking",
          "savings"
        ],
        "type": "string"
      },
      "listtransactions__SwiftCodeData": {
        "properties": {
          "bankCityState": {
            "type": "string"
          },
          "bankCountry": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__ISO3166Alpha2"
              }
            ]
          },
          "bankName": {
            "type": "string"
          }
        },
        "required": [
          "bankName",
          "bankCityState",
          "bankCountry"
        ],
        "type": "object"
      },
      "listtransactions__Transaction": {
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__TransactionPartyId"
              },
              {
                "description": " The external-facing account identifier for the Mercury account that owns this transaction"
              }
            ]
          },
          "accountingStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__TransactionAccountingStatus"
              },
              {
                "description": " Review and sync status of this transaction for the connected accounting integration (e.g.\n QuickBooks, Xero, NetSuite). A transaction with no accounting activity is pending with no\n timestamps. Null if the caller is not authorized to read accounting status, if the\n organization has no active general ledger (no active Books or third-party ERP ledger), and\n on the responses of endpoints that create transactions or transfers."
              }
            ],
            "nullable": true
          },
          "amount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/listtransactions__TransactionAttachment"
            },
            "type": "array"
          },
          "bankDescription": {
            "nullable": true,
            "type": "string"
          },
          "cardId": {
            "description": " Id of the card behind this transaction, present on card payments and refunds (debit or\n credit); null otherwise, including for card-related fee transactions. Fetch the card's details\n (kind, cardholder, last four, etc.) via the Cards API (`GET /cards/{cardId}`). Supersedes the\n kind-specific `details.creditCardInfo.id` / `details.debitCardInfo.id`.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "categoryData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__CategoryData"
              }
            ],
            "nullable": true
          },
          "checkNumber": {
            "description": " Present for check deposits and mailed checks; Nothing otherwise.",
            "nullable": true,
            "type": "string"
          },
          "compliantWithReceiptPolicy": {
            "type": "boolean"
          },
          "counterpartyId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__TransactionPartyId"
              }
            ]
          },
          "counterpartyName": {
            "type": "string"
          },
          "counterpartyNickname": {
            "nullable": true,
            "type": "string"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__UTCTime"
              }
            ]
          },
          "creditAccountPeriodId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__MercuryCreditAccountStatementPeriodId"
              }
            ],
            "nullable": true
          },
          "currencyExchangeInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__CurrencyExchangeInfo"
              }
            ],
            "nullable": true
          },
          "dashboardLink": {
            "type": "string"
          },
          "details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__TransactionMethodData"
              }
            ],
            "nullable": true
          },
          "estimatedDeliveryDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__UTCTime"
              }
            ]
          },
          "externalMemo": {
            "nullable": true,
            "type": "string"
          },
          "failedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__UTCTime"
              }
            ],
            "nullable": true
          },
          "feeId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__TransactionMetadataId"
              }
            ],
            "nullable": true
          },
          "generalLedgerCodeName": {
            "description": " Deprecated: use transactionGlAllocations instead. This field does not reflect GL codes\n assigned via Mercury auto-categorization rules. Preserved for backwards compatibility.",
            "nullable": true,
            "type": "string"
          },
          "glAllocations": {
            "description": " GL code allocations assigned to this transaction via a connected accounting software\n integration (e.g. QuickBooks, Xero, NetSuite). Each allocation has a GL code name and\n the amount allocated to it; amounts sum to the transaction total when the transaction is\n fully categorized. Empty if no GL codes have been assigned. Distinct from Mercury custom\n categories (see transactionCategoryData).",
            "items": {
              "$ref": "#/components/schemas/listtransactions__GlAllocation"
            },
            "type": "array"
          },
          "hasGeneratedReceipt": {
            "type": "boolean"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__TransactionMetadataId"
              }
            ]
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__TransactionKind"
              }
            ]
          },
          "merchant": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__MerchantData"
              },
              {
                "description": " Merchant information for card transactions, including the merchant category code (MCC),\n merchant ID, Mercury category, and for international transactions, the amount and currency\n in the merchant's local currency. Nothing for non-card transactions."
              }
            ],
            "nullable": true
          },
          "mercuryCategory": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__MercuryCategory"
              }
            ],
            "nullable": true
          },
          "note": {
            "nullable": true,
            "type": "string"
          },
          "postedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__UTCTime"
              }
            ],
            "nullable": true
          },
          "reasonForFailure": {
            "nullable": true,
            "type": "string"
          },
          "relatedTransactions": {
            "items": {
              "$ref": "#/components/schemas/listtransactions__RelatedTransactionData"
            },
            "type": "array"
          },
          "requestId": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__TransactionStatus"
              }
            ]
          },
          "trackingNumber": {
            "description": " Present for transactions that have tracking numbers (e.g., RTP, ACH, wires); Nothing otherwise.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "amount",
          "createdAt",
          "estimatedDeliveryDate",
          "status",
          "counterpartyId",
          "dashboardLink",
          "counterpartyName",
          "kind",
          "compliantWithReceiptPolicy",
          "hasGeneratedReceipt",
          "glAllocations",
          "attachments",
          "relatedTransactions",
          "accountId"
        ],
        "type": "object"
      },
      "listtransactions__TransactionAccountingStatus": {
        "description": " A transaction's accounting review and sync status, for the accounting integration connected\n to the organization (e.g. QuickBooks, Xero, NetSuite).",
        "properties": {
          "erroredAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__UTCTime"
              },
              {
                "description": " When the sync of the transaction to the accounting integration failed. Null if it has not\n failed."
              }
            ],
            "nullable": true
          },
          "excludedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__UTCTime"
              },
              {
                "description": " When the transaction was excluded from accounting sync. Null if it is not excluded."
              }
            ],
            "nullable": true
          },
          "reviewedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__UTCTime"
              },
              {
                "description": " When the transaction was last marked as reviewed. Null if it has not been reviewed."
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__AccountingSyncStatus"
              },
              {
                "description": " Current review and sync status of the transaction. pending: not reviewed or synced yet,\n including transactions with no accounting activity. reviewed: marked as reviewed and ready to\n sync. syncing: a sync has started but not finished. synced: synced successfully. errored: the\n sync failed. excluded: excluded from accounting sync. When more than one applies, the first of\n excluded, errored, synced, syncing and reviewed wins."
              }
            ]
          },
          "syncStartedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__UTCTime"
              },
              {
                "description": " When a sync of the transaction to the accounting integration was started. This is the\n start of the sync, not its completion (see syncedAt). Null if no sync has been started."
              }
            ],
            "nullable": true
          },
          "syncedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__UTCTime"
              },
              {
                "description": " When the transaction finished syncing to the accounting integration successfully. Null if\n it has not finished syncing."
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "listtransactions__TransactionAttachment": {
        "properties": {
          "attachmentType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__TransactionAttachmentType"
              }
            ]
          },
          "fileName": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "fileName",
          "url",
          "attachmentType"
        ],
        "type": "object"
      },
      "listtransactions__TransactionAttachmentType": {
        "enum": [
          "checkImage",
          "receipt",
          "other"
        ],
        "type": "string"
      },
      "listtransactions__TransactionKind": {
        "enum": [
          "externalTransfer",
          "internalTransfer",
          "outgoingPayment",
          "creditCardCredit",
          "creditCardTransaction",
          "debitCardCredit",
          "debitCardTransaction",
          "cardInternationalTransactionFee",
          "cardInternationalTransactionFeeRebate",
          "cardInternationalTransactionFeeReversal",
          "cardInternationalTransactionFeeRebateReversal",
          "incomingDomesticWire",
          "checkDeposit",
          "incomingInternationalWire",
          "treasuryTransfer",
          "currencyCloudReturn",
          "wireFee",
          "personalBankingSubscriptionFee",
          "billingEngineSubscriptionFee",
          "expenseReimbursement",
          "exogenousWireDrawdown",
          "interestPayment",
          "other"
        ],
        "type": "string"
      },
      "listtransactions__TransactionMetadataId": {
        "description": "ID for this transaction",
        "format": "uuid",
        "type": "string"
      },
      "listtransactions__TransactionMethodData": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__AddressData"
              }
            ],
            "nullable": true
          },
          "creditCardInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__CreditCardInfo"
              }
            ],
            "nullable": true
          },
          "debitCardInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__DebitCardInfo"
              }
            ],
            "nullable": true
          },
          "domesticWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__DomesticWireRoutingInfo"
              }
            ],
            "nullable": true
          },
          "electronicRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__ElectronicRoutingInfo"
              }
            ],
            "nullable": true
          },
          "internationalWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransactions__InternationalWireRoutingInfo"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "listtransactions__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "listtransactions__TransactionRelationKind": {
        "enum": [
          "ProvisionalCreditReversalToMerchantRefund",
          "MerchantRefundToProvisionalCreditReversal",
          "MerchantRefundToFraudulentCharge",
          "FraudulentChargeToMerchantRefund",
          "PaymentRefundToFailedPayment",
          "FailedPaymentToPaymentRefund",
          "GiftCompensationToOriginalTransaction",
          "FeePaymentToOriginalTransaction",
          "OriginalTransactionToFeePayment",
          "FeePaymentToFeeRebate",
          "FeeRebateToFeePayment",
          "FeePaymentToFeeReversal",
          "FeeReversalToFeePayment",
          "FeeRebateToFeeRebateReversal",
          "FeeRebateReversalToFeeRebate",
          "TreasurySplitLiquidation",
          "ProvisionalCreditToOriginalCharge",
          "OriginalChargeToProvisionalCredit",
          "FeeAtmReimbursementToAtmTransaction",
          "AtmTransactionToFeeAtmReimbursement",
          "AtmTransactionToAtmReimbursementReversal",
          "AtmReimbursementReversalToAtmTransaction",
          "ReturnToOriginalTransaction",
          "OriginalTransactionToReturn",
          "ProvisionalCreditToReversal",
          "ReversalToProvisionalCredit",
          "MerchantRefundToOriginalCharge",
          "OriginalChargeToMerchantRefund"
        ],
        "type": "string"
      },
      "listtransactions__TransactionStatus": {
        "enum": [
          "pending",
          "sent",
          "cancelled",
          "failed",
          "reversed",
          "blocked"
        ],
        "type": "string"
      },
      "listtransactions__TransactionsPaginatedResponse": {
        "properties": {
          "page": {
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/listtransactions__UUID"
              },
              "previousPage": {
                "$ref": "#/components/schemas/listtransactions__UUID"
              }
            },
            "type": "object"
          },
          "transactions": {
            "items": {
              "$ref": "#/components/schemas/listtransactions__Transaction"
            },
            "type": "array"
          }
        },
        "required": [
          "transactions",
          "page"
        ],
        "type": "object"
      },
      "listtransactions__USState": {
        "enum": [
          "AL",
          "AK",
          "AZ",
          "AR",
          "CA",
          "CO",
          "CT",
          "DE",
          "DC",
          "FL",
          "GA",
          "HI",
          "ID",
          "IL",
          "IN",
          "IA",
          "KS",
          "KY",
          "LA",
          "ME",
          "MD",
          "MA",
          "MI",
          "MN",
          "MS",
          "MO",
          "MT",
          "NE",
          "NV",
          "NH",
          "NJ",
          "NM",
          "NY",
          "NC",
          "ND",
          "OH",
          "OK",
          "OR",
          "PA",
          "RI",
          "SC",
          "SD",
          "TN",
          "TX",
          "UT",
          "VT",
          "VA",
          "WA",
          "WV",
          "WI",
          "WY"
        ],
        "type": "string"
      },
      "listtransactions__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "listtransactions__UUID": {
        "example": "00000000-0000-0000-0000-000000000000",
        "format": "uuid",
        "type": "string"
      },
      "listtransfermoneyapprovalrequests__PaymentApprovalReview": {
        "properties": {
          "reviewedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransfermoneyapprovalrequests__UTCTime"
              }
            ]
          },
          "reviewerUserId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransfermoneyapprovalrequests__UserId"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransfermoneyapprovalrequests__PaymentApprovalReviewStatus"
              }
            ]
          }
        },
        "required": [
          "reviewerUserId",
          "status",
          "reviewedAt"
        ],
        "type": "object"
      },
      "listtransfermoneyapprovalrequests__PaymentApprovalReviewStatus": {
        "enum": [
          "approved",
          "rejected"
        ],
        "type": "string"
      },
      "listtransfermoneyapprovalrequests__PositiveDollar": {
        "description": "A positive dollar amount with at least 1 cent.",
        "format": "double",
        "minimum": 0.01,
        "type": "number"
      },
      "listtransfermoneyapprovalrequests__ReviewRequestStatus": {
        "enum": [
          "pendingApproval",
          "approved",
          "rejected",
          "cancelled"
        ],
        "type": "string"
      },
      "listtransfermoneyapprovalrequests__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "listtransfermoneyapprovalrequests__TransferMoneyApprovalRequestId": {
        "description": "ID for the transfer money approval request",
        "format": "uuid",
        "type": "string"
      },
      "listtransfermoneyapprovalrequests__TransferMoneyApprovalRequestResponse": {
        "description": " An approval request for a transfer between accounts.",
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransfermoneyapprovalrequests__PositiveDollar"
              }
            ]
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransfermoneyapprovalrequests__UTCTime"
              },
              {
                "description": " When the request was created."
              }
            ]
          },
          "destinationAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransfermoneyapprovalrequests__TransactionPartyId"
              },
              {
                "description": " The account the money is sent to."
              }
            ]
          },
          "memo": {
            "description": " Memo that appears on the resulting transaction.",
            "nullable": true,
            "type": "string"
          },
          "note": {
            "description": " Internal note recorded on the request. Not shown to any counterparty.",
            "nullable": true,
            "type": "string"
          },
          "numberOfApproversRequired": {
            "description": " Number of approvals required before the transfer is sent.",
            "maximum": 9223372036854776000,
            "minimum": -9223372036854776000,
            "nullable": true,
            "type": "integer"
          },
          "requestId": {
            "type": "string"
          },
          "requestedByUserId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransfermoneyapprovalrequests__UserId"
              },
              {
                "description": " The user who requested the transfer."
              }
            ]
          },
          "requesterMayApprove": {
            "description": " Whether the requester may approve this request. Omitted whenever numberOfApproversRequired is omitted.",
            "nullable": true,
            "type": "boolean"
          },
          "reviews": {
            "description": " Approval decisions recorded on this request, oldest first.",
            "items": {
              "$ref": "#/components/schemas/listtransfermoneyapprovalrequests__PaymentApprovalReview"
            },
            "type": "array"
          },
          "sourceAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransfermoneyapprovalrequests__TransactionPartyId"
              },
              {
                "description": " The account the money is sent from."
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/listtransfermoneyapprovalrequests__ReviewRequestStatus"
              }
            ]
          }
        },
        "required": [
          "requestId",
          "sourceAccountId",
          "destinationAccountId",
          "amount",
          "status",
          "requestedByUserId",
          "reviews",
          "createdAt"
        ],
        "type": "object"
      },
      "listtransfermoneyapprovalrequests__TransferMoneyApprovalRequestsPaginatedResponse": {
        "description": " A page of transfer approval requests.",
        "properties": {
          "page": {
            "properties": {
              "nextPage": {
                "$ref": "#/components/schemas/listtransfermoneyapprovalrequests__TransferMoneyApprovalRequestId"
              },
              "previousPage": {
                "$ref": "#/components/schemas/listtransfermoneyapprovalrequests__TransferMoneyApprovalRequestId"
              }
            },
            "type": "object"
          },
          "requests": {
            "items": {
              "$ref": "#/components/schemas/listtransfermoneyapprovalrequests__TransferMoneyApprovalRequestResponse"
            },
            "type": "array"
          }
        },
        "required": [
          "requests",
          "page"
        ],
        "type": "object"
      },
      "listtransfermoneyapprovalrequests__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "listtransfermoneyapprovalrequests__UserId": {
        "description": "ID for the user",
        "format": "uuid",
        "type": "string"
      },
      "obtainaccesstoken__OAuth2TokenRequest": {
        "properties": {
          "code": {
            "description": "The authorization code received from the authorization server. Required when grant_type is \"authorization_code\".",
            "type": "string"
          },
          "code_verifier": {
            "description": "Required for clients with PKCE flow when using authorization code. Use together with \\`grant_type=authorization_code\\`. This is the value whose hash was sent as \\`code_challenge\\` when starting the flow.",
            "type": "string"
          },
          "grant_type": {
            "description": "The grant type for the token request. Must be \"authorization_code\" for the authorization code flow or \"refresh_token\" when refreshing an access token.",
            "enum": [
              "authorization_code",
              "refresh_token"
            ],
            "type": "string"
          },
          "redirect_uri": {
            "description": "The redirect URI that was used in the authorization request. Required when grant_type is \\`authorization_code\\`.",
            "type": "string"
          },
          "refresh_token": {
            "description": "The refresh token from the last grant if the \\`offline_access\\` scope was included. Use together with \\`grant_type=refresh_token\\`.",
            "type": "string"
          },
          "scope": {
            "description": "A space-separated list of the scopes requested for the access token. Required when grant_type is \\`refresh_token\\`. Must be a subset of the scopes granted during the original authorization.",
            "type": "string"
          }
        },
        "required": [
          "grant_type",
          "code",
          "refresh_token",
          "redirect_uri",
          "code_verifier",
          "scope"
        ],
        "type": "object"
      },
      "obtainaccesstoken__OAuth2TokenResponse": {
        "properties": {
          "access_token": {
            "description": "The access token issued by the authorization server.",
            "type": "string"
          },
          "expires_in": {
            "default": 0,
            "description": "The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated.",
            "maximum": 9223372036854776000,
            "minimum": -9223372036854776000,
            "type": "integer"
          },
          "refresh_token": {
            "description": "The refresh token, which can be used to obtain new access tokens using the same authorization grant.",
            "type": "string"
          },
          "scope": {
            "description": "The scope of the access token. A space-separated list of scopes.",
            "type": "string"
          },
          "token_type": {
            "description": "The type of the token issued. Value is case insensitive and should be \"Bearer\".",
            "type": "string"
          }
        },
        "required": [
          "access_token",
          "token_type"
        ],
        "type": "object"
      },
      "requestsendmoney__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "requestsendmoney__PaymentApprovalReview": {
        "properties": {
          "reviewedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requestsendmoney__UTCTime"
              }
            ]
          },
          "reviewerUserId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requestsendmoney__UserId"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requestsendmoney__PaymentApprovalReviewStatus"
              }
            ]
          }
        },
        "required": [
          "reviewerUserId",
          "status",
          "reviewedAt"
        ],
        "type": "object"
      },
      "requestsendmoney__PaymentApprovalReviewStatus": {
        "enum": [
          "approved",
          "rejected"
        ],
        "type": "string"
      },
      "requestsendmoney__PositiveDollar": {
        "description": "A positive dollar amount with at least 1 cent.",
        "format": "double",
        "minimum": 0.01,
        "type": "number"
      },
      "requestsendmoney__PostTransactionSendMoneyPurpose": {
        "description": " External API representation of SendMoneyPurpose.\n Only exposes the 'simple' field to decouple internal implementation from external API.",
        "properties": {
          "simple": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requestsendmoney__SimplePurpose"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "requestsendmoney__RequestSendMoneyPaymentMethod": {
        "enum": [
          "ach",
          "check",
          "domesticWire",
          "internationalWire",
          "realTimePayment"
        ],
        "type": "string"
      },
      "requestsendmoney__ReviewRequestStatus": {
        "enum": [
          "pendingApproval",
          "approved",
          "rejected",
          "cancelled"
        ],
        "type": "string"
      },
      "requestsendmoney__SendMoneyAPIRequest": {
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requestsendmoney__PositiveDollar"
              }
            ],
            "description": "Amount of USD you want to send, must be a positive number."
          },
          "chargeType": {
            "description": "Who pays intermediary bank fees on a USD international wire. Pass 'ours' so the recipient receives the full amount (Mercury charges a $15 fee), or 'shared' to split those fees. If omitted on a USD international wire, this defaults to 'ours'. Do not include this field for other payment methods or accounts that are not charged international-wire fees.",
            "enum": [
              "ours",
              "shared"
            ],
            "type": "string"
          },
          "duplicateCheckOverride": {
            "description": "Set to true to skip the duplicate payment check. By default, payments are blocked if the same account sent the same amount to the same recipient with the same payment method in the last 24 hours, even when the idempotency key is different. Use this field only when you intentionally send a repeat payment. The check occurs when you create the request. When an approver approves the request, the check does not occur again.",
            "type": "boolean"
          },
          "externalMemo": {
            "description": "Optional external memo",
            "maxLength": 299,
            "type": "string"
          },
          "idempotencyKey": {
            "description": "Unique string identifying the transaction",
            "type": "string"
          },
          "note": {
            "description": "Optional note",
            "type": "string"
          },
          "paymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requestsendmoney__RequestSendMoneyPaymentMethod"
              }
            ],
            "description": "Payment method to use. If domesticWire or internationalWire is used, then the purpose field is required."
          },
          "purpose": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requestsendmoney__PostTransactionSendMoneyPurpose"
              }
            ],
            "description": "Purpose of payment with category and optional additional info. Required when paymentMethod is 'domesticWire' or 'internationalWire'."
          },
          "recipientId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requestsendmoney__TransactionPartyId"
              }
            ],
            "description": "Recipient ID from the /recipients endpoint."
          }
        },
        "required": [
          "recipientId",
          "amount",
          "paymentMethod",
          "idempotencyKey"
        ],
        "type": "object"
      },
      "requestsendmoney__SendMoneyApprovalRequestResponse": {
        "description": " A pending or completed approval request for a Mercury payment.",
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requestsendmoney__TransactionPartyId"
              }
            ]
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requestsendmoney__PositiveDollar"
              }
            ]
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requestsendmoney__UTCTime"
              },
              {
                "description": " Time at which the payment request was created."
              }
            ]
          },
          "memo": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "numberOfApproversRequired": {
            "description": " Total number of approvals required for this payment to be sent.\n Omitted for older requests where the requirement is not available.",
            "maximum": 9223372036854776000,
            "minimum": -9223372036854776000,
            "nullable": true,
            "type": "integer"
          },
          "paymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requestsendmoney__RequestSendMoneyPaymentMethod"
              }
            ]
          },
          "recipientId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requestsendmoney__TransactionPartyId"
              }
            ]
          },
          "requestId": {
            "type": "string"
          },
          "requestedByUserId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requestsendmoney__UserId"
              },
              {
                "description": " The user who created the payment request."
              }
            ]
          },
          "requesterMayApprove": {
            "description": " True when the approval requirement recorded for this payment names the\n requester as its approver. Reflects the recorded requirement, not the\n requester's current standing, so submitting the approval can still be\n refused. The value persists after the request settles and says only whether\n the requirement names the requester; whether an approval is still\n outstanding is carried by numberOfApproversRequired and status. Omitted for\n older requests where the requirement is not available.",
            "nullable": true,
            "type": "boolean"
          },
          "reviews": {
            "description": " Approval decisions recorded against this request, ordered from\n oldest to most recent.",
            "items": {
              "$ref": "#/components/schemas/requestsendmoney__PaymentApprovalReview"
            },
            "type": "array"
          },
          "scheduledSendDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requestsendmoney__Day"
              },
              {
                "description": " Date on which the payment is scheduled to be sent once fully\n approved. Null when the payment will be sent as soon as approvals\n are complete."
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requestsendmoney__ReviewRequestStatus"
              }
            ]
          }
        },
        "required": [
          "accountId",
          "requestId",
          "recipientId",
          "paymentMethod",
          "amount",
          "status",
          "requestedByUserId",
          "reviews",
          "createdAt"
        ],
        "type": "object"
      },
      "requestsendmoney__SimplePurpose": {
        "properties": {
          "additionalInfo": {
            "description": "Additional information. Required for: Vendor (vendor name), Contractor (contractor name), Other (payment description). Optional for Subsidiary (subsidiary name). Not accepted for any other categories.",
            "type": "string"
          },
          "category": {
            "description": "Payment category.",
            "enum": [
              "employee",
              "landlord",
              "vendor",
              "contractor",
              "subsidiary",
              "transferToMyExternalAccount",
              "familyMemberOrFriend",
              "forGoodsOrServices",
              "angelInvestment",
              "savingsOrInvestments",
              "expenses",
              "travel",
              "other"
            ],
            "type": "string"
          }
        },
        "required": [
          "category"
        ],
        "type": "object"
      },
      "requestsendmoney__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "requestsendmoney__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "requestsendmoney__UserId": {
        "description": "ID for the user",
        "format": "uuid",
        "type": "string"
      },
      "requesttransfermoney__PaymentApprovalReview": {
        "properties": {
          "reviewedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requesttransfermoney__UTCTime"
              }
            ]
          },
          "reviewerUserId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requesttransfermoney__UserId"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requesttransfermoney__PaymentApprovalReviewStatus"
              }
            ]
          }
        },
        "required": [
          "reviewerUserId",
          "status",
          "reviewedAt"
        ],
        "type": "object"
      },
      "requesttransfermoney__PaymentApprovalReviewStatus": {
        "enum": [
          "approved",
          "rejected"
        ],
        "type": "string"
      },
      "requesttransfermoney__PositiveDollar": {
        "description": "A positive dollar amount with at least 1 cent.",
        "format": "double",
        "minimum": 0.01,
        "type": "number"
      },
      "requesttransfermoney__ReviewRequestStatus": {
        "enum": [
          "pendingApproval",
          "approved",
          "rejected",
          "cancelled"
        ],
        "type": "string"
      },
      "requesttransfermoney__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "requesttransfermoney__TransferMoneyApprovalRequestAPIRequest": {
        "description": " Parameters for requesting a transfer between two accounts.",
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requesttransfermoney__PositiveDollar"
              }
            ]
          },
          "destinationAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requesttransfermoney__TransactionPartyId"
              }
            ]
          },
          "idempotencyKey": {
            "type": "string"
          },
          "note": {
            "nullable": true,
            "type": "string"
          },
          "sourceAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requesttransfermoney__TransactionPartyId"
              }
            ]
          }
        },
        "required": [
          "sourceAccountId",
          "destinationAccountId",
          "amount",
          "idempotencyKey"
        ],
        "type": "object"
      },
      "requesttransfermoney__TransferMoneyApprovalRequestResponse": {
        "description": " An approval request for a transfer between accounts.",
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requesttransfermoney__PositiveDollar"
              }
            ]
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requesttransfermoney__UTCTime"
              },
              {
                "description": " When the request was created."
              }
            ]
          },
          "destinationAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requesttransfermoney__TransactionPartyId"
              },
              {
                "description": " The account the money is sent to."
              }
            ]
          },
          "memo": {
            "description": " Memo that appears on the resulting transaction.",
            "nullable": true,
            "type": "string"
          },
          "note": {
            "description": " Internal note recorded on the request. Not shown to any counterparty.",
            "nullable": true,
            "type": "string"
          },
          "numberOfApproversRequired": {
            "description": " Number of approvals required before the transfer is sent.",
            "maximum": 9223372036854776000,
            "minimum": -9223372036854776000,
            "nullable": true,
            "type": "integer"
          },
          "requestId": {
            "type": "string"
          },
          "requestedByUserId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requesttransfermoney__UserId"
              },
              {
                "description": " The user who requested the transfer."
              }
            ]
          },
          "requesterMayApprove": {
            "description": " Whether the requester may approve this request. Omitted whenever numberOfApproversRequired is omitted.",
            "nullable": true,
            "type": "boolean"
          },
          "reviews": {
            "description": " Approval decisions recorded on this request, oldest first.",
            "items": {
              "$ref": "#/components/schemas/requesttransfermoney__PaymentApprovalReview"
            },
            "type": "array"
          },
          "sourceAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requesttransfermoney__TransactionPartyId"
              },
              {
                "description": " The account the money is sent from."
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/requesttransfermoney__ReviewRequestStatus"
              }
            ]
          }
        },
        "required": [
          "requestId",
          "sourceAccountId",
          "destinationAccountId",
          "amount",
          "status",
          "requestedByUserId",
          "reviews",
          "createdAt"
        ],
        "type": "object"
      },
      "requesttransfermoney__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "requesttransfermoney__UserId": {
        "description": "ID for the user",
        "format": "uuid",
        "type": "string"
      },
      "revealcardpan__CardExpiration": {
        "description": "Month and year the card expires.",
        "properties": {
          "month": {
            "description": "Calendar month.",
            "example": 8,
            "maximum": 12,
            "minimum": 1,
            "type": "integer"
          },
          "year": {
            "description": "Four-digit calendar year.",
            "example": 2026,
            "maximum": 2999,
            "minimum": 2000,
            "type": "integer"
          }
        },
        "required": [
          "month",
          "year"
        ],
        "type": "object"
      },
      "revealcardpan__CardRevealResponse": {
        "description": " Sensitive card details returned by the card reveal endpoint: the card's\n full number, expiration, and CVC.",
        "properties": {
          "cardNumber": {
            "description": " The card's full primary account number (PAN).",
            "type": "string"
          },
          "cvc": {
            "description": " The card's card verification code (CVC).",
            "type": "string"
          },
          "expiration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/revealcardpan__CardExpiration"
              },
              {
                "description": " Month and year the card expires."
              }
            ]
          }
        },
        "required": [
          "cardNumber",
          "expiration",
          "cvc"
        ],
        "type": "object"
      },
      "unfreezecard__Card": {
        "properties": {
          "accountId": {
            "description": " The Mercury account this card is associated with.",
            "type": "string"
          },
          "budgets": {
            "description": " One entry per active budget linked to this card and cardholder.\n Empty under cardLimit, or when this response has no active budget for the cardholder.",
            "items": {
              "$ref": "#/components/schemas/unfreezecard__CardBudget"
            },
            "type": "array"
          },
          "categoryLocks": {
            "description": " Mercury spend-category locks applied to this card, in no particular order. Empty when the card has no category restrictions.",
            "items": {
              "$ref": "#/components/schemas/unfreezecard__MercuryCategory"
            },
            "type": "array"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/unfreezecard__UTCTime"
              },
              {
                "description": " Timestamp when the card was issued."
              }
            ]
          },
          "expiration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/unfreezecard__CardExpiration"
              },
              {
                "description": " Month and year the card expires."
              }
            ]
          },
          "id": {
            "description": " Unique identifier for the card.",
            "format": "uuid",
            "type": "string"
          },
          "isAgentCard": {
            "description": " Whether the card is managed by the agentic spend-management agent. Only agent\n cards can have their full details revealed.",
            "type": "boolean"
          },
          "isSingleUse": {
            "description": " Whether the card closes automatically after its first approved purchase. A used\n single-use card reports a @singleUseConsumed@ status.",
            "type": "boolean"
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/unfreezecard__CardKind"
              },
              {
                "description": " Whether the card is a debit or credit card."
              }
            ]
          },
          "lastFour": {
            "description": " Last four digits of the card's primary account number (PAN).",
            "type": "string"
          },
          "merchantLock": {
            "allOf": [
              {
                "$ref": "#/components/schemas/unfreezecard__MerchantInfo"
              },
              {
                "description": " Merchant lock applied to this card. Present only when the card is locked to a single merchant; otherwise omitted."
              }
            ],
            "nullable": true
          },
          "nameOnCard": {
            "description": " Cardholder name printed on the card.",
            "type": "string"
          },
          "nickname": {
            "description": " Optional user-assigned label for the card.",
            "nullable": true,
            "type": "string"
          },
          "physicalCardStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/unfreezecard__PhysicalCardStatus"
              },
              {
                "description": " Activation state of a physical card. Null for virtual cards."
              }
            ],
            "nullable": true
          },
          "spendLimit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/unfreezecard__SpendLimit"
              },
              {
                "description": " Card-level spending controls. This is null when card-level limits are\n unavailable, including for credit cards governed by budgets. For debit\n cards, this includes the underlying card limits even when budgets govern\n purchase spending. In budget mode, the transaction limit does not gate\n purchases, but the ATM or cash limit can still apply to cash withdrawals."
              }
            ],
            "nullable": true
          },
          "spendLimitType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/unfreezecard__SpendLimitType"
              },
              {
                "description": " Whether card-level limits or budgets govern purchase spending."
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/unfreezecard__CardStatus"
              },
              {
                "description": " Current lifecycle state of the card."
              }
            ]
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/unfreezecard__CardType"
              },
              {
                "description": " Whether the card is virtual (digital-only) or physical (printed, supports ATM)."
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/unfreezecard__UTCTime"
              },
              {
                "description": " Timestamp of the last modification to the card or its settings."
              }
            ]
          },
          "userId": {
            "description": " Mercury User who owns the card.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "accountId",
          "createdAt",
          "updatedAt",
          "lastFour",
          "nameOnCard",
          "userId",
          "status",
          "type",
          "kind",
          "expiration",
          "spendLimitType",
          "budgets",
          "categoryLocks",
          "isAgentCard",
          "isSingleUse"
        ],
        "type": "object"
      },
      "unfreezecard__CardBudget": {
        "description": " Current-cycle limits for one budget linked to this card and cardholder.",
        "properties": {
          "amountCents": {
            "description": " The cardholder's spend limit for the current budget cycle, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "id": {
            "description": "Unique identifier for a budget",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": " Display name of the budget.",
            "type": "string"
          },
          "remainingAmountCents": {
            "description": " Current-cycle limit minus recorded spend, clamped at zero, in cents.\n Authorization also uses cached allocations and in-flight holds, so its available amount may differ.",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "amountCents",
          "remainingAmountCents"
        ],
        "type": "object"
      },
      "unfreezecard__CardExpiration": {
        "description": "Month and year the card expires.",
        "properties": {
          "month": {
            "description": "Calendar month.",
            "example": 8,
            "maximum": 12,
            "minimum": 1,
            "type": "integer"
          },
          "year": {
            "description": "Four-digit calendar year.",
            "example": 2026,
            "maximum": 2999,
            "minimum": 2000,
            "type": "integer"
          }
        },
        "required": [
          "month",
          "year"
        ],
        "type": "object"
      },
      "unfreezecard__CardKind": {
        "enum": [
          "debit",
          "credit"
        ],
        "type": "string"
      },
      "unfreezecard__CardStatus": {
        "enum": [
          "active",
          "frozen",
          "cancelled",
          "inactive",
          "expired",
          "suspended",
          "singleUseConsumed"
        ],
        "type": "string"
      },
      "unfreezecard__CardType": {
        "enum": [
          "virtual",
          "physical"
        ],
        "type": "string"
      },
      "unfreezecard__MerchantId": {
        "format": "uuid",
        "type": "string"
      },
      "unfreezecard__MerchantInfo": {
        "description": " Information about a merchant that can be used for spend controls like merchant locking.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/unfreezecard__MerchantId"
              }
            ]
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "unfreezecard__MercuryCategory": {
        "enum": [
          "Other",
          "Advertising",
          "Airlines",
          "AlcoholAndBars",
          "BooksAndNewspaper",
          "CarRental",
          "Charity",
          "Clothing",
          "Conferences",
          "Education",
          "Electronics",
          "Entertainment",
          "FacilitiesExpenses",
          "Fees",
          "FoodDelivery",
          "FuelAndGas",
          "Gambling",
          "GovernmentServices",
          "Grocery",
          "GroundTransportation",
          "Insurance",
          "InternetAndTelephone",
          "Legal",
          "Lodging",
          "Medical",
          "Memberships",
          "OfficeSupplies",
          "OtherTravel",
          "Parking",
          "Political",
          "ProfessionalServices",
          "Restaurants",
          "Retail",
          "RideshareAndTaxis",
          "Shipping",
          "Software",
          "Taxes",
          "Utilities",
          "VehicleExpenses"
        ],
        "type": "string"
      },
      "unfreezecard__PhysicalCardStatus": {
        "enum": [
          "inactive",
          "active",
          "locked"
        ],
        "type": "string"
      },
      "unfreezecard__SpendLimit": {
        "description": " Spending controls applied to a card",
        "properties": {
          "amountCents": {
            "description": " Maximum total spend allowed per interval, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "atmAmountCents": {
            "description": " Maximum ATM withdrawal allowed per interval, in cents. Null for virtual\n cards and credit cards.",
            "minimum": 0,
            "nullable": true,
            "type": "integer"
          },
          "interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/unfreezecard__SpendLimitInterval"
              },
              {
                "description": " Rolling window the limit applies to."
              }
            ]
          }
        },
        "required": [
          "amountCents",
          "interval"
        ],
        "type": "object"
      },
      "unfreezecard__SpendLimitInterval": {
        "enum": [
          "daily",
          "weekly",
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "unfreezecard__SpendLimitType": {
        "enum": [
          "cardLimit",
          "budgets"
        ],
        "type": "string"
      },
      "unfreezecard__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "updatebudget__ApiV1BudgetFrequency": {
        "enum": [
          "oneTime",
          "daily",
          "weekly",
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "updatebudget__ApiV1BudgetIdResponse": {
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatebudget__BudgetId"
              }
            ]
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "updatebudget__ApiV1UpdateBudgetRequest": {
        "properties": {
          "amountPerUserPerPeriod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatebudget__NonNegativeDollar"
              }
            ],
            "nullable": true
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "endDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatebudget__Day"
              }
            ],
            "nullable": true
          },
          "frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatebudget__ApiV1BudgetFrequency"
              }
            ],
            "nullable": true
          },
          "name": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "startDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatebudget__Day"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "updatebudget__BudgetId": {
        "description": "ID for the budget",
        "format": "uuid",
        "type": "string"
      },
      "updatebudget__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "updatebudget__NonNegativeDollar": {
        "description": "A non-negative dollar amount",
        "format": "double",
        "minimum": 0,
        "type": "number"
      },
      "updatecard__Card": {
        "properties": {
          "accountId": {
            "description": " The Mercury account this card is associated with.",
            "type": "string"
          },
          "budgets": {
            "description": " One entry per active budget linked to this card and cardholder.\n Empty under cardLimit, or when this response has no active budget for the cardholder.",
            "items": {
              "$ref": "#/components/schemas/updatecard__CardBudget"
            },
            "type": "array"
          },
          "categoryLocks": {
            "description": " Mercury spend-category locks applied to this card, in no particular order. Empty when the card has no category restrictions.",
            "items": {
              "$ref": "#/components/schemas/updatecard__MercuryCategory"
            },
            "type": "array"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecard__UTCTime"
              },
              {
                "description": " Timestamp when the card was issued."
              }
            ]
          },
          "expiration": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecard__CardExpiration"
              },
              {
                "description": " Month and year the card expires."
              }
            ]
          },
          "id": {
            "description": " Unique identifier for the card.",
            "format": "uuid",
            "type": "string"
          },
          "isAgentCard": {
            "description": " Whether the card is managed by the agentic spend-management agent. Only agent\n cards can have their full details revealed.",
            "type": "boolean"
          },
          "isSingleUse": {
            "description": " Whether the card closes automatically after its first approved purchase. A used\n single-use card reports a @singleUseConsumed@ status.",
            "type": "boolean"
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecard__CardKind"
              },
              {
                "description": " Whether the card is a debit or credit card."
              }
            ]
          },
          "lastFour": {
            "description": " Last four digits of the card's primary account number (PAN).",
            "type": "string"
          },
          "merchantLock": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecard__MerchantInfo"
              },
              {
                "description": " Merchant lock applied to this card. Present only when the card is locked to a single merchant; otherwise omitted."
              }
            ],
            "nullable": true
          },
          "nameOnCard": {
            "description": " Cardholder name printed on the card.",
            "type": "string"
          },
          "nickname": {
            "description": " Optional user-assigned label for the card.",
            "nullable": true,
            "type": "string"
          },
          "physicalCardStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecard__PhysicalCardStatus"
              },
              {
                "description": " Activation state of a physical card. Null for virtual cards."
              }
            ],
            "nullable": true
          },
          "spendLimit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecard__SpendLimit"
              },
              {
                "description": " Card-level spending controls. This is null when card-level limits are\n unavailable, including for credit cards governed by budgets. For debit\n cards, this includes the underlying card limits even when budgets govern\n purchase spending. In budget mode, the transaction limit does not gate\n purchases, but the ATM or cash limit can still apply to cash withdrawals."
              }
            ],
            "nullable": true
          },
          "spendLimitType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecard__SpendLimitType"
              },
              {
                "description": " Whether card-level limits or budgets govern purchase spending."
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecard__CardStatus"
              },
              {
                "description": " Current lifecycle state of the card."
              }
            ]
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecard__CardType"
              },
              {
                "description": " Whether the card is virtual (digital-only) or physical (printed, supports ATM)."
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecard__UTCTime"
              },
              {
                "description": " Timestamp of the last modification to the card or its settings."
              }
            ]
          },
          "userId": {
            "description": " Mercury User who owns the card.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "accountId",
          "createdAt",
          "updatedAt",
          "lastFour",
          "nameOnCard",
          "userId",
          "status",
          "type",
          "kind",
          "expiration",
          "spendLimitType",
          "budgets",
          "categoryLocks",
          "isAgentCard",
          "isSingleUse"
        ],
        "type": "object"
      },
      "updatecard__CardBudget": {
        "description": " Current-cycle limits for one budget linked to this card and cardholder.",
        "properties": {
          "amountCents": {
            "description": " The cardholder's spend limit for the current budget cycle, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "id": {
            "description": "Unique identifier for a budget",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": " Display name of the budget.",
            "type": "string"
          },
          "remainingAmountCents": {
            "description": " Current-cycle limit minus recorded spend, clamped at zero, in cents.\n Authorization also uses cached allocations and in-flight holds, so its available amount may differ.",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "amountCents",
          "remainingAmountCents"
        ],
        "type": "object"
      },
      "updatecard__CardExpiration": {
        "description": "Month and year the card expires.",
        "properties": {
          "month": {
            "description": "Calendar month.",
            "example": 8,
            "maximum": 12,
            "minimum": 1,
            "type": "integer"
          },
          "year": {
            "description": "Four-digit calendar year.",
            "example": 2026,
            "maximum": 2999,
            "minimum": 2000,
            "type": "integer"
          }
        },
        "required": [
          "month",
          "year"
        ],
        "type": "object"
      },
      "updatecard__CardKind": {
        "enum": [
          "debit",
          "credit"
        ],
        "type": "string"
      },
      "updatecard__CardStatus": {
        "enum": [
          "active",
          "frozen",
          "cancelled",
          "inactive",
          "expired",
          "suspended",
          "singleUseConsumed"
        ],
        "type": "string"
      },
      "updatecard__CardType": {
        "enum": [
          "virtual",
          "physical"
        ],
        "type": "string"
      },
      "updatecard__MerchantId": {
        "format": "uuid",
        "type": "string"
      },
      "updatecard__MerchantInfo": {
        "description": " Information about a merchant that can be used for spend controls like merchant locking.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecard__MerchantId"
              }
            ]
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "updatecard__MercuryCategory": {
        "enum": [
          "Other",
          "Advertising",
          "Airlines",
          "AlcoholAndBars",
          "BooksAndNewspaper",
          "CarRental",
          "Charity",
          "Clothing",
          "Conferences",
          "Education",
          "Electronics",
          "Entertainment",
          "FacilitiesExpenses",
          "Fees",
          "FoodDelivery",
          "FuelAndGas",
          "Gambling",
          "GovernmentServices",
          "Grocery",
          "GroundTransportation",
          "Insurance",
          "InternetAndTelephone",
          "Legal",
          "Lodging",
          "Medical",
          "Memberships",
          "OfficeSupplies",
          "OtherTravel",
          "Parking",
          "Political",
          "ProfessionalServices",
          "Restaurants",
          "Retail",
          "RideshareAndTaxis",
          "Shipping",
          "Software",
          "Taxes",
          "Utilities",
          "VehicleExpenses"
        ],
        "type": "string"
      },
      "updatecard__NicknameUpdate": {
        "description": "Nickname update action. Omit the field to keep the current nickname, send null or an empty/whitespace-only string to clear it, or send a string to set it.",
        "nullable": true,
        "type": "string"
      },
      "updatecard__PhysicalCardStatus": {
        "enum": [
          "inactive",
          "active",
          "locked"
        ],
        "type": "string"
      },
      "updatecard__SpendLimit": {
        "description": " Spending controls applied to a card",
        "properties": {
          "amountCents": {
            "description": " Maximum total spend allowed per interval, in cents.",
            "minimum": 0,
            "type": "integer"
          },
          "atmAmountCents": {
            "description": " Maximum ATM withdrawal allowed per interval, in cents. Null for virtual\n cards and credit cards.",
            "minimum": 0,
            "nullable": true,
            "type": "integer"
          },
          "interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecard__SpendLimitInterval"
              },
              {
                "description": " Rolling window the limit applies to."
              }
            ]
          }
        },
        "required": [
          "amountCents",
          "interval"
        ],
        "type": "object"
      },
      "updatecard__SpendLimitInterval": {
        "enum": [
          "daily",
          "weekly",
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "updatecard__SpendLimitType": {
        "enum": [
          "cardLimit",
          "budgets"
        ],
        "type": "string"
      },
      "updatecard__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "updatecard__UpdateCardRequest": {
        "description": " At least one updateable field must be provided;\n requests where every field is the same are rejected.",
        "properties": {
          "nickname": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecard__NicknameUpdate"
              },
              {
                "description": " Updated card nickname. Omit to keep current, send null/empty to clear, send a string to set."
              }
            ]
          },
          "spendLimit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecard__SpendLimit"
              },
              {
                "description": " Updated spending controls for the card. Omit to leave unchanged."
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "updatecustomer__ApiV1ArCustomerAddress": {
        "description": " Customer address information for Accounts Receivable API",
        "properties": {
          "address1": {
            "description": " Primary street address line.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "address2": {
            "description": " Secondary street address line (optional).",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "city": {
            "description": " City name.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecustomer__ISO3166Alpha2"
              },
              {
                "description": " Two-letter country code (ISO 3166-1 alpha-2)."
              }
            ]
          },
          "postalCode": {
            "description": " Postal or ZIP code",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecustomer__Region"
              },
              {
                "description": " State, province, or region."
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "updatecustomer__ApiV1ArCustomerAddressInput": {
        "description": " Address input for creating or updating customers",
        "properties": {
          "address1": {
            "description": " Primary street address line.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "address2": {
            "description": " Secondary street address line (optional).",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "city": {
            "description": " City name.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecustomer__ISO3166Alpha2"
              },
              {
                "description": " Two-letter country code (ISO 3166-1 alpha-2)."
              }
            ]
          },
          "name": {
            "description": " The mailing name of the address.",
            "type": "string"
          },
          "postalCode": {
            "description": " Postal or ZIP code.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecustomer__Region"
              },
              {
                "description": " Either a two-letter US state code i.e. \"CA\" for California or a free-form identification of a particular region worldwide."
              }
            ]
          }
        },
        "required": [
          "name",
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "updatecustomer__ApiV1ArCustomerResponseData": {
        "description": " Response data for Accounts Receivable customer API endpoints",
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecustomer__ApiV1ArCustomerAddress"
              },
              {
                "description": " Address of customer."
              }
            ],
            "nullable": true
          },
          "deletedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecustomer__UTCTime"
              },
              {
                "description": " The time the customer was deleted, if it was deleted."
              }
            ],
            "nullable": true
          },
          "email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecustomer__Email"
              },
              {
                "description": " Email of customer."
              }
            ]
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecustomer__CustomerId"
              },
              {
                "description": " ArCustomerId"
              }
            ]
          },
          "name": {
            "description": " Name of customer.",
            "maxLength": 5000,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id",
          "email",
          "name"
        ],
        "type": "object"
      },
      "updatecustomer__ApiV1ArCustomerUpdateRequest": {
        "description": " Request data to update a customer using the public api",
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecustomer__ApiV1ArCustomerAddressInput"
              },
              {
                "description": " The address for the customer."
              }
            ],
            "nullable": true
          },
          "email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatecustomer__Email"
              },
              {
                "description": " The email address for the customer."
              }
            ]
          },
          "name": {
            "description": " The name of the customer.",
            "maxLength": 5000,
            "minLength": 1,
            "type": "string"
          },
          "resendOpenInvoices": {
            "description": " Open invoices for the customer will be resent with updated data\n when this is true.",
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "email",
          "resendOpenInvoices"
        ],
        "type": "object"
      },
      "updatecustomer__CustomerId": {
        "description": "The customer who will receive the invoice. Use the /api/v1/ar/customers endpoint to list your customers and find the corresponding id, or create a new customer first.",
        "format": "uuid",
        "type": "string"
      },
      "updatecustomer__Email": {
        "type": "string"
      },
      "updatecustomer__ISO3166Alpha2": {
        "type": "string"
      },
      "updatecustomer__Region": {
        "type": "string"
      },
      "updatecustomer__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "updateinvoice__ApiV1ArInvoiceResponse": {
        "description": " The response type for an invoice in the api.",
        "properties": {
          "achDebitEnabled": {
            "description": " Whether or not the invoice can be paid via ach debit.",
            "type": "boolean"
          },
          "amount": {
            "description": " The total amount of the invoice line items plus taxes.",
            "multipleOf": 0.01,
            "type": "number"
          },
          "canceledAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updateinvoice__UTCTime"
              },
              {
                "description": " The time when the invoice was canceled."
              }
            ],
            "nullable": true
          },
          "ccEmails": {
            "description": " Emails to be CCed on invoice notifications/reminders.",
            "items": {
              "$ref": "#/components/schemas/updateinvoice__Email"
            },
            "type": "array"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updateinvoice__UTCTime"
              },
              {
                "description": " The timestamp when the invoice was created."
              }
            ]
          },
          "creditCardEnabled": {
            "description": " Whether or not the invoice can be paid via credit card. Requires stripe to be\n setup for the Mercury account.",
            "type": "boolean"
          },
          "currencyCode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updateinvoice__CurrencyCode"
              },
              {
                "description": " ISO 4217 currency code for the invoice (e.g. \"USD\", \"EUR\")."
              }
            ]
          },
          "customerId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updateinvoice__CustomerId"
              },
              {
                "description": " Id of the customer the invoice was sent to."
              }
            ]
          },
          "destinationAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updateinvoice__TransactionPartyId"
              },
              {
                "description": " The Mercury account where invoice payments will be deposited. Use the /api/v1/accounts endpoint to list your accounts and find the corresponding id. Only checking and savings accounts are supported."
              }
            ]
          },
          "dueDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updateinvoice__Day"
              },
              {
                "description": " The due date the invoice should be paid by."
              }
            ]
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updateinvoice__InvoiceId"
              },
              {
                "description": " The ID of the invoice."
              }
            ]
          },
          "internalNote": {
            "description": " Internal note for the invoice, visible by users in the\n mercury organization but not visible to payers.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "invoiceDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updateinvoice__Day"
              },
              {
                "description": " The date of the invoice, set by the invoice creator\n and likely to be context specific to the type of transaction.\n i.e. it could be a date a service was performed, it does not need\n to be the date the invoice was created."
              }
            ]
          },
          "invoiceNumber": {
            "description": " The payer facing invoice number/identifier.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "lineItems": {
            "description": " The line items for the invoice.",
            "items": {
              "$ref": "#/components/schemas/updateinvoice__ApiV1ArLineItemData"
            },
            "type": "array"
          },
          "payerMemo": {
            "description": " Memo for the payer of the invoice.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "poNumber": {
            "description": " Purchase order number for the invoice if applicable.",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "servicePeriodEndDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updateinvoice__Day"
              },
              {
                "description": " The end date for the service period this invoice covers, if applicable. YYYY-MM-DD"
              }
            ],
            "nullable": true
          },
          "servicePeriodStartDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updateinvoice__Day"
              },
              {
                "description": " The start date for the service period this invoice covers, if applicable. YYYY-MM-DD"
              }
            ],
            "nullable": true
          },
          "slug": {
            "description": " Public slug for an invoice. Used to construct the pay page URL\n as well as the URL to retrieve the PDF of the invoice.",
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updateinvoice__PaymentLinkStatus"
              },
              {
                "description": " The status of the invoice."
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updateinvoice__UTCTime"
              },
              {
                "description": " The timestamp when the invoice was updated."
              }
            ]
          },
          "useRealAccountNumber": {
            "description": " Whether or not the invoice payment instructions will show the real\n account and routing number for the destination account or use\n virtual account numbers instead.",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "dueDate",
          "invoiceDate",
          "invoiceNumber",
          "customerId",
          "ccEmails",
          "slug",
          "status",
          "amount",
          "currencyCode",
          "destinationAccountId",
          "creditCardEnabled",
          "achDebitEnabled",
          "useRealAccountNumber",
          "createdAt",
          "updatedAt",
          "lineItems"
        ],
        "type": "object"
      },
      "updateinvoice__ApiV1ArInvoiceUpdateRequest": {
        "description": " The request body to update an invoice.",
        "properties": {
          "achDebitEnabled": {
            "description": " Whether or not the invoice can be paid via ACH debit.",
            "type": "boolean"
          },
          "ccEmails": {
            "description": " List of emails to be CCed on notifications/reminders.",
            "items": {
              "$ref": "#/components/schemas/updateinvoice__Email"
            },
            "type": "array"
          },
          "creditCardEnabled": {
            "description": " Whether or not the invoice can be paid via credit card. Requires Stripe to be setup for the Mercury account.",
            "type": "boolean"
          },
          "dueDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updateinvoice__Day"
              },
              {
                "description": " The date the invoice should be paid by. YYYY-MM-DD"
              }
            ]
          },
          "internalNote": {
            "description": " Internal note for the invoice, visible by users in the organization but not visible to payers.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "invoiceDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updateinvoice__Day"
              },
              {
                "description": " The date of the invoice, set by the invoice creator. Does not have to be the day the invoice was created. It can be business specific i.e. service/sale date. YYYY-MM-DD"
              }
            ]
          },
          "invoiceNumber": {
            "description": " The invoice number.",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "lineItems": {
            "description": " The line items for the invoice",
            "items": {
              "$ref": "#/components/schemas/updateinvoice__ApiV1ArLineItemData"
            },
            "type": "array"
          },
          "payerMemo": {
            "description": " Memo for the payer of the invoice.",
            "maxLength": 5000,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "poNumber": {
            "description": " The purchase order number for the invoice if applicable.",
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "servicePeriodEndDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updateinvoice__Day"
              },
              {
                "description": " The end date for the service period this invoice covers, if applicable. YYYY-MM-DD"
              }
            ],
            "nullable": true
          },
          "servicePeriodStartDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updateinvoice__Day"
              },
              {
                "description": " The start date for the service period this invoice covers, if applicable. YYYY-MM-DD"
              }
            ],
            "nullable": true
          },
          "useRealAccountNumber": {
            "description": " Whether or not the invoice payment instructions will show the real account and routing number for the destination account or use virtual account numbers instead.",
            "type": "boolean"
          }
        },
        "required": [
          "dueDate",
          "invoiceDate",
          "invoiceNumber",
          "ccEmails",
          "creditCardEnabled",
          "achDebitEnabled",
          "useRealAccountNumber",
          "lineItems"
        ],
        "type": "object"
      },
      "updateinvoice__ApiV1ArLineItemData": {
        "description": " Data for an invoice line item",
        "properties": {
          "name": {
            "description": " the name of the line item",
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "quantity": {
            "description": " the quantity of this item",
            "format": "double",
            "type": "number"
          },
          "salesTaxRate": {
            "description": " the sales tax applied to this item",
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "unitPrice": {
            "description": " the price of one unit of the item before sales tax",
            "multipleOf": 0.01,
            "type": "number"
          }
        },
        "required": [
          "name",
          "unitPrice",
          "quantity"
        ],
        "type": "object"
      },
      "updateinvoice__CurrencyCode": {
        "type": "string"
      },
      "updateinvoice__CustomerId": {
        "description": "The customer who will receive the invoice. Use the /api/v1/ar/customers endpoint to list your customers and find the corresponding id, or create a new customer first.",
        "format": "uuid",
        "type": "string"
      },
      "updateinvoice__Day": {
        "example": "2016-07-22",
        "format": "date",
        "type": "string"
      },
      "updateinvoice__Email": {
        "type": "string"
      },
      "updateinvoice__InvoiceId": {
        "description": "ID for the invoice.",
        "format": "uuid",
        "type": "string"
      },
      "updateinvoice__PaymentLinkStatus": {
        "enum": [
          "Unpaid",
          "Paid",
          "Cancelled",
          "Processing"
        ],
        "type": "string"
      },
      "updateinvoice__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "updateinvoice__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "updaterecipient__Address": {
        "properties": {
          "address1": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "address2": {
            "maxLength": 299,
            "minLength": 1,
            "nullable": true,
            "type": "string"
          },
          "city": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__ISO3166Alpha2"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "postalCode": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__Region"
              }
            ]
          }
        },
        "required": [
          "name",
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "updaterecipient__AddressData": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__USState"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "address1",
          "city",
          "postalCode"
        ],
        "type": "object"
      },
      "updaterecipient__AddressWithoutName": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__ISO3166Alpha2"
              }
            ]
          },
          "postalCode": {
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__Region"
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "updaterecipient__CheckInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__AddressWithoutName"
              }
            ]
          }
        },
        "required": [
          "address"
        ],
        "type": "object"
      },
      "updaterecipient__CheckInfoRaw": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__AddressWithoutName"
              },
              {
                "description": " Mailing address for sending a physical check."
              }
            ]
          }
        },
        "required": [
          "address"
        ],
        "type": "object"
      },
      "updaterecipient__DomesticWireRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber"
        ],
        "type": "object"
      },
      "updaterecipient__DomesticWireRoutingInfoRaw": {
        "properties": {
          "accountNumber": {
            "description": " The account number of the bank account to use for domestic wire payments.",
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__AddressWithoutName"
              },
              {
                "description": " The address of the bank account to use for domestic wire payments. This has to be the recipient's legal address."
              }
            ]
          },
          "routingNumber": {
            "description": " The routing number of the bank account to use for domestic wire payments.",
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "address"
        ],
        "type": "object"
      },
      "updaterecipient__EditRecipientRequest": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__AddressData"
              }
            ],
            "description": "Deprecated. Use checkInfo instead."
          },
          "checkInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__CheckInfoRaw"
              }
            ],
            "description": "Information needed to send a check."
          },
          "contactEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__Email"
              }
            ],
            "description": "Contact email address of the recipient"
          },
          "domesticWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__DomesticWireRoutingInfoRaw"
              }
            ],
            "description": "Information needed to send a domestic wire."
          },
          "electronicRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__ElectronicRoutingInfoRaw"
              }
            ],
            "description": "Information needed to send an ACH."
          },
          "emails": {
            "items": {
              "$ref": "#/components/schemas/updaterecipient__Email"
            },
            "type": "array"
          },
          "name": {
            "maxLength": 299,
            "minLength": 1,
            "type": "string"
          },
          "nickname": {
            "type": "string"
          },
          "realTimePaymentRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__RealTimePaymentRoutingInfoRaw"
              }
            ],
            "description": "Information needed to send a real-time payment."
          }
        },
        "type": "object"
      },
      "updaterecipient__ElectronicAccountType": {
        "enum": [
          "businessChecking",
          "businessSavings",
          "personalChecking",
          "personalSavings",
          "businessGeneralLedger",
          "personalGeneralLedger",
          "businessLoan",
          "personalLoan"
        ],
        "type": "string"
      },
      "updaterecipient__ElectronicRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "electronicAccountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__ElectronicAccountType"
              }
            ]
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "electronicAccountType"
        ],
        "type": "object"
      },
      "updaterecipient__ElectronicRoutingInfoRaw": {
        "properties": {
          "accountNumber": {
            "description": " The account number of the bank account to use for ACH payments.",
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__AddressWithoutName"
              },
              {
                "description": " The address of the bank account to use for ACH payments. This has to be the recipient's legal address."
              }
            ]
          },
          "electronicAccountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__ElectronicAccountType"
              },
              {
                "description": " The type of bank account to use for ACH payments."
              }
            ]
          },
          "routingNumber": {
            "description": " The routing number of the bank account to use for ACH payments.",
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "electronicAccountType",
          "address"
        ],
        "type": "object"
      },
      "updaterecipient__Email": {
        "type": "string"
      },
      "updaterecipient__ISO3166Alpha2": {
        "type": "string"
      },
      "updaterecipient__InternationalWireAustraliaSpecificData": {
        "properties": {
          "bsbCode": {
            "type": "string"
          }
        },
        "required": [
          "bsbCode"
        ],
        "type": "object"
      },
      "updaterecipient__InternationalWireBrazilSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "updaterecipient__InternationalWireCanadaSpecificData": {
        "properties": {
          "bankCode": {
            "type": "string"
          },
          "transitNumber": {
            "type": "string"
          }
        },
        "required": [
          "bankCode",
          "transitNumber"
        ],
        "type": "object"
      },
      "updaterecipient__InternationalWireChileSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "updaterecipient__InternationalWireColombiaSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "updaterecipient__InternationalWireCorrespondentInfo": {
        "properties": {
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "updaterecipient__InternationalWireCountrySpecificData": {
        "properties": {
          "australia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWireAustraliaSpecificData"
              }
            ],
            "nullable": true
          },
          "brazil": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWireBrazilSpecificData"
              }
            ],
            "nullable": true
          },
          "canada": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWireCanadaSpecificData"
              }
            ],
            "nullable": true
          },
          "chile": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWireChileSpecificData"
              }
            ],
            "nullable": true
          },
          "colombia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWireColombiaSpecificData"
              }
            ],
            "nullable": true
          },
          "dominicanRepublic": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWireDominicanRepublicSpecificData"
              }
            ],
            "nullable": true
          },
          "honduras": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWireHondurasSpecificData"
              }
            ],
            "nullable": true
          },
          "india": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWireIndiaSpecificData"
              }
            ],
            "nullable": true
          },
          "kazakhstan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWireKazakhstanSpecificData"
              }
            ],
            "nullable": true
          },
          "pakistan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWirePakistanSpecificData"
              }
            ],
            "nullable": true
          },
          "paraguay": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWireParaguaySpecificData"
              }
            ],
            "nullable": true
          },
          "philippines": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWirePhilippinesSpecificData"
              }
            ],
            "nullable": true
          },
          "russia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWireRussiaSpecificData"
              }
            ],
            "nullable": true
          },
          "southAfrica": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWireSouthAfricaSpecificData"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "updaterecipient__InternationalWireDominicanRepublicSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "updaterecipient__InternationalWireHondurasSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "updaterecipient__InternationalWireIndiaSpecificData": {
        "properties": {
          "ifscCode": {
            "type": "string"
          }
        },
        "required": [
          "ifscCode"
        ],
        "type": "object"
      },
      "updaterecipient__InternationalWireKazakhstanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "updaterecipient__InternationalWirePakistanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          },
          "legalIdType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__PakistaniLegalIdType"
              }
            ]
          }
        },
        "required": [
          "legalIdType",
          "legalId"
        ],
        "type": "object"
      },
      "updaterecipient__InternationalWireParaguaySpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "updaterecipient__InternationalWirePhilippinesSpecificData": {
        "properties": {
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "routingNumber"
        ],
        "type": "object"
      },
      "updaterecipient__InternationalWireRoutingInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankDetails": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__SwiftCodeData"
              }
            ],
            "nullable": true
          },
          "correspondentInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWireCorrespondentInfo"
              }
            ],
            "nullable": true
          },
          "countrySpecific": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWireCountrySpecificData"
              }
            ]
          },
          "emailAddress": {
            "nullable": true,
            "type": "string"
          },
          "iban": {
            "type": "string"
          },
          "phoneNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "type": "string"
          }
        },
        "required": [
          "iban",
          "swiftCode",
          "countrySpecific"
        ],
        "type": "object"
      },
      "updaterecipient__InternationalWireRussiaSpecificData": {
        "properties": {
          "inn": {
            "type": "string"
          }
        },
        "required": [
          "inn"
        ],
        "type": "object"
      },
      "updaterecipient__InternationalWireSouthAfricaSpecificData": {
        "properties": {
          "branchCode": {
            "type": "string"
          }
        },
        "required": [
          "branchCode"
        ],
        "type": "object"
      },
      "updaterecipient__PakistaniLegalIdType": {
        "enum": [
          "CNIC",
          "SNIC",
          "Passport",
          "NTN"
        ],
        "type": "string"
      },
      "updaterecipient__PaymentMethod": {
        "enum": [
          "ach",
          "check",
          "domesticWire",
          "internationalWire",
          "realTimePayment"
        ],
        "type": "string"
      },
      "updaterecipient__RealTimePaymentRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber"
        ],
        "type": "object"
      },
      "updaterecipient__RealTimePaymentRoutingInfoRaw": {
        "description": " Routing information for real-time payments.",
        "properties": {
          "accountNumber": {
            "description": " The account number of the bank account to use for real-time payments.",
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__AddressWithoutName"
              },
              {
                "description": " The address of the bank account to use for real-time payments."
              }
            ]
          },
          "routingNumber": {
            "description": " The routing number of the bank account to use for real-time payments.",
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "address"
        ],
        "type": "object"
      },
      "updaterecipient__RecipientAttachment": {
        "properties": {
          "fileName": {
            "description": " Name of the uploaded file",
            "type": "string"
          },
          "formType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__TaxFormType"
              },
              {
                "description": " The tax form type (W-9 for US persons, W-8BEN for foreign individuals, W-8BEN-E for foreign entities)"
              }
            ],
            "nullable": true
          },
          "uploadedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__UTCTime"
              },
              {
                "description": " Timestamp when the attachment was uploaded"
              }
            ]
          },
          "url": {
            "description": " Presigned URL to download the attachment (valid for 12 hours)",
            "type": "string"
          }
        },
        "required": [
          "fileName",
          "url",
          "uploadedAt"
        ],
        "type": "object"
      },
      "updaterecipient__RecipientInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__Address"
              }
            ],
            "nullable": true
          },
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/updaterecipient__RecipientAttachment"
            },
            "type": "array"
          },
          "checkInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__CheckInfo"
              }
            ],
            "nullable": true
          },
          "contactEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__Email"
              }
            ],
            "nullable": true
          },
          "dateLastPaid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__UTCTime"
              }
            ],
            "nullable": true
          },
          "defaultAddress": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "defaultPaymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__PaymentMethod"
              }
            ]
          },
          "domesticWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__DomesticWireRoutingInfo"
              }
            ],
            "nullable": true
          },
          "electronicRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__ElectronicRoutingInfo"
              }
            ],
            "nullable": true
          },
          "emails": {
            "items": {
              "$ref": "#/components/schemas/updaterecipient__Email"
            },
            "type": "array"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__TransactionPartyId"
              }
            ]
          },
          "internationalWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__InternationalWireRoutingInfo"
              }
            ],
            "nullable": true
          },
          "inviteId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__Slug"
              }
            ],
            "nullable": true
          },
          "isBusiness": {
            "nullable": true,
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "nickname": {
            "nullable": true,
            "type": "string"
          },
          "realTimePaymentRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__RealTimePaymentRoutingInfo"
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__RecipientStatus"
              }
            ]
          }
        },
        "required": [
          "id",
          "status",
          "name",
          "emails",
          "defaultPaymentMethod",
          "attachments"
        ],
        "type": "object"
      },
      "updaterecipient__RecipientStatus": {
        "enum": [
          "active",
          "deleted"
        ],
        "type": "string"
      },
      "updaterecipient__Region": {
        "type": "string"
      },
      "updaterecipient__Slug": {
        "type": "string"
      },
      "updaterecipient__SwiftBankAccountType": {
        "enum": [
          "checking",
          "savings"
        ],
        "type": "string"
      },
      "updaterecipient__SwiftCodeData": {
        "properties": {
          "bankCityState": {
            "type": "string"
          },
          "bankCountry": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updaterecipient__ISO3166Alpha2"
              }
            ]
          },
          "bankName": {
            "type": "string"
          }
        },
        "required": [
          "bankName",
          "bankCityState",
          "bankCountry"
        ],
        "type": "object"
      },
      "updaterecipient__TaxFormType": {
        "enum": [
          "w9",
          "w8BEN",
          "w8BENE",
          "unknown"
        ],
        "type": "string"
      },
      "updaterecipient__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "updaterecipient__USState": {
        "enum": [
          "AL",
          "AK",
          "AZ",
          "AR",
          "CA",
          "CO",
          "CT",
          "DE",
          "DC",
          "FL",
          "GA",
          "HI",
          "ID",
          "IL",
          "IN",
          "IA",
          "KS",
          "KY",
          "LA",
          "ME",
          "MD",
          "MA",
          "MI",
          "MN",
          "MS",
          "MO",
          "MT",
          "NE",
          "NV",
          "NH",
          "NJ",
          "NM",
          "NY",
          "NC",
          "ND",
          "OH",
          "OK",
          "OR",
          "PA",
          "RI",
          "SC",
          "SD",
          "TN",
          "TX",
          "UT",
          "VT",
          "VA",
          "WA",
          "WV",
          "WI",
          "WY"
        ],
        "type": "string"
      },
      "updaterecipient__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "updatetransaction__AccountingSyncStatus": {
        "enum": [
          "pending",
          "reviewed",
          "syncing",
          "synced",
          "errored",
          "excluded"
        ],
        "type": "string"
      },
      "updatetransaction__AddressData": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__USState"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "address1",
          "city",
          "postalCode"
        ],
        "type": "object"
      },
      "updatetransaction__AddressWithoutName": {
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "nullable": true,
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__ISO3166Alpha2"
              }
            ]
          },
          "postalCode": {
            "type": "string"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__Region"
              }
            ]
          }
        },
        "required": [
          "address1",
          "city",
          "region",
          "postalCode",
          "country"
        ],
        "type": "object"
      },
      "updatetransaction__ApiUpdateTransactionRequest": {
        "description": " Request body for updating transaction metadata via the public API",
        "properties": {
          "categoryId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__CategoryUpdate"
              },
              {
                "description": " How to update the transaction's category. Omit field to keep current, send null to clear, send ID to set."
              }
            ]
          },
          "note": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__NoteUpdate"
              },
              {
                "description": " How to update the transaction's note. Omit field to keep current, send null/empty to clear, send text to set."
              }
            ]
          }
        },
        "type": "object"
      },
      "updatetransaction__CategoryData": {
        "description": " Represents an expense category for transaction classification.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__CategoryId"
              },
              {
                "description": " The ID of the category"
              }
            ]
          },
          "name": {
            "description": " The name of the category",
            "type": "string"
          },
          "visibleForCardSpend": {
            "description": " Whether this category is applicable to card transactions",
            "type": "boolean"
          },
          "visibleForOther": {
            "description": " Whether this category is applicable to all other transaction kinds",
            "type": "boolean"
          },
          "visibleForReimbursements": {
            "description": " Whether this category is applicable to expense reimbursement transactions",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "visibleForReimbursements",
          "visibleForCardSpend",
          "visibleForOther"
        ],
        "type": "object"
      },
      "updatetransaction__CategoryId": {
        "description": "ID for the category",
        "format": "uuid",
        "type": "string"
      },
      "updatetransaction__CategoryUpdate": {
        "description": "Category update action. Omit field to keep current category, send null to clear category, send an ID to set category.",
        "format": "uuid",
        "nullable": true,
        "type": "string"
      },
      "updatetransaction__CreditCardId": {
        "format": "uuid",
        "type": "string"
      },
      "updatetransaction__CreditCardInfo": {
        "properties": {
          "email": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__CreditCardId"
              },
              {
                "description": " Superseded by the flat `transaction.cardId`, which identifies the card on any card payment\n or refund without branching on debit vs credit. Retained for backwards compatibility; a formal\n (OpenAPI-level) deprecation will follow in a separate change."
              }
            ]
          },
          "paymentMethod": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "paymentMethod"
        ],
        "type": "object"
      },
      "updatetransaction__CurrencyCode": {
        "type": "string"
      },
      "updatetransaction__CurrencyExchangeInfo": {
        "properties": {
          "convertedFromAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "convertedFromCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__CurrencyCode"
              }
            ]
          },
          "convertedToAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "convertedToCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__CurrencyCode"
              }
            ]
          },
          "exchangeRate": {
            "description": " Exchange rate goes from \"from currency\" to \"to currency\"\n (ie from currency * exchange rate = to currency)",
            "multipleOf": 0.0001,
            "type": "number"
          },
          "feeAmount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "feePercentage": {
            "multipleOf": 0.0001,
            "type": "number"
          },
          "feeTransactionId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__TransactionMetadataId"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "convertedFromCurrency",
          "convertedToCurrency",
          "convertedFromAmount",
          "convertedToAmount",
          "feeAmount",
          "feePercentage",
          "exchangeRate"
        ],
        "type": "object"
      },
      "updatetransaction__DebitCardId": {
        "format": "uuid",
        "type": "string"
      },
      "updatetransaction__DebitCardInfo": {
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__DebitCardId"
              },
              {
                "description": " Superseded by the flat `transaction.cardId`, which identifies the card on any card payment\n or refund without branching on debit vs credit. Retained for backwards compatibility; a formal\n (OpenAPI-level) deprecation will follow in a separate change."
              }
            ]
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "updatetransaction__DomesticWireRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber"
        ],
        "type": "object"
      },
      "updatetransaction__ElectronicAccountType": {
        "enum": [
          "businessChecking",
          "businessSavings",
          "personalChecking",
          "personalSavings",
          "businessGeneralLedger",
          "personalGeneralLedger",
          "businessLoan",
          "personalLoan"
        ],
        "type": "string"
      },
      "updatetransaction__ElectronicRoutingInfo": {
        "properties": {
          "accountNumber": {
            "type": "string"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "electronicAccountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__ElectronicAccountType"
              }
            ]
          },
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "accountNumber",
          "routingNumber",
          "electronicAccountType"
        ],
        "type": "object"
      },
      "updatetransaction__GlAllocation": {
        "description": " A GL code allocation on a transaction — a GL code name paired with the amount\n allocated to it. When a transaction is fully categorized, the amounts across all\n allocations sum to the transaction total.",
        "properties": {
          "amount": {
            "description": " The amount allocated to this GL code",
            "multipleOf": 0.01,
            "type": "number"
          },
          "className": {
            "description": " The name of the class from the connected accounting integration, if assigned",
            "nullable": true,
            "type": "string"
          },
          "departmentName": {
            "description": " The name of the department from the connected accounting integration, if assigned",
            "nullable": true,
            "type": "string"
          },
          "description": {
            "description": " Optional user-provided description for this allocation",
            "nullable": true,
            "type": "string"
          },
          "glCodeName": {
            "description": " The name of the GL code from the connected accounting integration",
            "type": "string"
          }
        },
        "required": [
          "glCodeName",
          "amount"
        ],
        "type": "object"
      },
      "updatetransaction__ISO3166Alpha2": {
        "type": "string"
      },
      "updatetransaction__InternationalWireAustraliaSpecificData": {
        "properties": {
          "bsbCode": {
            "type": "string"
          }
        },
        "required": [
          "bsbCode"
        ],
        "type": "object"
      },
      "updatetransaction__InternationalWireBrazilSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "updatetransaction__InternationalWireCanadaSpecificData": {
        "properties": {
          "bankCode": {
            "type": "string"
          },
          "transitNumber": {
            "type": "string"
          }
        },
        "required": [
          "bankCode",
          "transitNumber"
        ],
        "type": "object"
      },
      "updatetransaction__InternationalWireChileSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "updatetransaction__InternationalWireColombiaSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "updatetransaction__InternationalWireCorrespondentInfo": {
        "properties": {
          "bankName": {
            "nullable": true,
            "type": "string"
          },
          "routingNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "updatetransaction__InternationalWireCountrySpecificData": {
        "properties": {
          "australia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWireAustraliaSpecificData"
              }
            ],
            "nullable": true
          },
          "brazil": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWireBrazilSpecificData"
              }
            ],
            "nullable": true
          },
          "canada": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWireCanadaSpecificData"
              }
            ],
            "nullable": true
          },
          "chile": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWireChileSpecificData"
              }
            ],
            "nullable": true
          },
          "colombia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWireColombiaSpecificData"
              }
            ],
            "nullable": true
          },
          "dominicanRepublic": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWireDominicanRepublicSpecificData"
              }
            ],
            "nullable": true
          },
          "honduras": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWireHondurasSpecificData"
              }
            ],
            "nullable": true
          },
          "india": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWireIndiaSpecificData"
              }
            ],
            "nullable": true
          },
          "kazakhstan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWireKazakhstanSpecificData"
              }
            ],
            "nullable": true
          },
          "pakistan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWirePakistanSpecificData"
              }
            ],
            "nullable": true
          },
          "paraguay": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWireParaguaySpecificData"
              }
            ],
            "nullable": true
          },
          "philippines": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWirePhilippinesSpecificData"
              }
            ],
            "nullable": true
          },
          "russia": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWireRussiaSpecificData"
              }
            ],
            "nullable": true
          },
          "southAfrica": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWireSouthAfricaSpecificData"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "updatetransaction__InternationalWireDominicanRepublicSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "updatetransaction__InternationalWireHondurasSpecificData": {
        "properties": {
          "accountType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__SwiftBankAccountType"
              }
            ]
          },
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "accountType",
          "legalId"
        ],
        "type": "object"
      },
      "updatetransaction__InternationalWireIndiaSpecificData": {
        "properties": {
          "ifscCode": {
            "type": "string"
          }
        },
        "required": [
          "ifscCode"
        ],
        "type": "object"
      },
      "updatetransaction__InternationalWireKazakhstanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "updatetransaction__InternationalWirePakistanSpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          },
          "legalIdType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__PakistaniLegalIdType"
              }
            ]
          }
        },
        "required": [
          "legalIdType",
          "legalId"
        ],
        "type": "object"
      },
      "updatetransaction__InternationalWireParaguaySpecificData": {
        "properties": {
          "legalId": {
            "type": "string"
          }
        },
        "required": [
          "legalId"
        ],
        "type": "object"
      },
      "updatetransaction__InternationalWirePhilippinesSpecificData": {
        "properties": {
          "routingNumber": {
            "type": "string"
          }
        },
        "required": [
          "routingNumber"
        ],
        "type": "object"
      },
      "updatetransaction__InternationalWireRoutingInfo": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__AddressWithoutName"
              }
            ],
            "nullable": true
          },
          "bankDetails": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__SwiftCodeData"
              }
            ],
            "nullable": true
          },
          "correspondentInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWireCorrespondentInfo"
              }
            ],
            "nullable": true
          },
          "countrySpecific": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWireCountrySpecificData"
              }
            ]
          },
          "emailAddress": {
            "nullable": true,
            "type": "string"
          },
          "iban": {
            "type": "string"
          },
          "phoneNumber": {
            "nullable": true,
            "type": "string"
          },
          "swiftCode": {
            "type": "string"
          }
        },
        "required": [
          "iban",
          "swiftCode",
          "countrySpecific"
        ],
        "type": "object"
      },
      "updatetransaction__InternationalWireRussiaSpecificData": {
        "properties": {
          "inn": {
            "type": "string"
          }
        },
        "required": [
          "inn"
        ],
        "type": "object"
      },
      "updatetransaction__InternationalWireSouthAfricaSpecificData": {
        "properties": {
          "branchCode": {
            "type": "string"
          }
        },
        "required": [
          "branchCode"
        ],
        "type": "object"
      },
      "updatetransaction__MerchantData": {
        "description": " Merchant information for card transactions",
        "properties": {
          "amount": {
            "description": " The transaction amount in the smallest unit of the merchant's currency\n (e.g., cents for USD/EUR, yen for JPY, fils for BHD).\n For debits this is negative, for credits positive.\n Use 'merchantCurrency' to determine the appropriate decimal scaling:\n most currencies use 2 decimal places (divide by 100), but JPY uses 0\n (no division needed) and BHD/KWD/OMR use 3 (divide by 1000).\n This is useful for international transactions where the merchant charges in a\n currency different from the account currency. Nothing if not available.",
            "format": "int64",
            "maximum": 9223372036854776000,
            "minimum": -9223372036854776000,
            "nullable": true,
            "type": "integer"
          },
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__MercuryCategory"
              },
              {
                "description": " Mercury category for the merchant (e.g., \"Restaurants\", \"Software\")"
              }
            ],
            "nullable": true
          },
          "categoryCode": {
            "description": " 4-digit merchant category code (MCC) for card transactions",
            "nullable": true,
            "type": "string"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__CurrencyCode"
              },
              {
                "description": " ISO 4217 currency code of the merchant's currency (e.g., \"EUR\", \"GBP\", \"JPY\").\n Nothing if not available."
              }
            ],
            "nullable": true
          },
          "id": {
            "description": " Merchant ID for card transactions",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "updatetransaction__MercuryCategory": {
        "enum": [
          "Other",
          "Advertising",
          "Airlines",
          "AlcoholAndBars",
          "BooksAndNewspaper",
          "CarRental",
          "Charity",
          "Clothing",
          "Conferences",
          "Education",
          "Electronics",
          "Entertainment",
          "FacilitiesExpenses",
          "Fees",
          "FoodDelivery",
          "FuelAndGas",
          "Gambling",
          "GovernmentServices",
          "Grocery",
          "GroundTransportation",
          "Insurance",
          "InternetAndTelephone",
          "Legal",
          "Lodging",
          "Medical",
          "Memberships",
          "OfficeSupplies",
          "OtherTravel",
          "Parking",
          "Political",
          "ProfessionalServices",
          "Restaurants",
          "Retail",
          "RideshareAndTaxis",
          "Shipping",
          "Software",
          "Taxes",
          "Utilities",
          "VehicleExpenses"
        ],
        "type": "string"
      },
      "updatetransaction__MercuryCreditAccountStatementPeriodId": {
        "description": "ID for the credit statement period",
        "format": "uuid",
        "type": "string"
      },
      "updatetransaction__NoteUpdate": {
        "description": "Note update action. Omit field to keep current note, send null or empty string to clear note, send text to set note.",
        "nullable": true,
        "type": "string"
      },
      "updatetransaction__PakistaniLegalIdType": {
        "enum": [
          "CNIC",
          "SNIC",
          "Passport",
          "NTN"
        ],
        "type": "string"
      },
      "updatetransaction__Region": {
        "type": "string"
      },
      "updatetransaction__RelatedTransactionData": {
        "description": " A Public API version of RelatedTransactionData.",
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__TransactionPartyId"
              }
            ]
          },
          "amount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__TransactionMetadataId"
              }
            ]
          },
          "relationKind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__TransactionRelationKind"
              }
            ]
          }
        },
        "required": [
          "id",
          "accountId",
          "relationKind",
          "amount"
        ],
        "type": "object"
      },
      "updatetransaction__SwiftBankAccountType": {
        "enum": [
          "checking",
          "savings"
        ],
        "type": "string"
      },
      "updatetransaction__SwiftCodeData": {
        "properties": {
          "bankCityState": {
            "type": "string"
          },
          "bankCountry": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__ISO3166Alpha2"
              }
            ]
          },
          "bankName": {
            "type": "string"
          }
        },
        "required": [
          "bankName",
          "bankCityState",
          "bankCountry"
        ],
        "type": "object"
      },
      "updatetransaction__Transaction": {
        "properties": {
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__TransactionPartyId"
              },
              {
                "description": " The external-facing account identifier for the Mercury account that owns this transaction"
              }
            ]
          },
          "accountingStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__TransactionAccountingStatus"
              },
              {
                "description": " Review and sync status of this transaction for the connected accounting integration (e.g.\n QuickBooks, Xero, NetSuite). A transaction with no accounting activity is pending with no\n timestamps. Null if the caller is not authorized to read accounting status, if the\n organization has no active general ledger (no active Books or third-party ERP ledger), and\n on the responses of endpoints that create transactions or transfers."
              }
            ],
            "nullable": true
          },
          "amount": {
            "multipleOf": 0.01,
            "type": "number"
          },
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/updatetransaction__TransactionAttachment"
            },
            "type": "array"
          },
          "bankDescription": {
            "nullable": true,
            "type": "string"
          },
          "cardId": {
            "description": " Id of the card behind this transaction, present on card payments and refunds (debit or\n credit); null otherwise, including for card-related fee transactions. Fetch the card's details\n (kind, cardholder, last four, etc.) via the Cards API (`GET /cards/{cardId}`). Supersedes the\n kind-specific `details.creditCardInfo.id` / `details.debitCardInfo.id`.",
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "categoryData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__CategoryData"
              }
            ],
            "nullable": true
          },
          "checkNumber": {
            "description": " Present for check deposits and mailed checks; Nothing otherwise.",
            "nullable": true,
            "type": "string"
          },
          "compliantWithReceiptPolicy": {
            "type": "boolean"
          },
          "counterpartyId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__TransactionPartyId"
              }
            ]
          },
          "counterpartyName": {
            "type": "string"
          },
          "counterpartyNickname": {
            "nullable": true,
            "type": "string"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__UTCTime"
              }
            ]
          },
          "creditAccountPeriodId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__MercuryCreditAccountStatementPeriodId"
              }
            ],
            "nullable": true
          },
          "currencyExchangeInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__CurrencyExchangeInfo"
              }
            ],
            "nullable": true
          },
          "dashboardLink": {
            "type": "string"
          },
          "details": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__TransactionMethodData"
              }
            ],
            "nullable": true
          },
          "estimatedDeliveryDate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__UTCTime"
              }
            ]
          },
          "externalMemo": {
            "nullable": true,
            "type": "string"
          },
          "failedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__UTCTime"
              }
            ],
            "nullable": true
          },
          "feeId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__TransactionMetadataId"
              }
            ],
            "nullable": true
          },
          "generalLedgerCodeName": {
            "description": " Deprecated: use transactionGlAllocations instead. This field does not reflect GL codes\n assigned via Mercury auto-categorization rules. Preserved for backwards compatibility.",
            "nullable": true,
            "type": "string"
          },
          "glAllocations": {
            "description": " GL code allocations assigned to this transaction via a connected accounting software\n integration (e.g. QuickBooks, Xero, NetSuite). Each allocation has a GL code name and\n the amount allocated to it; amounts sum to the transaction total when the transaction is\n fully categorized. Empty if no GL codes have been assigned. Distinct from Mercury custom\n categories (see transactionCategoryData).",
            "items": {
              "$ref": "#/components/schemas/updatetransaction__GlAllocation"
            },
            "type": "array"
          },
          "hasGeneratedReceipt": {
            "type": "boolean"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__TransactionMetadataId"
              }
            ]
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__TransactionKind"
              }
            ]
          },
          "merchant": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__MerchantData"
              },
              {
                "description": " Merchant information for card transactions, including the merchant category code (MCC),\n merchant ID, Mercury category, and for international transactions, the amount and currency\n in the merchant's local currency. Nothing for non-card transactions."
              }
            ],
            "nullable": true
          },
          "mercuryCategory": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__MercuryCategory"
              }
            ],
            "nullable": true
          },
          "note": {
            "nullable": true,
            "type": "string"
          },
          "postedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__UTCTime"
              }
            ],
            "nullable": true
          },
          "reasonForFailure": {
            "nullable": true,
            "type": "string"
          },
          "relatedTransactions": {
            "items": {
              "$ref": "#/components/schemas/updatetransaction__RelatedTransactionData"
            },
            "type": "array"
          },
          "requestId": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__TransactionStatus"
              }
            ]
          },
          "trackingNumber": {
            "description": " Present for transactions that have tracking numbers (e.g., RTP, ACH, wires); Nothing otherwise.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "amount",
          "createdAt",
          "estimatedDeliveryDate",
          "status",
          "counterpartyId",
          "dashboardLink",
          "counterpartyName",
          "kind",
          "compliantWithReceiptPolicy",
          "hasGeneratedReceipt",
          "glAllocations",
          "attachments",
          "relatedTransactions",
          "accountId"
        ],
        "type": "object"
      },
      "updatetransaction__TransactionAccountingStatus": {
        "description": " A transaction's accounting review and sync status, for the accounting integration connected\n to the organization (e.g. QuickBooks, Xero, NetSuite).",
        "properties": {
          "erroredAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__UTCTime"
              },
              {
                "description": " When the sync of the transaction to the accounting integration failed. Null if it has not\n failed."
              }
            ],
            "nullable": true
          },
          "excludedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__UTCTime"
              },
              {
                "description": " When the transaction was excluded from accounting sync. Null if it is not excluded."
              }
            ],
            "nullable": true
          },
          "reviewedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__UTCTime"
              },
              {
                "description": " When the transaction was last marked as reviewed. Null if it has not been reviewed."
              }
            ],
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__AccountingSyncStatus"
              },
              {
                "description": " Current review and sync status of the transaction. pending: not reviewed or synced yet,\n including transactions with no accounting activity. reviewed: marked as reviewed and ready to\n sync. syncing: a sync has started but not finished. synced: synced successfully. errored: the\n sync failed. excluded: excluded from accounting sync. When more than one applies, the first of\n excluded, errored, synced, syncing and reviewed wins."
              }
            ]
          },
          "syncStartedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__UTCTime"
              },
              {
                "description": " When a sync of the transaction to the accounting integration was started. This is the\n start of the sync, not its completion (see syncedAt). Null if no sync has been started."
              }
            ],
            "nullable": true
          },
          "syncedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__UTCTime"
              },
              {
                "description": " When the transaction finished syncing to the accounting integration successfully. Null if\n it has not finished syncing."
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "updatetransaction__TransactionAttachment": {
        "properties": {
          "attachmentType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__TransactionAttachmentType"
              }
            ]
          },
          "fileName": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "fileName",
          "url",
          "attachmentType"
        ],
        "type": "object"
      },
      "updatetransaction__TransactionAttachmentType": {
        "enum": [
          "checkImage",
          "receipt",
          "other"
        ],
        "type": "string"
      },
      "updatetransaction__TransactionKind": {
        "enum": [
          "externalTransfer",
          "internalTransfer",
          "outgoingPayment",
          "creditCardCredit",
          "creditCardTransaction",
          "debitCardCredit",
          "debitCardTransaction",
          "cardInternationalTransactionFee",
          "cardInternationalTransactionFeeRebate",
          "cardInternationalTransactionFeeReversal",
          "cardInternationalTransactionFeeRebateReversal",
          "incomingDomesticWire",
          "checkDeposit",
          "incomingInternationalWire",
          "treasuryTransfer",
          "currencyCloudReturn",
          "wireFee",
          "personalBankingSubscriptionFee",
          "billingEngineSubscriptionFee",
          "expenseReimbursement",
          "exogenousWireDrawdown",
          "interestPayment",
          "other"
        ],
        "type": "string"
      },
      "updatetransaction__TransactionMetadataId": {
        "description": "ID for this transaction",
        "format": "uuid",
        "type": "string"
      },
      "updatetransaction__TransactionMethodData": {
        "properties": {
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__AddressData"
              }
            ],
            "nullable": true
          },
          "creditCardInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__CreditCardInfo"
              }
            ],
            "nullable": true
          },
          "debitCardInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__DebitCardInfo"
              }
            ],
            "nullable": true
          },
          "domesticWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__DomesticWireRoutingInfo"
              }
            ],
            "nullable": true
          },
          "electronicRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__ElectronicRoutingInfo"
              }
            ],
            "nullable": true
          },
          "internationalWireRoutingInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatetransaction__InternationalWireRoutingInfo"
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "updatetransaction__TransactionPartyId": {
        "description": "ID for a Mercury account.",
        "format": "uuid",
        "type": "string"
      },
      "updatetransaction__TransactionRelationKind": {
        "enum": [
          "ProvisionalCreditReversalToMerchantRefund",
          "MerchantRefundToProvisionalCreditReversal",
          "MerchantRefundToFraudulentCharge",
          "FraudulentChargeToMerchantRefund",
          "PaymentRefundToFailedPayment",
          "FailedPaymentToPaymentRefund",
          "GiftCompensationToOriginalTransaction",
          "FeePaymentToOriginalTransaction",
          "OriginalTransactionToFeePayment",
          "FeePaymentToFeeRebate",
          "FeeRebateToFeePayment",
          "FeePaymentToFeeReversal",
          "FeeReversalToFeePayment",
          "FeeRebateToFeeRebateReversal",
          "FeeRebateReversalToFeeRebate",
          "TreasurySplitLiquidation",
          "ProvisionalCreditToOriginalCharge",
          "OriginalChargeToProvisionalCredit",
          "FeeAtmReimbursementToAtmTransaction",
          "AtmTransactionToFeeAtmReimbursement",
          "AtmTransactionToAtmReimbursementReversal",
          "AtmReimbursementReversalToAtmTransaction",
          "ReturnToOriginalTransaction",
          "OriginalTransactionToReturn",
          "ProvisionalCreditToReversal",
          "ReversalToProvisionalCredit",
          "MerchantRefundToOriginalCharge",
          "OriginalChargeToMerchantRefund"
        ],
        "type": "string"
      },
      "updatetransaction__TransactionStatus": {
        "enum": [
          "pending",
          "sent",
          "cancelled",
          "failed",
          "reversed",
          "blocked"
        ],
        "type": "string"
      },
      "updatetransaction__USState": {
        "enum": [
          "AL",
          "AK",
          "AZ",
          "AR",
          "CA",
          "CO",
          "CT",
          "DE",
          "DC",
          "FL",
          "GA",
          "HI",
          "ID",
          "IL",
          "IN",
          "IA",
          "KS",
          "KY",
          "LA",
          "ME",
          "MD",
          "MA",
          "MI",
          "MN",
          "MS",
          "MO",
          "MT",
          "NE",
          "NV",
          "NH",
          "NJ",
          "NM",
          "NY",
          "NC",
          "ND",
          "OH",
          "OK",
          "OR",
          "PA",
          "RI",
          "SC",
          "SD",
          "TN",
          "TX",
          "UT",
          "VT",
          "VA",
          "WA",
          "WV",
          "WI",
          "WY"
        ],
        "type": "string"
      },
      "updatetransaction__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "updatewebhook__ApiWebhookEndpointId": {
        "description": "ID for the webhook",
        "format": "uuid",
        "type": "string"
      },
      "updatewebhook__ApiWebhookResponse": {
        "description": " Webhook configuration details",
        "properties": {
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatewebhook__UTCTime"
              },
              {
                "description": " When the webhook was created"
              }
            ]
          },
          "eventTypes": {
            "description": " Optional array of event types this webhook is subscribed to. Nothing means all events.",
            "items": {
              "$ref": "#/components/schemas/updatewebhook__WebhookEventType"
            },
            "nullable": true,
            "type": "array"
          },
          "filterPaths": {
            "description": " Optional array of resource field paths to filter events by. Nothing means no filtering.",
            "items": {
              "$ref": "#/components/schemas/updatewebhook__ResourceField"
            },
            "nullable": true,
            "type": "array"
          },
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatewebhook__ApiWebhookEndpointId"
              },
              {
                "description": " Unique identifier for the webhook endpoint"
              }
            ]
          },
          "secret": {
            "description": " Webhook signing secret. Only returned on creation (POST), not on GET or UPDATE operations.",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatewebhook__ApiWebhookStatus"
              },
              {
                "description": " Current status of the webhook (active, paused, or disabled)"
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatewebhook__UTCTime"
              },
              {
                "description": " When the webhook was last updated"
              }
            ]
          },
          "url": {
            "description": " The URL that will receive webhook POST requests",
            "type": "string"
          }
        },
        "required": [
          "id",
          "url",
          "status",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "updatewebhook__ApiWebhookStatus": {
        "description": "The status of the webhook endpoint. 'active': delivering events normally. 'paused': paused by the user. 'disabled': automatically disabled by the system due to consecutive delivery failures. A disabled webhook can be reactivated by updating its status to 'active'.",
        "enum": [
          "active",
          "paused",
          "disabled"
        ],
        "type": "string"
      },
      "updatewebhook__ResourceField": {
        "enum": [
          "transaction.amount",
          "transaction.bankDescription",
          "transaction.categoryData",
          "transaction.customCategory",
          "transaction.customCategory.id",
          "transaction.customCategory.name",
          "transaction.mercuryCategory",
          "transaction.estimatedDeliveryDate",
          "transaction.externalMemo",
          "transaction.failedAt",
          "transaction.note",
          "transaction.postedAt",
          "transaction.reasonForFailure",
          "transaction.status",
          "checkingAccount.availableBalance",
          "checkingAccount.currentBalance",
          "checkingAccount.inFlightBalance",
          "savingsAccount.availableBalance",
          "savingsAccount.currentBalance",
          "savingsAccount.inFlightBalance",
          "treasuryAccount.availableBalance",
          "treasuryAccount.currentBalance",
          "treasuryAccount.inFlightBalance",
          "investmentAccount.availableBalance",
          "investmentAccount.currentBalance",
          "investmentAccount.inFlightBalance",
          "creditAccount.availableBalance",
          "creditAccount.currentBalance",
          "creditAccount.inFlightBalance"
        ],
        "type": "string"
      },
      "updatewebhook__UTCTime": {
        "example": "2016-07-22T00:00:00Z",
        "format": "yyyy-mm-ddThh:MM:ssZ",
        "type": "string"
      },
      "updatewebhook__UpdateWebhookParams": {
        "description": " Request body for updating an existing webhook endpoint.\n All fields are optional - only provided fields will be updated.",
        "properties": {
          "eventTypes": {
            "description": " Event types to subscribe to. Send null to subscribe to all event types. Send an array to subscribe to specific types. Omit to leave unchanged.",
            "items": {
              "$ref": "#/components/schemas/updatewebhook__WebhookEventType"
            },
            "nullable": true,
            "type": "array"
          },
          "filterPaths": {
            "description": " Resource field paths to filter events by. When specified, webhook events will only be sent when one of these fields changes. Send null for no filtering. Send an array to filter by specific fields. Omit to leave unchanged.",
            "items": {
              "$ref": "#/components/schemas/updatewebhook__ResourceField"
            },
            "nullable": true,
            "type": "array"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/updatewebhook__WebhookUpdateStatus"
              },
              {
                "description": " Webhook status. Only 'active' and 'paused' values are allowed. Omit to leave unchanged."
              }
            ],
            "nullable": true
          },
          "url": {
            "description": " The URL to which webhook events will be delivered. Omit to leave unchanged.",
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "updatewebhook__WebhookEventType": {
        "enum": [
          "transaction.created",
          "transaction.updated",
          "checkingAccount.balance.updated",
          "savingsAccount.balance.updated",
          "treasuryAccount.balance.updated",
          "investmentAccount.balance.updated",
          "creditAccount.balance.updated"
        ],
        "type": "string"
      },
      "updatewebhook__WebhookUpdateStatus": {
        "enum": [
          "active",
          "paused"
        ],
        "type": "string"
      },
      "verifywebhook__VerifyWebhookParams": {
        "description": " Request body for verifying a webhook endpoint",
        "properties": {
          "eventType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/verifywebhook__WebhookEventType"
              },
              {
                "description": " Optional event type to test. If not specified, defaults to transaction.created."
              }
            ],
            "nullable": true
          }
        },
        "type": "object"
      },
      "verifywebhook__WebhookEventType": {
        "enum": [
          "transaction.created",
          "transaction.updated",
          "checkingAccount.balance.updated",
          "savingsAccount.balance.updated",
          "treasuryAccount.balance.updated",
          "investmentAccount.balance.updated",
          "creditAccount.balance.updated"
        ],
        "type": "string"
      }
    },
    "securitySchemes": {
      "archivebudget__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "assigntransactiontobudget__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "cancelcard__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "cancelinvoice__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "createbudget__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "createcard__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "createcategory__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "createcustomer__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "createinternaltransfer__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "createinvoice__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "createproduct__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "createreceiptuploadurl__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "createrecipient__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "createrecipientinvite__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "createtransaction__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "createwebhook__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "deletecategory__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "deletecustomer__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "deleteproduct__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "deleterecipient__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "deleterecipientinvite__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "deletewebhook__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "editcategory__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "freezecard__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getaccountcards__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getaccounts__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getaccountstatements__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getattachment__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getautotransferrules__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getbudget__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getbudgetexpenditures__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getbudgetmembers__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getcard__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getcreditaccountstatements__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getcustomer__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getevent__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getevents__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getinvoice__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getinvoicepdf__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getorganization__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getreceipt__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getrecipient__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getrecipientinvite__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getrecipients__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getsaferequest__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getsaferequestdocument__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getsaferequests__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getsendmoneyapprovalrequest__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getstatementpdf__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "gettransaction__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "gettransactionbyid__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "gettransfermoneyapprovalrequest__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "gettreasury__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "gettreasurystatements__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "gettreasurytransactions__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getuser__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getusers__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getwebhook__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "getwebhooks__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "listaccounttransactions__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "listbudgets__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "listcards__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "listcategories__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "listcredit__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "listcustomers__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "listinvoiceattachments__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "listinvoices__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "listmerchants__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "listproducts__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "listreceipts__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "listrecipientinvites__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "listrecipientsattachments__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "listsendmoneyapprovalrequests__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "listtransactions__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "listtransfermoneyapprovalrequests__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "matchreceipt__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "obtainaccesstoken__basicAuth": {
        "description": "HTTP Basic Authentication using your client_id as the username and client_secret as the password.\n\nThis is the standard OAuth2 client authentication method.\n\nIn curl: -u \"client_id:client_secret\"\n",
        "scheme": "basic",
        "type": "http"
      },
      "requestsendmoney__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "requesttransfermoney__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "revealcardpan__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "unfreezecard__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "updatebudget__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "updatecard__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "updatecustomer__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "updateinvoice__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "updaterecipient__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "updatetransaction__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "updatewebhook__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "uploadrecipientattachment__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "uploadtransactionattachment__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "verifywebhook__bearerAuth": {
        "description": "Bearer token authentication for Mercury API.\n\nUse your API token in the Authorization header:\n`Authorization: Bearer TOKEN`\n\nExample:\n`Authorization: Bearer secret-token:mercury_production_wma_24SCp4G81X3yHL4Wq8FgzuaP9ye3VKf2mgTDctXyRg5HY_yrucrem`\n\nYour Mercury API token should include the 'secret-token:' prefix.\nTokens can be generated from your Mercury dashboard settings.\n",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "Mercury API",
    "version": "1.0.0"
  },
  "openapi": "3.0.3",
  "paths": {
    "/account/{accountId}/cards": {
      "get": {
        "description": "Retrieve all debit and credit cards associated with a specific account.",
        "operationId": "getAccountCards",
        "parameters": [
          {
            "in": "path",
            "name": "accountId",
            "required": true,
            "schema": {
              "description": "ID for a Mercury account.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getaccountcards__AccountCardsResponse"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`accountId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get cards for account",
        "tags": [
          "Accounts"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getaccountcards.md#/paths/~1account~1{accountId}~1cards/get"
      }
    },
    "/account/{accountId}/request-send-money": {
      "post": {
        "description": "Create a \"request to send money\" that will require approval based on your organization's approval policies.",
        "operationId": "requestSendMoney",
        "parameters": [
          {
            "in": "path",
            "name": "accountId",
            "required": true,
            "schema": {
              "description": "ID for a Mercury account.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__requestsendmoney__SendMoneyAPIRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/requestsendmoney__SendMoneyApprovalRequestResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          },
          "404": {
            "description": "`accountId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Request to send money",
        "tags": [
          "Accounts"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/requestsendmoney.md#/paths/~1account~1{accountId}~1request-send-money/post"
      }
    },
    "/account/{accountId}/statements": {
      "get": {
        "description": "Retrieve a paginated list of monthly statements for a depository account. For IO credit accounts, use getCreditAccountStatements. Supports cursor-based pagination with limit, order, start_after, and end_before query parameters, as well as date range filtering with start and end parameters.",
        "operationId": "getAccountStatements",
        "parameters": [
          {
            "in": "path",
            "name": "accountId",
            "required": true,
            "schema": {
              "description": "ID for a Mercury account.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "desc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'desc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the statement to start the page after (exclusive). When provided, results will begin with the statement immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the statement to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "description": "Filter statements where the period start date is on or after this date. Format: YYYY-MM-DD",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "description": "Filter statements where the period start date is on or before this date. If the date is in the future, defaults to the current date. Format: YYYY-MM-DD",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getaccountstatements__DepositoryAccountStatementsPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `end` or `start` or `end_before` or `start_after` or `order` or `limit`"
          },
          "404": {
            "description": "`accountId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get account statements",
        "tags": [
          "Accounts"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getaccountstatements.md#/paths/~1account~1{accountId}~1statements/get"
      }
    },
    "/account/{accountId}/transaction/{transactionId}": {
      "get": {
        "operationId": "getTransaction",
        "parameters": [
          {
            "in": "path",
            "name": "accountId",
            "required": true,
            "schema": {
              "description": "ID for a Mercury account.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "transactionId",
            "required": true,
            "schema": {
              "description": "ID for this transaction",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/gettransaction__Transaction"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`accountId` or `transactionId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get transaction by ID",
        "tags": [
          "Accounts"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/gettransaction.md#/paths/~1account~1{accountId}~1transaction~1{transactionId}/get"
      }
    },
    "/account/{accountId}/transactions": {
      "get": {
        "description": "Retrieve a paginated list of transactions for a specific account. Supports filtering by date range, status, and search terms.",
        "operationId": "listAccountTransactions",
        "parameters": [
          {
            "in": "path",
            "name": "accountId",
            "required": true,
            "schema": {
              "description": "ID for a Mercury account.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "description": "Earliest date to filter transactions. If not provided, defaults to 30 days before the current date. Format: YYYY-MM-DD or ISO 8601 string",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "description": "Latest date to filter transactions. If not provided, defaults to the current date. Format: YYYY-MM-DD or ISO 8601 string",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "description": "Search term to filter transactions by description, note, recipient memo, or counterparty name",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "pending",
                "sent",
                "cancelled",
                "failed",
                "reversed",
                "blocked"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "description": "Number of results to skip for pagination",
              "format": "int64",
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "desc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'desc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "requestId",
            "required": false,
            "schema": {
              "description": "ID returned from /account/:id/request-send-money",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "mercuryCategory",
            "required": false,
            "schema": {
              "description": "Name of mercuryCategory you want to filter on. Merchant Type in the UI.",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "categoryId",
            "required": false,
            "schema": {
              "description": "UUID of a custom category. Can be returned from /categories endpoint.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listaccounttransactions__TransactionsResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `categoryId` or `mercuryCategory` or `requestId` or `order` or `offset` or `status` or `search` or `end` or `start` or `limit`"
          },
          "404": {
            "description": "`accountId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List account transactions",
        "tags": [
          "Accounts"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/listaccounttransactions.md#/paths/~1account~1{accountId}~1transactions/get"
      },
      "post": {
        "description": "Send money from an account to a recipient. Creates a transaction that will be processed immediately or may require approval.",
        "operationId": "createTransaction",
        "parameters": [
          {
            "in": "path",
            "name": "accountId",
            "required": true,
            "schema": {
              "description": "ID for a Mercury account.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__createtransaction__PostTransactionAPIRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/createtransaction__Transaction"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          },
          "404": {
            "description": "`accountId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Send money to a recipient",
        "tags": [
          "Accounts"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/createtransaction.md#/paths/~1account~1{accountId}~1transactions/post"
      }
    },
    "/accounts": {
      "get": {
        "description": "Retrieve a paginated list of accounts. Supports cursor-based pagination with limit, order, start_after, and end_before query parameters.",
        "operationId": "getAccounts",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the account to start the page after (exclusive). When provided, results will begin with the account immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the account to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getaccounts__AccountsPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `end_before` or `start_after` or `order` or `limit`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get all accounts",
        "tags": [
          "Accounts"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getaccounts.md#/paths/~1accounts/get"
      }
    },
    "/ar/attachments/{attachmentId}": {
      "get": {
        "description": "Retrieve attachment details including download URL",
        "operationId": "getAttachment",
        "parameters": [
          {
            "in": "path",
            "name": "attachmentId",
            "required": true,
            "schema": {
              "description": "ID for the attachment.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getattachment__ApiV1ArAttachmentResponseData"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`attachmentId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get an attachment",
        "tags": [
          "Invoices"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/getattachment.md#/paths/~1ar~1attachments~1{attachmentId}/get"
      }
    },
    "/ar/customers": {
      "get": {
        "description": "Retrieve a paginated list of customers. Supports cursor-based pagination with limit, order, start_after, and end_before query parameters.",
        "operationId": "listCustomers",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the customer to start the page after (exclusive). When provided, results will begin with the customer immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the customer to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listcustomers__ApiV1ArCustomerPaginatedResponseData"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `order` or `end_before` or `start_after` or `limit`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List all customers",
        "tags": [
          "Customers"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/listcustomers.md#/paths/~1ar~1customers/get"
      },
      "post": {
        "description": "Create a new customer for the organization",
        "operationId": "createCustomer",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__createcustomer__ApiV1ArCustomerCreateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/createcustomer__ApiV1ArCustomerResponseData"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a customer",
        "tags": [
          "Customers"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/createcustomer.md#/paths/~1ar~1customers/post"
      }
    },
    "/ar/customers/{customerId}": {
      "delete": {
        "description": "Delete a customer. This action cannot be undone.",
        "operationId": "deleteCustomer",
        "parameters": [
          {
            "in": "path",
            "name": "customerId",
            "required": true,
            "schema": {
              "description": "The customer who will receive the invoice. Use the /api/v1/ar/customers endpoint to list your customers and find the corresponding id, or create a new customer first.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {}
            },
            "description": ""
          },
          "404": {
            "description": "`customerId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a customer",
        "tags": [
          "Customers"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/deletecustomer.md#/paths/~1ar~1customers~1{customerId}/delete"
      },
      "get": {
        "description": "Retrieve details of a specific customer by their ID",
        "operationId": "getCustomer",
        "parameters": [
          {
            "in": "path",
            "name": "customerId",
            "required": true,
            "schema": {
              "description": "The customer who will receive the invoice. Use the /api/v1/ar/customers endpoint to list your customers and find the corresponding id, or create a new customer first.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getcustomer__ApiV1ArCustomerResponseData"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`customerId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a customer",
        "tags": [
          "Customers"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/getcustomer.md#/paths/~1ar~1customers~1{customerId}/get"
      },
      "post": {
        "description": "Update an existing customer",
        "operationId": "updateCustomer",
        "parameters": [
          {
            "in": "path",
            "name": "customerId",
            "required": true,
            "schema": {
              "description": "The customer who will receive the invoice. Use the /api/v1/ar/customers endpoint to list your customers and find the corresponding id, or create a new customer first.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__updatecustomer__ApiV1ArCustomerUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/updatecustomer__ApiV1ArCustomerResponseData"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          },
          "404": {
            "description": "`customerId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a customer",
        "tags": [
          "Customers"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/updatecustomer.md#/paths/~1ar~1customers~1{customerId}/post"
      }
    },
    "/ar/invoices": {
      "get": {
        "description": "Retrieve a paginated list of invoices. Supports cursor-based pagination with limit, order, start_after, and end_before query parameters.",
        "operationId": "listInvoices",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the invoice to start the page after (exclusive). When provided, results will begin with the invoice immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the invoice to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listinvoices__ApiV1ArInvoicesPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `end_before` or `start_after` or `order` or `limit`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List all invoices",
        "tags": [
          "Invoices"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/listinvoices.md#/paths/~1ar~1invoices/get"
      },
      "post": {
        "description": "Create a new invoice for the organization",
        "operationId": "createInvoice",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__createinvoice__ApiV1ArInvoiceCreateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/createinvoice__ApiV1ArInvoiceResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create an invoice",
        "tags": [
          "Invoices"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/createinvoice.md#/paths/~1ar~1invoices/post"
      }
    },
    "/ar/invoices/{invoiceId}": {
      "get": {
        "description": "Retrieve details of an invoice by its ID",
        "operationId": "getInvoice",
        "parameters": [
          {
            "in": "path",
            "name": "invoiceId",
            "required": true,
            "schema": {
              "description": "ID for the invoice.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getinvoice__ApiV1ArInvoiceResponse"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`invoiceId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get an invoice",
        "tags": [
          "Invoices"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/getinvoice.md#/paths/~1ar~1invoices~1{invoiceId}/get"
      },
      "post": {
        "description": "Update an existing invoice",
        "operationId": "updateInvoice",
        "parameters": [
          {
            "in": "path",
            "name": "invoiceId",
            "required": true,
            "schema": {
              "description": "ID for the invoice.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__updateinvoice__ApiV1ArInvoiceUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/updateinvoice__ApiV1ArInvoiceResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          },
          "404": {
            "description": "`invoiceId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update an invoice",
        "tags": [
          "Invoices"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/updateinvoice.md#/paths/~1ar~1invoices~1{invoiceId}/post"
      }
    },
    "/ar/invoices/{invoiceId}/attachments": {
      "get": {
        "description": "Retrieve a list of all attachments for a specific invoice",
        "operationId": "listInvoiceAttachments",
        "parameters": [
          {
            "in": "path",
            "name": "invoiceId",
            "required": true,
            "schema": {
              "description": "ID for the invoice.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listinvoiceattachments__ApiV1ArAttachmentsResponseData"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`invoiceId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List invoice attachments",
        "tags": [
          "Invoices"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/listinvoiceattachments.md#/paths/~1ar~1invoices~1{invoiceId}~1attachments/get"
      }
    },
    "/ar/invoices/{invoiceId}/cancel": {
      "post": {
        "description": "Cancel an invoice. This action cannot be undone.",
        "operationId": "cancelInvoice",
        "parameters": [
          {
            "in": "path",
            "name": "invoiceId",
            "required": true,
            "schema": {
              "description": "ID for the invoice.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {}
            },
            "description": ""
          },
          "404": {
            "description": "`invoiceId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Cancel an invoice",
        "tags": [
          "Invoices"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/cancelinvoice.md#/paths/~1ar~1invoices~1{invoiceId}~1cancel/post"
      }
    },
    "/ar/invoices/{invoiceId}/pdf": {
      "get": {
        "description": "Downloads a PDF file for the specified invoice. The response includes a Content-Disposition header set to 'attachment' with the filename.",
        "operationId": "getInvoicePdf",
        "parameters": [
          {
            "in": "path",
            "name": "invoiceId",
            "required": true,
            "schema": {
              "description": "ID for the invoice.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/pdf": {
                "schema": {
                  "$ref": "#/components/schemas/getinvoicepdf__PDFDocument"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "`invoiceId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Download invoice PDF",
        "tags": [
          "Invoices"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/getinvoicepdf.md#/paths/~1ar~1invoices~1{invoiceId}~1pdf/get"
      }
    },
    "/ar/products": {
      "get": {
        "description": "Retrieve a paginated list of invoicing products (product catalog items). Supports cursor-based pagination with limit, order, start_after, and end_before query parameters.",
        "operationId": "listProducts",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the product to start the page after (exclusive). When provided, results will begin with the product immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the product to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listproducts__ApiV1ArProductPaginatedResponseData"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `order` or `end_before` or `start_after` or `limit`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List all products",
        "tags": [
          "Products"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/listproducts.md#/paths/~1ar~1products/get"
      },
      "post": {
        "description": "Create a new invoicing product (product catalog item). The combination of name and unit price must be unique within the organization.",
        "operationId": "createProduct",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__createproduct__ApiV1ArProductCreateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/createproduct__ApiV1ArProductResponseData"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a product",
        "tags": [
          "Products"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/createproduct.md#/paths/~1ar~1products/post"
      }
    },
    "/ar/products/{productId}": {
      "delete": {
        "description": "Delete an invoicing product (product catalog item). The product is unlinked from line items on open, pending, and recurring invoices.",
        "operationId": "deleteProduct",
        "parameters": [
          {
            "in": "path",
            "name": "productId",
            "required": true,
            "schema": {
              "description": "The ID of an invoicing product. Use the /api/v1/ar/products endpoint to list your products.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {}
            },
            "description": ""
          },
          "404": {
            "description": "`productId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a product",
        "tags": [
          "Products"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/deleteproduct.md#/paths/~1ar~1products~1{productId}/delete"
      }
    },
    "/auto-transfer-rules": {
      "get": {
        "description": "Retrieve a paginated list of the organization's active auto-transfer rules: rules that distribute fixed amounts or percentages of an account's balance to other accounts, and rules that keep an account at a target balance. Pass accountId to return only the rules that manage that account's balance.",
        "operationId": "getAutoTransferRules",
        "parameters": [
          {
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "description": "ID for a Mercury account.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the auto-transfer rule to start the page after (exclusive). When provided, results will begin with the auto-transfer rule immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the auto-transfer rule to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getautotransferrules__AutoTransferRulesResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `order` or `end_before` or `start_after` or `limit` or `accountId`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get all auto-transfer rules",
        "tags": [
          "Auto Transfer Rules"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getautotransferrules.md#/paths/~1auto-transfer-rules/get"
      }
    },
    "/cards": {
      "get": {
        "description": "Retrieve a paginated list of cards.",
        "operationId": "listCards",
        "parameters": [
          {
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "description": "Filter cards by one or more account IDs.",
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "description": "Filter cards by one or more statuses.",
              "items": {
                "enum": [
                  "active",
                  "frozen",
                  "cancelled",
                  "inactive",
                  "expired",
                  "suspended",
                  "singleUseConsumed"
                ],
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "description": "Filter cards by type (virtual or physical).",
              "items": {
                "enum": [
                  "virtual",
                  "physical"
                ],
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "description": "Filter cards by kind (debit or credit).",
              "items": {
                "enum": [
                  "debit",
                  "credit"
                ],
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "userId",
            "required": false,
            "schema": {
              "description": "Filter cards by the cardholder's user ID.",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "isAgentCard",
            "required": false,
            "schema": {
              "description": "Filter cards by whether they are for Agent use.",
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "isSingleUse",
            "required": false,
            "schema": {
              "description": "Filter cards by whether they are Single-use",
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 500,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 500",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the card to start the page after (exclusive). When provided, results will begin with the card immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the card to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listcards__CardListResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `end_before` or `start_after` or `order` or `limit` or `isSingleUse` or `isAgentCard` or `userId` or `kind` or `type` or `status` or `accountId`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List cards",
        "tags": [
          "Cards"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/listcards.md#/paths/~1cards/get"
      },
      "post": {
        "description": "Issue a new virtual card.",
        "operationId": "createCard",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__createcard__CreateCardRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/createcard__Card"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a card",
        "tags": [
          "Cards"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/createcard.md#/paths/~1cards/post"
      }
    },
    "/cards/{cardId}": {
      "get": {
        "description": "Retrieve details of a specific card by its ID.",
        "operationId": "getCard",
        "parameters": [
          {
            "in": "path",
            "name": "cardId",
            "required": true,
            "schema": {
              "description": "Unique identifier for a card",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getcard__Card"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`cardId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a card",
        "tags": [
          "Cards"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getcard.md#/paths/~1cards~1{cardId}/get"
      },
      "post": {
        "description": "Update a card's nickname or spending limits.",
        "operationId": "updateCard",
        "parameters": [
          {
            "in": "path",
            "name": "cardId",
            "required": true,
            "schema": {
              "description": "Unique identifier for a card",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__updatecard__UpdateCardRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/updatecard__Card"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          },
          "404": {
            "description": "`cardId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a card",
        "tags": [
          "Cards"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/updatecard.md#/paths/~1cards~1{cardId}/post"
      }
    },
    "/cards/{cardId}/cancel": {
      "post": {
        "description": "Permanently cancel a card. This action cannot be undone.",
        "operationId": "cancelCard",
        "parameters": [
          {
            "in": "path",
            "name": "cardId",
            "required": true,
            "schema": {
              "description": "Unique identifier for a card",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/cancelcard__Card"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`cardId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Cancel a card",
        "tags": [
          "Cards"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/cancelcard.md#/paths/~1cards~1{cardId}~1cancel/post"
      }
    },
    "/cards/{cardId}/freeze": {
      "post": {
        "description": "Temporarily freeze a card. The card must be active.",
        "operationId": "freezeCard",
        "parameters": [
          {
            "in": "path",
            "name": "cardId",
            "required": true,
            "schema": {
              "description": "Unique identifier for a card",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/freezecard__Card"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`cardId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Freeze a card",
        "tags": [
          "Cards"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/freezecard.md#/paths/~1cards~1{cardId}~1freeze/post"
      }
    },
    "/cards/{cardId}/reveal": {
      "get": {
        "description": "Retrieve the full card number, expiration date, and CVC for a card. Available for agentic cards only.",
        "operationId": "revealCardPan",
        "parameters": [
          {
            "in": "path",
            "name": "cardId",
            "required": true,
            "schema": {
              "description": "Unique identifier for a card",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/revealcardpan__CardRevealResponse"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`cardId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "servers": [
          {
            "description": "Mercury Vault API URL",
            "url": "https://vault-api.mercury.com/api/v1"
          }
        ],
        "summary": "Reveal card details",
        "tags": [
          "Vault"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/revealcardpan.md#/paths/~1cards~1{cardId}~1reveal/get"
      }
    },
    "/cards/{cardId}/unfreeze": {
      "post": {
        "description": "Unfreeze a previously frozen card, restoring it to active status.",
        "operationId": "unfreezeCard",
        "parameters": [
          {
            "in": "path",
            "name": "cardId",
            "required": true,
            "schema": {
              "description": "Unique identifier for a card",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/unfreezecard__Card"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`cardId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Unfreeze a card",
        "tags": [
          "Cards"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/unfreezecard.md#/paths/~1cards~1{cardId}~1unfreeze/post"
      }
    },
    "/categories": {
      "get": {
        "description": "Retrieve a paginated list of all available custom expense categories for the organization. Supports cursor-based pagination with limit, order, start_after, and end_before query parameters.",
        "operationId": "listCategories",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the category to start the page after (exclusive). When provided, results will begin with the category immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the category to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listcategories__CategoriesPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `end_before` or `start_after` or `order` or `limit`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List all categories",
        "tags": [
          "Categories"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/listcategories.md#/paths/~1categories/get"
      },
      "post": {
        "description": "Create a new custom expense category for the organization.",
        "operationId": "createCategory",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__createcategory__CreateCategoryApiRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/createcategory__CategoryData"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a new category",
        "tags": [
          "Categories"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/createcategory.md#/paths/~1categories/post"
      }
    },
    "/categories/{expenseCategoryId}": {
      "delete": {
        "description": "Delete a custom expense category for the organization.",
        "operationId": "deleteCategory",
        "parameters": [
          {
            "in": "path",
            "name": "expenseCategoryId",
            "required": true,
            "schema": {
              "description": "ID for the category",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": ""
          },
          "404": {
            "description": "`expenseCategoryId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a category",
        "tags": [
          "Categories"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/deletecategory.md#/paths/~1categories~1{expenseCategoryId}/delete"
      },
      "post": {
        "description": "Update an existing custom expense category for the organization.",
        "operationId": "editCategory",
        "parameters": [
          {
            "in": "path",
            "name": "expenseCategoryId",
            "required": true,
            "schema": {
              "description": "ID for the category",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__editcategory__EditCategoryApiRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/editcategory__CategoryData"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          },
          "404": {
            "description": "`expenseCategoryId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Edit a category",
        "tags": [
          "Categories"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/editcategory.md#/paths/~1categories~1{expenseCategoryId}/post"
      }
    },
    "/credit": {
      "get": {
        "description": "Retrieve a list of all credit accounts for the organization.",
        "operationId": "listCredit",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listcredit__CreditAccountsResponse"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List all credit accounts",
        "tags": [
          "Credit"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/listcredit.md#/paths/~1credit/get"
      }
    },
    "/credit/{accountId}/statements": {
      "get": {
        "description": "Retrieve historical IO credit statements with cursor-based pagination. Each statement includes its billing period (startDate and endDate), closing balance (endingBalance), and opening balance (details.accountDetails.startingBalance), calculated using the same strict posting-date boundaries as the PDF. Balances use signed account amounts: amounts owed are negative. Filter by statement start date with start and end. Use getAccountStatements for depository accounts.",
        "operationId": "getCreditAccountStatements",
        "parameters": [
          {
            "in": "path",
            "name": "accountId",
            "required": true,
            "schema": {
              "description": "ID for a Mercury account.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 25,
              "description": "Maximum number of results to return. Allowed range: 1 to 100. Defaults to 25",
              "format": "int64",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "desc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'desc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the statement to start the page after (exclusive). When provided, results will begin with the statement immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the statement to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "description": "Filter statements where the period start date is on or after this date. Format: YYYY-MM-DD",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "description": "Filter statements where the period start date is on or before this date. If the date is in the future, defaults to the current date. Format: YYYY-MM-DD",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getcreditaccountstatements__CreditAccountStatementsPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `end` or `start` or `end_before` or `start_after` or `order` or `limit`"
          },
          "404": {
            "description": "`accountId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get credit account statements",
        "tags": [
          "Credit"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/getcreditaccountstatements.md#/paths/~1credit~1{accountId}~1statements/get"
      }
    },
    "/events": {
      "get": {
        "operationId": "getEvents",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the event to start the page after (exclusive). When provided, results will begin with the event immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the event to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "resourceType",
            "required": false,
            "schema": {
              "enum": [
                "transaction",
                "checkingAccount",
                "savingsAccount",
                "treasuryAccount",
                "investmentAccount",
                "creditAccount"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "resourceId",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getevents__ApiEventsPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `resourceId` or `resourceType` or `order` or `end_before` or `start_after` or `limit`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get all events",
        "tags": [
          "Events"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getevents.md#/paths/~1events/get"
      }
    },
    "/events/{eventId}": {
      "get": {
        "operationId": "getEvent",
        "parameters": [
          {
            "in": "path",
            "name": "eventId",
            "required": true,
            "schema": {
              "description": "ID for the API event",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getevent__ApiEventResponse"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`eventId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get event by ID",
        "tags": [
          "Events"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getevent.md#/paths/~1events~1{eventId}/get"
      }
    },
    "/merchants": {
      "get": {
        "description": "Retrieve a paginated list of priority merchants that can be used for spend controls like merchant locking. Supports cursor-based pagination with limit, order, start_after, and end_before query parameters, plus an optional case-insensitive search by merchant name.",
        "operationId": "listMerchants",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the merchant to start the page after (exclusive). When provided, results will begin with the merchant immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the merchant to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "description": "Case-insensitive search term to filter merchants by name.",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listmerchants__MerchantsResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `search` or `end_before` or `start_after` or `order` or `limit`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List merchants",
        "tags": [
          "Merchants"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/listmerchants.md#/paths/~1merchants/get"
      }
    },
    "/oauth2/auth": {},
    "/oauth2/token": {},
    "/organization": {
      "get": {
        "description": "Retrieve information about your organization including EIN, legal business name, and DBAs.",
        "operationId": "getOrganization",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getorganization__OrganizationResponse"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get organization information",
        "tags": [
          "Organization"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getorganization.md#/paths/~1organization/get"
      }
    },
    "/recipient/{recipientId}": {
      "delete": {
        "description": "Delete a specific recipient by ID. Fails if the recipient is blocked by scheduled payments, pending approvals, or active ACH authorizations.",
        "operationId": "deleteRecipient",
        "parameters": [
          {
            "in": "path",
            "name": "recipientId",
            "required": true,
            "schema": {
              "description": "ID for a Mercury account.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": ""
          },
          "404": {
            "description": "`recipientId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a recipient",
        "tags": [
          "Recipients"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/deleterecipient.md#/paths/~1recipient~1{recipientId}/delete"
      },
      "get": {
        "description": "Retrieve details of a specific recipient by ID",
        "operationId": "getRecipient",
        "parameters": [
          {
            "in": "path",
            "name": "recipientId",
            "required": true,
            "schema": {
              "description": "ID for a Mercury account.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getrecipient__RecipientInfo"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`recipientId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get recipient by ID",
        "tags": [
          "Recipients"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getrecipient.md#/paths/~1recipient~1{recipientId}/get"
      },
      "post": {
        "description": "Update an existing recipient's information",
        "operationId": "updateRecipient",
        "parameters": [
          {
            "in": "path",
            "name": "recipientId",
            "required": true,
            "schema": {
              "description": "ID for a Mercury account.",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__updaterecipient__EditRecipientRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/updaterecipient__RecipientInfo"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          },
          "404": {
            "description": "`recipientId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Edit information about a specific recipient",
        "tags": [
          "Recipients"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/updaterecipient.md#/paths/~1recipient~1{recipientId}/post"
      }
    },
    "/recipient/{recipientId}/attachments": {
      "post": {
        "description": "Upload a tax form attachment for a recipient. The file is uploaded via multipart/form-data. Supported file types include PDF, images (PNG, JPG, GIF), and common document formats. The attachment will be associated as a tax document for the recipient.",
        "operationId": "uploadRecipientAttachment",
        "parameters": [
          {
            "description": "ID of the recipient to attach the file to",
            "in": "path",
            "name": "recipientId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "file": {
                    "description": "The file to upload (tax form document)",
                    "format": "binary",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "description": "File to upload. Use form field name 'file'.",
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successfully uploaded attachment. Returns attachmentId and downloadUrl."
          },
          "400": {
            "description": "Bad request. Either no file was uploaded or the filename exceeds the 299 character limit."
          },
          "404": {
            "description": "Recipient not found"
          },
          "413": {
            "description": "File too large. Maximum file size is 32MB."
          },
          "415": {
            "description": "Unsupported file type. Potentially dangerous file extensions (e.g., .exe, .bat) are not allowed."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Upload a recipient attachment",
        "tags": [
          "Recipients"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/uploadrecipientattachment.md#/paths/~1recipient~1{recipientId}~1attachments/post"
      }
    },
    "/recipients": {
      "get": {
        "description": "Retrieve a paginated list of all recipients. Use cursor parameters (start_after, end_before) for pagination.",
        "operationId": "getRecipients",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the recipient to start the page after (exclusive). When provided, results will begin with the recipient immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the recipient to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getrecipients__RecipientsPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `order` or `end_before` or `start_after` or `limit`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get all recipients",
        "tags": [
          "Recipients"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getrecipients.md#/paths/~1recipients/get"
      },
      "post": {
        "description": "Create a new recipient for making payments",
        "operationId": "createRecipient",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__createrecipient__AddRecipientRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/createrecipient__RecipientInfo"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Add a new recipient",
        "tags": [
          "Recipients"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/createrecipient.md#/paths/~1recipients/post"
      }
    },
    "/recipients/attachments": {
      "get": {
        "description": "Retrieve a paginated list of all recipient tax form attachments across all recipients in the organization. Use cursor parameters (start_after, end_before) for pagination.",
        "operationId": "listRecipientsAttachments",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the recipient attachment to start the page after (exclusive). When provided, results will begin with the recipient attachment immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the recipient attachment to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listrecipientsattachments__RecipientsAttachmentsPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `order` or `end_before` or `start_after` or `limit`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List all recipient attachments",
        "tags": [
          "Recipients"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/listrecipientsattachments.md#/paths/~1recipients~1attachments/get"
      }
    },
    "/recipients/invites": {
      "get": {
        "description": "Retrieve a paginated list of all recipient invites for your organization. Supports filtering by status.",
        "operationId": "listRecipientInvites",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the recipient invite to start the page after (exclusive). When provided, results will begin with the recipient invite immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the recipient invite to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "created",
                "completed",
                "expired",
                "declined"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listrecipientinvites__RecipientInviteApiPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `status` or `order` or `end_before` or `start_after` or `limit`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List recipient invites",
        "tags": [
          "Recipient Invites"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/listrecipientinvites.md#/paths/~1recipients~1invites/get"
      },
      "post": {
        "description": "Create an invite for a recipient to submit their payment details. Supply a recipientId to invite an existing recipient; omit it to invite someone new, in which case the recipient is created when the invitee completes onboarding.",
        "operationId": "createRecipientInvite",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__createrecipientinvite__CreateRecipientInviteApiRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/createrecipientinvite__RecipientInviteApiResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a recipient invite",
        "tags": [
          "Recipient Invites"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/createrecipientinvite.md#/paths/~1recipients~1invites/post"
      }
    },
    "/recipients/invites/{inviteId}": {
      "delete": {
        "description": "Delete an active recipient invite.",
        "operationId": "deleteRecipientInvite",
        "parameters": [
          {
            "in": "path",
            "name": "inviteId",
            "required": true,
            "schema": {
              "description": "ID for the invite",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": ""
          },
          "404": {
            "description": "`inviteId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a recipient invite",
        "tags": [
          "Recipient Invites"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/deleterecipientinvite.md#/paths/~1recipients~1invites~1{inviteId}/delete"
      },
      "get": {
        "description": "Retrieve details of a specific recipient invite by ID.",
        "operationId": "getRecipientInvite",
        "parameters": [
          {
            "in": "path",
            "name": "inviteId",
            "required": true,
            "schema": {
              "description": "ID for the invite",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getrecipientinvite__RecipientInviteApiResponse"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`inviteId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get recipient invite by ID",
        "tags": [
          "Recipient Invites"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getrecipientinvite.md#/paths/~1recipients~1invites~1{inviteId}/get"
      }
    },
    "/request-send-money": {
      "get": {
        "description": "Retrieve a paginated list of send money approval requests for the authenticated organization. Supports filtering by account and status.",
        "operationId": "listSendMoneyApprovalRequests",
        "parameters": [
          {
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "description": "ID for a Mercury account.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "pendingApproval",
                "approved",
                "rejected",
                "cancelled"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the send money approval request to start the page after (exclusive). When provided, results will begin with the send money approval request immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the send money approval request to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listsendmoneyapprovalrequests__SendMoneyApprovalRequestsPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `limit` or `end_before` or `start_after` or `status` or `accountId`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List send money approval requests",
        "tags": [
          "Send Money"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/listsendmoneyapprovalrequests.md#/paths/~1request-send-money/get"
      }
    },
    "/request-send-money/{requestId}": {
      "get": {
        "operationId": "getSendMoneyApprovalRequest",
        "parameters": [
          {
            "in": "path",
            "name": "requestId",
            "required": true,
            "schema": {
              "description": "ID for the send money approval request",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getsendmoneyapprovalrequest__SendMoneyApprovalRequestResponse"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`requestId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get send money approval request by ID",
        "tags": [
          "Send Money"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getsendmoneyapprovalrequest.md#/paths/~1request-send-money~1{requestId}/get"
      }
    },
    "/request-transfer": {
      "get": {
        "description": "Retrieve a paginated list of transfer approval requests for the authenticated organization. Supports filtering by source account, destination account, and status.",
        "operationId": "listTransferMoneyApprovalRequests",
        "parameters": [
          {
            "in": "query",
            "name": "sourceAccountId",
            "required": false,
            "schema": {
              "description": "ID for a Mercury account.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "destinationAccountId",
            "required": false,
            "schema": {
              "description": "ID for a Mercury account.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "pendingApproval",
                "approved",
                "rejected",
                "cancelled"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_at",
            "required": false,
            "schema": {
              "description": "The ID of the transfer approval request to start the page at (inclusive). Cannot be combined with start_after or end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the transfer approval request to start the page after (exclusive). When provided, results will begin with the transfer approval request immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the transfer approval request to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listtransfermoneyapprovalrequests__TransferMoneyApprovalRequestsPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `order` or `limit` or `end_before` or `start_after` or `start_at` or `status` or `destinationAccountId` or `sourceAccountId`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List transfer approval requests",
        "tags": [
          "Transfer Money Requests"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/listtransfermoneyapprovalrequests.md#/paths/~1request-transfer/get"
      },
      "post": {
        "description": "Create a transfer between two accounts in your organization that will require approval based on your organization's approval policies.",
        "operationId": "requestTransferMoney",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__requesttransfermoney__TransferMoneyApprovalRequestAPIRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/requesttransfermoney__TransferMoneyApprovalRequestResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Request to transfer money",
        "tags": [
          "Transfer Money Requests"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/requesttransfermoney.md#/paths/~1request-transfer/post"
      }
    },
    "/request-transfer/{requestId}": {
      "get": {
        "description": "Retrieve a specific transfer approval request by ID.",
        "operationId": "getTransferMoneyApprovalRequest",
        "parameters": [
          {
            "in": "path",
            "name": "requestId",
            "required": true,
            "schema": {
              "description": "ID for the transfer money approval request",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/gettransfermoneyapprovalrequest__TransferMoneyApprovalRequestResponse"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`requestId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get transfer approval request by ID",
        "tags": [
          "Transfer Money Requests"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/gettransfermoneyapprovalrequest.md#/paths/~1request-transfer~1{requestId}/get"
      }
    },
    "/safes": {
      "get": {
        "description": "Retrieve all SAFE (Simple Agreement for Future Equity) requests for your organization.",
        "operationId": "getSafeRequests",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/getsaferequests__APISafeRequest"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get all SAFEs",
        "tags": [
          "SAFEs"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/getsaferequests.md#/paths/~1safes/get"
      }
    },
    "/safes/{safeRequestId}": {
      "get": {
        "description": "Retrieve a specific SAFE request by its ID.",
        "operationId": "getSafeRequest",
        "parameters": [
          {
            "in": "path",
            "name": "safeRequestId",
            "required": true,
            "schema": {
              "description": "ID for the SAFE request",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getsaferequest__APISafeRequest"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`safeRequestId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get SAFE by ID",
        "tags": [
          "SAFEs"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/getsaferequest.md#/paths/~1safes~1{safeRequestId}/get"
      }
    },
    "/safes/{safeRequestId}/document": {
      "get": {
        "description": "Download the PDF document for a specific SAFE request. Returns binary PDF data with a Content-Disposition header.",
        "operationId": "getSafeRequestDocument",
        "parameters": [
          {
            "in": "path",
            "name": "safeRequestId",
            "required": true,
            "schema": {
              "description": "ID for the SAFE request",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/pdf": {
                "schema": {
                  "$ref": "#/components/schemas/getsaferequestdocument__PDFDocument"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "`safeRequestId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Download SAFE document",
        "tags": [
          "SAFEs"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/getsaferequestdocument.md#/paths/~1safes~1{safeRequestId}~1document/get"
      }
    },
    "/spend/budgets": {
      "get": {
        "description": "Retrieve the organization's non-deleted budgets ordered by creation time, ascending (oldest first) by default. Supports cursor-based pagination with limit, order, start_at, start_after, and end_before query parameters.",
        "operationId": "listBudgets",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start_at",
            "required": false,
            "schema": {
              "description": "The ID of the budget to start the page at (inclusive). Cannot be combined with start_after or end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the budget to start the page after (exclusive). When provided, results will begin with the budget immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the budget to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listbudgets__ApiV1SpendBudgetsResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `order` or `end_before` or `start_after` or `start_at` or `limit`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List budgets",
        "tags": [
          "Budgets"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/listbudgets.md#/paths/~1spend~1budgets/get"
      },
      "post": {
        "description": "Create a budget as a draft. Add members and publish it from the Mercury dashboard.",
        "operationId": "createBudget",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__createbudget__ApiV1CreateBudgetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/createbudget__ApiV1BudgetIdResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body` or `Idempotency-Key`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a budget",
        "tags": [
          "Budgets"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/createbudget.md#/paths/~1spend~1budgets/post"
      }
    },
    "/spend/budgets/{budgetId}": {
      "get": {
        "description": "Retrieve a budget by id, including its lifecycle status, per-user limit, cadence, and effective window.",
        "operationId": "getBudget",
        "parameters": [
          {
            "in": "path",
            "name": "budgetId",
            "required": true,
            "schema": {
              "description": "ID for the budget",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getbudget__ApiV1SpendBudgetResponse"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`budgetId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a budget",
        "tags": [
          "Budgets"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/getbudget.md#/paths/~1spend~1budgets~1{budgetId}/get"
      },
      "post": {
        "description": "Update a budget's fields. A draft is edited in place; a published budget gets a new version. Omitted or null fields keep their current value. Frequency cannot change after publication. Effective changes to amountPerUserPerPeriod, frequency, startDate, or endDate return 409 when the budget has an active Agentic Card link; name and description updates remain allowed.",
        "operationId": "updateBudget",
        "parameters": [
          {
            "in": "path",
            "name": "budgetId",
            "required": true,
            "schema": {
              "description": "ID for the budget",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__updatebudget__ApiV1UpdateBudgetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/updatebudget__ApiV1BudgetIdResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body` or `Idempotency-Key`"
          },
          "404": {
            "description": "`budgetId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a budget",
        "tags": [
          "Budgets"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/updatebudget.md#/paths/~1spend~1budgets~1{budgetId}/post"
      }
    },
    "/spend/budgets/{budgetId}/archive": {
      "post": {
        "description": "Archive a budget (a published budget becomes archived; a draft becomes deleted). Returns 409 when the budget has an active Agentic Card link.",
        "operationId": "archiveBudget",
        "parameters": [
          {
            "in": "path",
            "name": "budgetId",
            "required": true,
            "schema": {
              "description": "ID for the budget",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Invalid `Idempotency-Key`"
          },
          "404": {
            "description": "`budgetId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Archive a budget",
        "tags": [
          "Budgets"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/archivebudget.md#/paths/~1spend~1budgets~1{budgetId}~1archive/post"
      }
    },
    "/spend/budgets/{budgetId}/assign-transaction": {
      "post": {
        "description": "Assign a transaction to a budget so its spend counts against the cycle containing the transaction's date. If the assignment would overspend the budget, set allowOverspend to true; omitted and false values enforce the spend limit.",
        "operationId": "assignTransactionToBudget",
        "parameters": [
          {
            "in": "path",
            "name": "budgetId",
            "required": true,
            "schema": {
              "description": "ID for the budget",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__assigntransactiontobudget__ApiV1AssignTransactionRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Invalid `body` or `Idempotency-Key`"
          },
          "404": {
            "description": "`budgetId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Assign a transaction to a budget",
        "tags": [
          "Budgets"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/assigntransactiontobudget.md#/paths/~1spend~1budgets~1{budgetId}~1assign-transaction/post"
      }
    },
    "/spend/budgets/{budgetId}/expenditures": {
      "get": {
        "description": "List the non-deleted expenditures assigned to a budget, ordered by expenditure creation time, ascending (oldest first) by default. Supports cursor-based pagination with limit, order, start_at, start_after, and end_before query parameters.",
        "operationId": "getBudgetExpenditures",
        "parameters": [
          {
            "in": "path",
            "name": "budgetId",
            "required": true,
            "schema": {
              "description": "ID for the budget",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start_at",
            "required": false,
            "schema": {
              "description": "The ID of the budget expenditure to start the page at (inclusive). Cannot be combined with start_after or end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the budget expenditure to start the page after (exclusive). When provided, results will begin with the budget expenditure immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the budget expenditure to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getbudgetexpenditures__ApiV1BudgetExpendituresResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `order` or `end_before` or `start_after` or `start_at` or `limit`"
          },
          "404": {
            "description": "`budgetId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List a budget's expenditures",
        "tags": [
          "Budgets"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/getbudgetexpenditures.md#/paths/~1spend~1budgets~1{budgetId}~1expenditures/get"
      }
    },
    "/spend/budgets/{budgetId}/members": {
      "get": {
        "description": "List the members of a budget and their current or final cycle spend, ordered by the creation time of each budget member's assignment record, ascending (oldest first) by default. Supports cursor-based pagination with limit, order, start_at, start_after, and end_before query parameters.",
        "operationId": "getBudgetMembers",
        "parameters": [
          {
            "in": "path",
            "name": "budgetId",
            "required": true,
            "schema": {
              "description": "ID for the budget",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start_at",
            "required": false,
            "schema": {
              "description": "The ID of the organization user to start the page at (inclusive). Cannot be combined with start_after or end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the organization user to start the page after (exclusive). When provided, results will begin with the organization user immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the organization user to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getbudgetmembers__ApiV1BudgetMembersResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `order` or `end_before` or `start_after` or `start_at` or `limit`"
          },
          "404": {
            "description": "`budgetId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List a budget's members",
        "tags": [
          "Budgets"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/getbudgetmembers.md#/paths/~1spend~1budgets~1{budgetId}~1members/get"
      }
    },
    "/spend/receipts": {
      "get": {
        "description": "Retrieve directly uploaded receipts whose matching result is pending, ordered by creation time, ascending (oldest first) by default. Upload URL requests do not appear until matching starts. Requires see-all expense permission. Use GET /spend/receipts/{receiptId} to poll terminal outcomes. Supports cursor-based pagination with limit, order, start_at, start_after, and end_before query parameters.",
        "operationId": "listReceipts",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start_at",
            "required": false,
            "schema": {
              "description": "The ID of the receipt to start the page at (inclusive). Cannot be combined with start_after or end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the receipt to start the page after (exclusive). When provided, results will begin with the receipt immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the receipt to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listreceipts__ApiV1ReceiptsPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `order` or `end_before` or `start_after` or `start_at` or `limit`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List receipts",
        "tags": [
          "Receipts"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/listreceipts.md#/paths/~1spend~1receipts/get"
      },
      "post": {
        "description": "Request a presigned URL to upload a receipt file. The URL expires after five minutes; replay the request with the same Idempotency-Key to receive a fresh URL for the same receipt. Upload the file, then start matching via the match endpoint.",
        "operationId": "createReceiptUploadUrl",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__createreceiptuploadurl__ApiV1ReceiptUploadUrlRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/createreceiptuploadurl__ApiV1ReceiptUploadUrlResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body` or `Idempotency-Key`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Request a receipt upload URL",
        "tags": [
          "Receipts"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/createreceiptuploadurl.md#/paths/~1spend~1receipts/post"
      }
    },
    "/spend/receipts/{receiptId}": {
      "get": {
        "description": "Retrieve a directly uploaded receipt and its auto-matching status by id. Uploaders can retrieve their own receipts; reading another uploader's receipt requires see-all expense permission.",
        "operationId": "getReceipt",
        "parameters": [
          {
            "in": "path",
            "name": "receiptId",
            "required": true,
            "schema": {
              "description": "ID for the receipt",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getreceipt__ApiV1ReceiptResponse"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`receiptId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a receipt",
        "tags": [
          "Receipts"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/getreceipt.md#/paths/~1spend~1receipts~1{receiptId}/get"
      }
    },
    "/spend/receipts/{receiptId}/match": {
      "post": {
        "description": "Start matching an uploaded receipt against the organization's transactions (OCR + matcher). Only the uploader can start matching. Poll GET /spend/receipts/{receiptId} for the outcome. Returns 409 when matching has already started. Returns 409 when another request restarted matching, and 502 when processing fails; retry both with a new Idempotency-Key.",
        "operationId": "matchReceipt",
        "parameters": [
          {
            "in": "path",
            "name": "receiptId",
            "required": true,
            "schema": {
              "description": "ID for the receipt",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Invalid `Idempotency-Key`"
          },
          "404": {
            "description": "`receiptId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Match a receipt",
        "tags": [
          "Receipts"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/matchreceipt.md#/paths/~1spend~1receipts~1{receiptId}~1match/post"
      }
    },
    "/statements/{statementId}/pdf": {
      "get": {
        "description": "Downloads a PDF file for the specified account statement. The response includes a Content-Disposition header for proper file download handling. Returns binary PDF data.",
        "operationId": "getStatementPdf",
        "parameters": [
          {
            "in": "path",
            "name": "statementId",
            "required": true,
            "schema": {
              "description": "ID for the account statement",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/pdf": {
                "schema": {
                  "$ref": "#/components/schemas/getstatementpdf__PDFDocument"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "`statementId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Download account statement PDF",
        "tags": [
          "Statements"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getstatementpdf.md#/paths/~1statements~1{statementId}~1pdf/get"
      }
    },
    "/transaction/{transactionId}": {
      "get": {
        "description": "Retrieve a single transaction by its ID. Returns full transaction details including attachments, check images, and related metadata.",
        "operationId": "getTransactionById",
        "parameters": [
          {
            "in": "path",
            "name": "transactionId",
            "required": true,
            "schema": {
              "description": "ID for this transaction",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/gettransactionbyid__Transaction"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`transactionId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a transaction by ID",
        "tags": [
          "Transactions"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/gettransactionbyid.md#/paths/~1transaction~1{transactionId}/get"
      },
      "patch": {
        "description": "Update the note and/or category of an existing transaction. Use null values to clear existing data.",
        "operationId": "updateTransaction",
        "parameters": [
          {
            "in": "path",
            "name": "transactionId",
            "required": true,
            "schema": {
              "description": "ID for this transaction",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__updatetransaction__ApiUpdateTransactionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/updatetransaction__Transaction"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          },
          "404": {
            "description": "`transactionId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update transaction metadata",
        "tags": [
          "Transactions"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/updatetransaction.md#/paths/~1transaction~1{transactionId}/patch"
      }
    },
    "/transaction/{transactionId}/attachments": {
      "post": {
        "description": "Upload a file attachment to a transaction. The file is uploaded via multipart/form-data. Supported file types include PDF, images (PNG, JPG, GIF), and common document formats.",
        "operationId": "uploadTransactionAttachment",
        "parameters": [
          {
            "description": "ID of the transaction to attach the file to",
            "in": "path",
            "name": "transactionId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "attachmentType": {
                    "description": "Type of attachment: 'receipt', 'bill', or 'other'. Defaults to 'other'.",
                    "enum": [
                      "receipt",
                      "bill",
                      "other"
                    ],
                    "type": "string"
                  },
                  "file": {
                    "description": "The file to upload",
                    "format": "binary",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "description": "File to upload. Use form field name 'file'. Optionally include 'attachmentType' field with value 'receipt', 'bill', or 'other'.",
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successfully uploaded attachment. Returns attachmentId and downloadUrl."
          },
          "400": {
            "description": "Bad request. Either no file was uploaded or the filename exceeds the 299 character limit."
          },
          "404": {
            "description": "Transaction not found"
          },
          "413": {
            "description": "File too large. Maximum file size is 32MB."
          },
          "415": {
            "description": "Unsupported file type. Potentially dangerous file extensions (e.g., .exe, .bat) are not allowed."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Upload a transaction attachment",
        "tags": [
          "Transactions"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/uploadtransactionattachment.md#/paths/~1transaction~1{transactionId}~1attachments/post"
      }
    },
    "/transactions": {
      "get": {
        "description": "Retrieve a paginated list of all transactions across all accounts. Supports advanced filtering by date ranges, status, categories, and cursor-based pagination.",
        "operationId": "listTransactions",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "schema": {
              "items": {
                "enum": [
                  "pending",
                  "sent",
                  "cancelled",
                  "failed",
                  "reversed",
                  "blocked"
                ],
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "description": "Search term to look for in transaction descriptions, notes, recipient memos, and counterparty names.",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "description": "Earliest createdAt date to filter for. If not provided, it defaults to the date of your first transaction. Format: YYYY-MM-DD or an ISO 8601 string. Please note that your Mercury transactions on your Dashboard might have their postedAt date displayed, as opposed to createdAt",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "description": "Latest createdAt date to filter for. If it’s not provided, it defaults to current day. Format: YYYY-MM-DD or an ISO 8601 string. Please note that your Mercury transactions on your Dashboard might have their postedAt date displayed, as opposed to createdAt",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "postedStart",
            "required": false,
            "schema": {
              "description": "Earliest postedAt date to filter for. Format: YYYY-MM-DD or an ISO 8601 string",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "postedEnd",
            "required": false,
            "schema": {
              "description": "Latest postedAt date to filter for. Format: YYYY-MM-DD or an ISO 8601 string",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "accountId",
            "schema": {
              "items": {
                "description": "ID for a Mercury account.",
                "format": "uuid",
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "cardId",
            "schema": {
              "items": {
                "description": "UUID of a card (debit or credit). Can be provided multiple times to filter by several cards. Example: ?cardId=uuid1&cardId=uuid2",
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "mercuryCategory",
            "required": false,
            "schema": {
              "description": "Name of mercuryCategory you want to filter on. Merchant Type in the UI.",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "categoryId",
            "required": false,
            "schema": {
              "description": "UUID of a custom category. Can be returned from /categories endpoint.",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_at",
            "required": false,
            "schema": {
              "description": "The ID of the resource to start the page at (inclusive). When provided, results will begin with and include the resource with this ID. Use this to retrieve a specific page when you know the exact starting point. Cannot be combined with start_after or end_before.",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the transaction to start the page after (exclusive). When provided, results will begin with the transaction immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the transaction to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listtransactions__TransactionsPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `order` or `limit` or `end_before` or `start_after` or `start_at` or `categoryId` or `mercuryCategory` or `cardId` or `accountId` or `postedEnd` or `postedStart` or `end` or `start` or `search` or `status`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List all transactions",
        "tags": [
          "Transactions"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/listtransactions.md#/paths/~1transactions/get"
      }
    },
    "/transfer": {
      "post": {
        "description": "Transfer funds between two accounts within the same organization. Supports transfers between depository accounts (checking/savings), from a depository account to a treasury/investment account, and from a treasury/investment account to a depository account. Creates paired debit and credit transactions.",
        "operationId": "createInternalTransfer",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__createinternaltransfer__InternalTransferAPIRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/createinternaltransfer__InternalTransferAPIResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create an internal transfer",
        "tags": [
          "Accounts"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/createinternaltransfer.md#/paths/~1transfer/post"
      }
    },
    "/treasury": {
      "get": {
        "description": "Retrieve a paginated list of all treasury accounts associated with the authenticated organization. Use cursor parameters (start_after, end_before) for pagination.",
        "operationId": "getTreasury",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the account to start the page after (exclusive). When provided, results will begin with the account immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the account to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/gettreasury__TreasuryAccountsPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `order` or `end_before` or `start_after` or `limit`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get all treasury accounts",
        "tags": [
          "Treasury"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/gettreasury.md#/paths/~1treasury/get"
      }
    },
    "/treasury/{treasuryId}/statements": {
      "get": {
        "description": "Retrieve a paginated list of statements for a specific treasury account. Supports cursor-based pagination and filtering by document type.",
        "operationId": "getTreasuryStatements",
        "parameters": [
          {
            "in": "path",
            "name": "treasuryId",
            "required": true,
            "schema": {
              "description": "ID for a Mercury account.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the statement to start the page after (exclusive). When provided, results will begin with the statement immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the statement to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "documentType",
            "required": false,
            "schema": {
              "description": "Filter statements by document type.",
              "enum": [
                "MonthlyStatement",
                "TradeConfirmation",
                "1099",
                "1099R",
                "1042S",
                "5498",
                "5498ESA",
                "1099Q",
                "FMV",
                "SDIRA"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/gettreasurystatements__TreasuryStatementsPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `documentType` or `end_before` or `start_after` or `order` or `limit`"
          },
          "404": {
            "description": "`treasuryId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get treasury account statements",
        "tags": [
          "Treasury"
        ],
        "x-business-only": false,
        "x-mercury-mcp": {
          "businessOnly": false,
          "personalDescription": "Retrieve a paginated list of statements for a specific Invest account. Supports cursor-based pagination and filtering by document type.",
          "personalSummary": "Get Invest account statements",
          "personalToolName": "getInvestStatements"
        },
        "x-mercury-source-url": "https://docs.mercury.com/reference/gettreasurystatements.md#/paths/~1treasury~1{treasuryId}~1statements/get"
      }
    },
    "/treasury/{treasuryId}/transactions": {
      "get": {
        "description": "Retrieve paginated treasury transactions for a specific treasury account.",
        "operationId": "getTreasuryTransactions",
        "parameters": [
          {
            "in": "path",
            "name": "treasuryId",
            "required": true,
            "schema": {
              "description": "ID for a Mercury account.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 100,
              "description": "Maximum number of results to return. Defaults to 100",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "desc",
              "description": "Sort order for transactions. Can be 'asc' or 'desc'. Defaults to 'desc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "description": "Pagination cursor for retrieving next batch of transactions. Must be an integer >= 0",
              "minimum": 0,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/gettreasurytransactions__TreasuryTransactionsResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `cursor` or `order` or `limit`"
          },
          "404": {
            "description": "`treasuryId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get treasury transactions",
        "tags": [
          "Treasury"
        ],
        "x-business-only": true,
        "x-mercury-source-url": "https://docs.mercury.com/reference/gettreasurytransactions.md#/paths/~1treasury~1{treasuryId}~1transactions/get"
      }
    },
    "/users": {
      "get": {
        "operationId": "getUsers",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the user to start the page after (exclusive). When provided, results will begin with the user immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the user to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getusers__UsersPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `order` or `end_before` or `start_after` or `limit`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get all users",
        "tags": [
          "Users"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getusers.md#/paths/~1users/get"
      }
    },
    "/users/{userId}": {
      "get": {
        "operationId": "getUser",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "description": "ID for the user",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getuser__UserDetails"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`userId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get user by ID",
        "tags": [
          "Users"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getuser.md#/paths/~1users~1{userId}/get"
      }
    },
    "/webhooks": {
      "get": {
        "description": "Retrieve a paginated list of all webhook endpoints for your organization. Supports filtering by status.",
        "operationId": "getWebhooks",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "schema": {
              "items": {
                "enum": [
                  "active",
                  "paused",
                  "disabled",
                  "deleted"
                ],
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 1000,
              "description": "Maximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000",
              "format": "int64",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start_after",
            "required": false,
            "schema": {
              "description": "The ID of the webhook to start the page after (exclusive). When provided, results will begin with the webhook immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "end_before",
            "required": false,
            "schema": {
              "description": "The ID of the webhook to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.",
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "asc",
              "description": "Sort order. Can be 'asc' or 'desc'. Defaults to 'asc'",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getwebhooks__ApiWebhooksPaginatedResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `order` or `end_before` or `start_after` or `limit` or `status`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get webhook endpoints",
        "tags": [
          "Webhooks"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getwebhooks.md#/paths/~1webhooks/get"
      },
      "post": {
        "description": "Register a new webhook endpoint to receive event notifications",
        "operationId": "createWebhook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__createwebhook__CreateWebhookParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/createwebhook__ApiWebhookResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a new webhook endpoint",
        "tags": [
          "Webhooks"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/createwebhook.md#/paths/~1webhooks/post"
      }
    },
    "/webhooks/{webhookEndpointId}": {
      "delete": {
        "description": "Delete a webhook endpoint",
        "operationId": "deleteWebhook",
        "parameters": [
          {
            "in": "path",
            "name": "webhookEndpointId",
            "required": true,
            "schema": {
              "description": "ID for the webhook",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": ""
          },
          "404": {
            "description": "`webhookEndpointId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a webhook endpoint",
        "tags": [
          "Webhooks"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/deletewebhook.md#/paths/~1webhooks~1{webhookEndpointId}/delete"
      },
      "get": {
        "description": "Retrieve details of a specific webhook endpoint by ID",
        "operationId": "getWebhook",
        "parameters": [
          {
            "in": "path",
            "name": "webhookEndpointId",
            "required": true,
            "schema": {
              "description": "ID for the webhook",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getwebhook__ApiWebhookResponse"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "`webhookEndpointId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get webhook endpoint by ID",
        "tags": [
          "Webhooks"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/getwebhook.md#/paths/~1webhooks~1{webhookEndpointId}/get"
      },
      "post": {
        "description": "Update the configuration of an existing webhook endpoint. A webhook that has been disabled due to consecutive delivery failures can be reactivated by setting its status to 'active'.",
        "operationId": "updateWebhook",
        "parameters": [
          {
            "in": "path",
            "name": "webhookEndpointId",
            "required": true,
            "schema": {
              "description": "ID for the webhook",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__updatewebhook__UpdateWebhookParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/updatewebhook__ApiWebhookResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          },
          "404": {
            "description": "`webhookEndpointId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update an existing webhook endpoint",
        "tags": [
          "Webhooks"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/updatewebhook.md#/paths/~1webhooks~1{webhookEndpointId}/post"
      }
    },
    "/webhooks/{webhookEndpointId}/verify": {
      "post": {
        "description": "Send a test event to verify the webhook endpoint is properly configured and reachable. The request body accepts an optional 'eventType' field to specify which event type to test (e.g., 'transaction.created', 'transaction.updated'). If omitted from the request body, defaults to 'transaction.created'.",
        "operationId": "verifyWebhook",
        "parameters": [
          {
            "in": "path",
            "name": "webhookEndpointId",
            "required": true,
            "schema": {
              "description": "ID for the webhook",
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewedInput__verifywebhook__VerifyWebhookParams"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "Invalid `body`"
          },
          "404": {
            "description": "`webhookEndpointId` not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Verify a webhook endpoint",
        "tags": [
          "Webhooks"
        ],
        "x-mercury-source-url": "https://docs.mercury.com/reference/verifywebhook.md#/paths/~1webhooks~1{webhookEndpointId}~1verify/post"
      }
    }
  }
}
