---
title: "Search transactions"
method: GET
path: "/transactions"
tags: ["transaction"]
---

# Search transactions

`GET /transactions`

## Request

- Base URL: `https://api.mercoa.com`
- URL: `https://api.mercoa.com/transactions`
- Auth: HTTP bearer

Search transactions

## Query parameters

- `entityId` string
- `entityGroupId` string
- `startDate` string, date-time
- `endDate` string, date-time
- `limit` integer
- `startingAfter` string
- `search` string
- `metadata` InvoiceTypesMetadataFilter
  - `key` string, required
  - `value` union, required
    - string
    - string[]
- `lineItemMetadata` InvoiceTypesMetadataFilter
  - `key` string, required
  - `value` union, required
    - string
    - string[]
- `lineItemGlAccountId` string
- `payerId` string
- `vendorId` string
- `invoiceId` string
- `transactionId` string
- `status` 'CREATED' | 'PENDING' | 'COMPLETED' | 'FAILED' | 'REVERSED' | 'QUEUED' | 'CANCELED' | 'RETURNED'
- `transactionType` 'bankAccountToBankAccount' | 'bankAccountToMailedCheck' | 'bankAccountToPrintedCheck' | 'bankAccountToWallet' | 'cardToBankAccount' | 'cardToWallet' | 'walletToBankAccount' | 'walletToWallet' | 'custom' | 'offPlatform'
- `creatorUserId` string

## Response `200`

Response with status 200

- TransactionFindTransactionsResponse
  - `count` integer, required
  - `hasMore` boolean, required
  - `data` TransactionTransactionResponse[], required
    - union
      - object
        - `type` 'bankAccountToBankAccount', required: Discriminator value: bankAccountToBankAccount
        - `id` string, required
        - `status` 'CREATED' | 'PENDING' | 'COMPLETED' | 'FAILED' | 'REVERSED' | 'QUEUED' | 'CANCELED' | 'RETURNED', required
        - `amount` number, double, required
        - `currency` string, required
        - `payerId` string, required
        - `payer` EntityTypesCounterpartyResponse, required
          - `id` string, required
          - `name` string, required
          - `email` string, required
          - `foreignId` string: The ID used to identify this entity in your system
          - `emailTo` string: Local-part/username of the email address to which to send invoices to be added to the Invoice Inbox.
          - `emailToAlias` string[]: Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias.
          - `isCustomer` boolean, required: True if this entity has a direct relationship with your organization.
          - `accountType` 'business' | 'individual', required
          - `profile` EntityTypesProfileResponse, required
            - `business` EntityTypesBusinessProfileResponse
              - …
            - `individual` EntityTypesIndividualProfileResponse
              - …
          - `logo` string: URL for the entity logo
          - `status` 'unverified' | 'pending' | 'resubmit' | 'review' | 'verified' | 'failed', required
          - `oatfiStatus` string: The OatFi status of this entity
          - `oatfiUnderwritingResponse` object: The OatFi underwriting response of this entity
          - `acceptedTos` boolean, required: True if this entity has accepted the terms of service.
          - `isPayor` boolean, required: True if this entity can pay invoices.
          - `isPayee` boolean, required: True if this entity can receive payments.
          - `isNetworkPayor` boolean, required: True if this entity is available as a payor to any entity on your platform. Otherwise this entity will only be available as a payor to entities that have a direct relationship with this entity.
          - `isNetworkPayee` boolean, required: True if this entity is available as a payee to any entity on your platform. Otherwise this entity will only be available as a payee to entities that have a direct relationship with this entity.
          - `metadata` object: Simple key/value metadata associated with this entity. For more complex metadata, use the Metadata API.
          - `createdAt` string, date-time, required
          - `updatedAt` string, date-time, required
          - `accounts` EntityTypesCounterpartyCustomizationAccount[]: If the entity searching for counterparties has any accounts configured in the Payee/Payor relationship, they will be returned
            - `accountId` string, required: The ID the counterparty has assigned to this account.
            - `postalCode` string: The postal code the counterparty has assigned to this account.
            - `nameOnAccount` string: The name on the account the counterparty has assigned to this account.
          - `paymentMethods` PaymentMethodTypesPaymentMethodResponse[]
            - union
              - …
          - `counterpartyType` EntityTypesCounterpartyNetworkType[]
          - `invoiceMetrics` EntityTypesCounterpartyInvoiceMetricsResponse
            - `totalCount` integer, required
            - `totalAmount` number, double, required
            - `statuses` EntityTypesCounterpartyInvoiceMetricsStatusResponse[], required
              - …
        - `paymentSource` union, required
          - object
            - `type` 'bankAccount', required: Discriminator value: bankAccount
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `accountName` string, required
            - `bankName` string, required
            - `routingNumber` string, required
            - `accountNumber` string, required
            - `accountType` 'CHECKING' | 'SAVINGS' | 'UNKNOWN', required
            - `status` 'NEW' | 'VERIFIED' | 'VERIFICATION_FAILED' | 'PENDING' | 'ERRORED', required
            - `checkOptions` PaymentMethodTypesBankAccountCheckOptions
              - …
          - object
            - `type` 'card', required: Discriminator value: card
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `cardType` 'credit' | 'debit' | 'prepaid' | 'unknown', required
            - `cardBrand` 'AmericanExpress' | 'Discover' | 'Mastercard' | 'Visa', required
            - `lastFour` string, required
            - `expMonth` string, required
            - `expYear` string, required
          - object
            - `type` 'check', required: Discriminator value: check
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `payToTheOrderOf` string, required
            - `addressLine1` string, required
            - `addressLine2` string
            - `city` string, required
            - `stateOrProvince` string, required
            - `postalCode` string, required
            - `country` string, required
          - object
            - `type` 'custom', required: Discriminator value: custom
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `foreignId` string: ID for this payment method in your system
            - `accountName` string
            - `accountNumber` string
            - `availableBalance` number, double: The available balance for this payment method.
            - `schemaId` string, required
            - `schema` PaymentMethodTypesCustomPaymentMethodSchemaResponse, required
              - …
            - `data` object, required: Object of key/value pairs that matches the keys in the linked payment method schema.
          - object
            - `type` 'offPlatform', required: Discriminator value: offPlatform
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - object
            - `type` 'utility', required: Discriminator value: utility
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `utilityId` string, required: The ID of the utility that this payment method is linked to.
          - object
            - `type` 'wallet', required: Discriminator value: wallet
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `availableBalance` PaymentMethodTypesWalletBalance, required
              - …
            - `pendingBalance` PaymentMethodTypesWalletBalance, required
              - …
        - `paymentSourceId` string, required
        - `vendorId` string, required
        - `vendor` EntityTypesCounterpartyResponse, required
          - `id` string, required
          - `name` string, required
          - `email` string, required
          - `foreignId` string: The ID used to identify this entity in your system
          - `emailTo` string: Local-part/username of the email address to which to send invoices to be added to the Invoice Inbox.
          - `emailToAlias` string[]: Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias.
          - `isCustomer` boolean, required: True if this entity has a direct relationship with your organization.
          - `accountType` 'business' | 'individual', required
          - `profile` EntityTypesProfileResponse, required
            - `business` EntityTypesBusinessProfileResponse
              - …
            - `individual` EntityTypesIndividualProfileResponse
              - …
          - `logo` string: URL for the entity logo
          - `status` 'unverified' | 'pending' | 'resubmit' | 'review' | 'verified' | 'failed', required
          - `oatfiStatus` string: The OatFi status of this entity
          - `oatfiUnderwritingResponse` object: The OatFi underwriting response of this entity
          - `acceptedTos` boolean, required: True if this entity has accepted the terms of service.
          - `isPayor` boolean, required: True if this entity can pay invoices.
          - `isPayee` boolean, required: True if this entity can receive payments.
          - `isNetworkPayor` boolean, required: True if this entity is available as a payor to any entity on your platform. Otherwise this entity will only be available as a payor to entities that have a direct relationship with this entity.
          - `isNetworkPayee` boolean, required: True if this entity is available as a payee to any entity on your platform. Otherwise this entity will only be available as a payee to entities that have a direct relationship with this entity.
          - `metadata` object: Simple key/value metadata associated with this entity. For more complex metadata, use the Metadata API.
          - `createdAt` string, date-time, required
          - `updatedAt` string, date-time, required
          - `accounts` EntityTypesCounterpartyCustomizationAccount[]: If the entity searching for counterparties has any accounts configured in the Payee/Payor relationship, they will be returned
            - `accountId` string, required: The ID the counterparty has assigned to this account.
            - `postalCode` string: The postal code the counterparty has assigned to this account.
            - `nameOnAccount` string: The name on the account the counterparty has assigned to this account.
          - `paymentMethods` PaymentMethodTypesPaymentMethodResponse[]
            - union
              - …
          - `counterpartyType` EntityTypesCounterpartyNetworkType[]
          - `invoiceMetrics` EntityTypesCounterpartyInvoiceMetricsResponse
            - `totalCount` integer, required
            - `totalAmount` number, double, required
            - `statuses` EntityTypesCounterpartyInvoiceMetricsStatusResponse[], required
              - …
        - `paymentDestination` union, required
          - object
            - `type` 'bankAccount', required: Discriminator value: bankAccount
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `accountName` string, required
            - `bankName` string, required
            - `routingNumber` string, required
            - `accountNumber` string, required
            - `accountType` 'CHECKING' | 'SAVINGS' | 'UNKNOWN', required
            - `status` 'NEW' | 'VERIFIED' | 'VERIFICATION_FAILED' | 'PENDING' | 'ERRORED', required
            - `checkOptions` PaymentMethodTypesBankAccountCheckOptions
              - …
          - object
            - `type` 'card', required: Discriminator value: card
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `cardType` 'credit' | 'debit' | 'prepaid' | 'unknown', required
            - `cardBrand` 'AmericanExpress' | 'Discover' | 'Mastercard' | 'Visa', required
            - `lastFour` string, required
            - `expMonth` string, required
            - `expYear` string, required
          - object
            - `type` 'check', required: Discriminator value: check
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `payToTheOrderOf` string, required
            - `addressLine1` string, required
            - `addressLine2` string
            - `city` string, required
            - `stateOrProvince` string, required
            - `postalCode` string, required
            - `country` string, required
          - object
            - `type` 'custom', required: Discriminator value: custom
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `foreignId` string: ID for this payment method in your system
            - `accountName` string
            - `accountNumber` string
            - `availableBalance` number, double: The available balance for this payment method.
            - `schemaId` string, required
            - `schema` PaymentMethodTypesCustomPaymentMethodSchemaResponse, required
              - …
            - `data` object, required: Object of key/value pairs that matches the keys in the linked payment method schema.
          - object
            - `type` 'offPlatform', required: Discriminator value: offPlatform
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - object
            - `type` 'utility', required: Discriminator value: utility
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `utilityId` string, required: The ID of the utility that this payment method is linked to.
          - object
            - `type` 'wallet', required: Discriminator value: wallet
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `availableBalance` PaymentMethodTypesWalletBalance, required
              - …
            - `pendingBalance` PaymentMethodTypesWalletBalance, required
              - …
        - `paymentDestinationId` string, required
        - `paymentDestinationOptions` union
          - object
            - `type` 'check', required: Discriminator value: check
            - `delivery` 'PRINT' | 'MAIL' | 'MAIL_PRIORITY' | 'MAIL_UPS_NEXT_DAY'
            - `printDescription` boolean: If true, prints the invoice description (noteToSelf) on the check note. Defaults to false.
          - object
            - `type` 'bankAccount', required: Discriminator value: bankAccount
            - `delivery` 'ACH_STANDARD' | 'ACH_SAME_DAY' | 'ACH_ACCELERATED'
            - `description` string: ACH Statement Description. By default, this will be 'AP' followed by the first 8 characters of the invoice ID (for a single invoice) or the first 8 characters of the transaction ID (for a batch payment). Must be at least 4 characters and no more than 10 characters, and follow this regex pattern `^[a-zA-Z0-9\-#.$&* ]{4,10}$`
          - object
            - `type` 'utility', required: Discriminator value: utility
            - `accountId` string, required: The ID for the utility account to pay with. Links to accounts listed on payor/payee relationship.
          - object
            - `type` 'custom', required: Discriminator value: custom
            - `dynamicUrls` object: Map of field names to dynamic URL values that will be used for dynamicUrl fields in custom payment method schemas
        - `fees` InvoiceTypesInvoiceFeesResponse
          - `sourcePaymentMethodFee` number, double, required: Fee charged to the platform (C1) for processing the source payment method. For example, credit card interchange and acquiring fees.
          - `sourcePlatformMarkupFee` number, double, required: Fee charged to the payer (C2).
          - `destinationPaymentMethodFee` number, double, required: Fee charged to the platform (C1) for processing the destination payment method. For example, postage for a check payment.
          - `destinationPlatformMarkupFee` number, double, required: Fee charged to the payee (C3).
        - `createdAt` string, date-time, required
        - `updatedAt` string, date-time, required
        - `failureReason` TransactionTransactionFailureReason
          - `code` string: The failure reason code.
          - `description` string: The failure reason description.
        - `invoices` InvoiceTypesInvoiceResponse[], required: Invoices associated with this transaction
          - `status` 'UNASSIGNED' | 'DRAFT' | 'NEW' | 'APPROVED' | 'SCHEDULED' | 'PENDING' | 'PAID' | 'ARCHIVED' | 'REFUSED' | 'CANCELED' | 'FAILED', required
          - `amount` number, double: Total amount of invoice in major units
          - `currency` 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'COP' | 'COU' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'CNY' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UYW' | 'UZS' | 'VED' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL'
          - `invoiceDate` string, date-time: Date the invoice was issued.
          - `deductionDate` string, date-time: Initial date when funds are scheduled to be deducted from payer's account. The actual deduction date may differ from this date, and will be reflected in the processedAt field.
          - `nextDeductionDate` string, date-time: For invoice templates, this is the date when the next recurring payment will be scheduled.
          - `dueDate` string, date-time: Due date of invoice.
          - `invoiceNumber` string
          - `noteToSelf` string
          - `serviceStartDate` string, date-time
          - `serviceEndDate` string, date-time
          - `netTerms` integer: Net terms in days. Must be a positive number.
          - `payerId` string
          - `payer` EntityTypesCounterpartyResponse
            - `id` string, required
            - `name` string, required
            - `email` string, required
            - `foreignId` string: The ID used to identify this entity in your system
            - `emailTo` string: Local-part/username of the email address to which to send invoices to be added to the Invoice Inbox.
            - `emailToAlias` string[]: Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias.
            - `isCustomer` boolean, required: True if this entity has a direct relationship with your organization.
            - `accountType` 'business' | 'individual', required
            - `profile` EntityTypesProfileResponse, required
              - …
            - `logo` string: URL for the entity logo
            - `status` 'unverified' | 'pending' | 'resubmit' | 'review' | 'verified' | 'failed', required
            - `oatfiStatus` string: The OatFi status of this entity
            - `oatfiUnderwritingResponse` object: The OatFi underwriting response of this entity
            - `acceptedTos` boolean, required: True if this entity has accepted the terms of service.
            - `isPayor` boolean, required: True if this entity can pay invoices.
            - `isPayee` boolean, required: True if this entity can receive payments.
            - `isNetworkPayor` boolean, required: True if this entity is available as a payor to any entity on your platform. Otherwise this entity will only be available as a payor to entities that have a direct relationship with this entity.
            - `isNetworkPayee` boolean, required: True if this entity is available as a payee to any entity on your platform. Otherwise this entity will only be available as a payee to entities that have a direct relationship with this entity.
            - `metadata` object: Simple key/value metadata associated with this entity. For more complex metadata, use the Metadata API.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `accounts` EntityTypesCounterpartyCustomizationAccount[]: If the entity searching for counterparties has any accounts configured in the Payee/Payor relationship, they will be returned
              - …
            - `paymentMethods` PaymentMethodTypesPaymentMethodResponse[]
              - …
            - `counterpartyType` EntityTypesCounterpartyNetworkType[]
            - `invoiceMetrics` EntityTypesCounterpartyInvoiceMetricsResponse
              - …
          - `paymentSource` union
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
          - `paymentSourceId` string
          - `paymentSourceOptions` InvoiceTypesPaymentSourceOptions
            - `type` 'bnpl', required: Discriminator value: bnpl
            - `installmentsStartDate` string, required: The start date for installments in YYYY-MM-DD format
            - `defermentWeeks` integer, required: The number of weeks to defer repayment
            - `acceptedTerms` boolean, required: Whether the user has agreed to the BNPL terms
            - `loanId` string: The ID of the loan to use for the BNPL payment.
            - `downpaymentId` string: The ID of the downpayment to use for the BNPL payment.
          - `vendorId` string
          - `vendor` EntityTypesCounterpartyResponse
            - `id` string, required
            - `name` string, required
            - `email` string, required
            - `foreignId` string: The ID used to identify this entity in your system
            - `emailTo` string: Local-part/username of the email address to which to send invoices to be added to the Invoice Inbox.
            - `emailToAlias` string[]: Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias.
            - `isCustomer` boolean, required: True if this entity has a direct relationship with your organization.
            - `accountType` 'business' | 'individual', required
            - `profile` EntityTypesProfileResponse, required
              - …
            - `logo` string: URL for the entity logo
            - `status` 'unverified' | 'pending' | 'resubmit' | 'review' | 'verified' | 'failed', required
            - `oatfiStatus` string: The OatFi status of this entity
            - `oatfiUnderwritingResponse` object: The OatFi underwriting response of this entity
            - `acceptedTos` boolean, required: True if this entity has accepted the terms of service.
            - `isPayor` boolean, required: True if this entity can pay invoices.
            - `isPayee` boolean, required: True if this entity can receive payments.
            - `isNetworkPayor` boolean, required: True if this entity is available as a payor to any entity on your platform. Otherwise this entity will only be available as a payor to entities that have a direct relationship with this entity.
            - `isNetworkPayee` boolean, required: True if this entity is available as a payee to any entity on your platform. Otherwise this entity will only be available as a payee to entities that have a direct relationship with this entity.
            - `metadata` object: Simple key/value metadata associated with this entity. For more complex metadata, use the Metadata API.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `accounts` EntityTypesCounterpartyCustomizationAccount[]: If the entity searching for counterparties has any accounts configured in the Payee/Payor relationship, they will be returned
              - …
            - `paymentMethods` PaymentMethodTypesPaymentMethodResponse[]
              - …
            - `counterpartyType` EntityTypesCounterpartyNetworkType[]
            - `invoiceMetrics` EntityTypesCounterpartyInvoiceMetricsResponse
              - …
          - `paymentDestination` union
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
          - `paymentDestinationId` string
          - `paymentDestinationOptions` union
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
          - `paymentTiming` CalculateCalculatePaymentTimingResponse
            - `estimatedProcessingDate` string, date-time, required: Estimated date the payment will be or was processed.
            - `businessDays` integer, required: Number of business days between the estimated processing date and the estimated settlement date. This does not take into account bank holidays or weekends.
            - `estimatedProcessingTime` integer, required: Estimated payment time in days. This time takes into account bank holidays and weekends.
            - `estimatedSettlementDate` string, date-time, required: Estimated date the payment will be or was settled. This is the same as the request's deductionDate plus the paymentTiming.
          - `paymentDestinationConfirmed` boolean, required: True if the payment destination has been confirmed by the vendor. False if the payment destination has been set (for example, a check to an address) but has not been confirmed by the vendor.
          - `batchPayment` boolean: If true, this invoice will be paid as a batch payment. Batches are automatically determined by Mercoa based on the payment source, destination, and scheduled payment date.
          - `hasDocuments` boolean, required: True if the invoice has documents attached.
          - `hasSourceEmail` boolean, required: True if the invoice was created by an incoming email.
          - `lineItems` InvoiceTypesInvoiceLineItemResponse[]
            - `id` string, required
            - `amount` number, double: Total amount of line item in major units.
            - `currency` 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'COP' | 'COU' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'CNY' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UYW' | 'UZS' | 'VED' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL', required
            - `description` string
            - `name` string
            - `quantity` number, double
            - `unitPrice` number, double: Unit price of line item in major units.
            - `category` string, required: Category of the line item. Defaults to 'EXPENSE'.
            - `serviceStartDate` string, date-time
            - `serviceEndDate` string, date-time
            - `metadata` object
            - `glAccountId` string: ID of general ledger account associated with this line item.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `taxAmount` number, double: Tax amount for this invoice.
          - `shippingAmount` number, double: Shipping amount for this invoice.
          - `approvers` InvoiceTypesApprovalSlot[], required
            - `upstreamPolicyId` string
            - `upstreamPoliciesApproved` boolean: Whether all upstream policies are approved.
            - `approvalPolicyId` string, required
            - `approvalSlotId` string, required
            - `assignedUserId` string
            - `action` 'NONE' | 'APPROVE' | 'REJECT', required
            - `eligibleRoles` string[], required
            - `eligibleUserIds` EntityTypesEntityUserId[], required
            - `date` string, date-time, required: Either the date the invoice was created, date the approver was assigned, or date of last action by approver, whichever is latest.
          - `approvalPolicy` EntityTypesApprovalPolicyResponse[], required
            - `id` string, required
            - `trigger` EntityTypesTrigger[], required
              - …
            - `rule` union, required
              - …
            - `upstreamPolicyId` string, required
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `metadata` object, required: Metadata associated with this invoice.
          - `creatorEntityId` string
          - `entityGroupId` string
          - `entityGroupForeignId` string: The foreign ID of the entity group that created this invoice.
          - `creatorUser` EntityTypesEntityUserResponse
            - `id` string, required
            - `foreignId` string: The ID used to identify this user in your system.
            - `email` string
            - `name` string
            - `roles` string[], required
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `createdAt` string, date-time, required
          - `updatedAt` string, date-time, required
          - `comments` InvoiceTypesCommentResponse[]
            - `id` string, required
            - `text` string, required
            - `user` EntityTypesEntityUserResponse
              - …
            - `associatedApprovalAction` InvoiceTypesAssociatedApprovalAction
              - …
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `fees` InvoiceTypesInvoiceFeesResponse
            - `sourcePaymentMethodFee` number, double, required: Fee charged to the platform (C1) for processing the source payment method. For example, credit card interchange and acquiring fees.
            - `sourcePlatformMarkupFee` number, double, required: Fee charged to the payer (C2).
            - `destinationPaymentMethodFee` number, double, required: Fee charged to the platform (C1) for processing the destination payment method. For example, postage for a check payment.
            - `destinationPlatformMarkupFee` number, double, required: Fee charged to the payee (C3).
          - `paymentSchedule` union
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
          - `ocrJobId` string
          - `recurringTemplateId` string
          - `id` string, required
          - `processedAt` string, date-time: Date when the invoice payment was processed.
          - `settlementDate` string, date-time: Date of funds settlement.
          - `foreignId` string: The ID used to identify this invoice in your system. This ID must be unique within each creatorEntity in your system, e.g. two invoices with the same creatorEntity may not have the same foreign ID.
          - `failureType` 'SOURCE_PAYMENT_ERROR' | 'DESTINATION_PAYMENT_ERROR' | 'REJECTED_HIGH_RISK' | 'INSUFFICIENT_FUNDS' | 'PROCESSING_ERROR'
          - `transactions` TransactionTransactionResponseWithoutInvoices[]: Transactions associated with this invoice.
            - union
              - …
          - `vendorCreditIds` VendorCreditTypesVendorCreditId[]: The IDs of the vendor credits that are currently applied to this invoice.
      - object
        - `type` 'bankAccountToMailedCheck', required: Discriminator value: bankAccountToMailedCheck
        - `id` string, required
        - `status` 'CREATED' | 'PENDING' | 'COMPLETED' | 'FAILED' | 'REVERSED' | 'QUEUED' | 'CANCELED' | 'RETURNED', required
        - `amount` number, double, required
        - `currency` string, required
        - `payerId` string, required
        - `payer` EntityTypesCounterpartyResponse, required
          - `id` string, required
          - `name` string, required
          - `email` string, required
          - `foreignId` string: The ID used to identify this entity in your system
          - `emailTo` string: Local-part/username of the email address to which to send invoices to be added to the Invoice Inbox.
          - `emailToAlias` string[]: Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias.
          - `isCustomer` boolean, required: True if this entity has a direct relationship with your organization.
          - `accountType` 'business' | 'individual', required
          - `profile` EntityTypesProfileResponse, required
            - `business` EntityTypesBusinessProfileResponse
              - …
            - `individual` EntityTypesIndividualProfileResponse
              - …
          - `logo` string: URL for the entity logo
          - `status` 'unverified' | 'pending' | 'resubmit' | 'review' | 'verified' | 'failed', required
          - `oatfiStatus` string: The OatFi status of this entity
          - `oatfiUnderwritingResponse` object: The OatFi underwriting response of this entity
          - `acceptedTos` boolean, required: True if this entity has accepted the terms of service.
          - `isPayor` boolean, required: True if this entity can pay invoices.
          - `isPayee` boolean, required: True if this entity can receive payments.
          - `isNetworkPayor` boolean, required: True if this entity is available as a payor to any entity on your platform. Otherwise this entity will only be available as a payor to entities that have a direct relationship with this entity.
          - `isNetworkPayee` boolean, required: True if this entity is available as a payee to any entity on your platform. Otherwise this entity will only be available as a payee to entities that have a direct relationship with this entity.
          - `metadata` object: Simple key/value metadata associated with this entity. For more complex metadata, use the Metadata API.
          - `createdAt` string, date-time, required
          - `updatedAt` string, date-time, required
          - `accounts` EntityTypesCounterpartyCustomizationAccount[]: If the entity searching for counterparties has any accounts configured in the Payee/Payor relationship, they will be returned
            - `accountId` string, required: The ID the counterparty has assigned to this account.
            - `postalCode` string: The postal code the counterparty has assigned to this account.
            - `nameOnAccount` string: The name on the account the counterparty has assigned to this account.
          - `paymentMethods` PaymentMethodTypesPaymentMethodResponse[]
            - union
              - …
          - `counterpartyType` EntityTypesCounterpartyNetworkType[]
          - `invoiceMetrics` EntityTypesCounterpartyInvoiceMetricsResponse
            - `totalCount` integer, required
            - `totalAmount` number, double, required
            - `statuses` EntityTypesCounterpartyInvoiceMetricsStatusResponse[], required
              - …
        - `paymentSource` union, required
          - object
            - `type` 'bankAccount', required: Discriminator value: bankAccount
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `accountName` string, required
            - `bankName` string, required
            - `routingNumber` string, required
            - `accountNumber` string, required
            - `accountType` 'CHECKING' | 'SAVINGS' | 'UNKNOWN', required
            - `status` 'NEW' | 'VERIFIED' | 'VERIFICATION_FAILED' | 'PENDING' | 'ERRORED', required
            - `checkOptions` PaymentMethodTypesBankAccountCheckOptions
              - …
          - object
            - `type` 'card', required: Discriminator value: card
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `cardType` 'credit' | 'debit' | 'prepaid' | 'unknown', required
            - `cardBrand` 'AmericanExpress' | 'Discover' | 'Mastercard' | 'Visa', required
            - `lastFour` string, required
            - `expMonth` string, required
            - `expYear` string, required
          - object
            - `type` 'check', required: Discriminator value: check
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `payToTheOrderOf` string, required
            - `addressLine1` string, required
            - `addressLine2` string
            - `city` string, required
            - `stateOrProvince` string, required
            - `postalCode` string, required
            - `country` string, required
          - object
            - `type` 'custom', required: Discriminator value: custom
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `foreignId` string: ID for this payment method in your system
            - `accountName` string
            - `accountNumber` string
            - `availableBalance` number, double: The available balance for this payment method.
            - `schemaId` string, required
            - `schema` PaymentMethodTypesCustomPaymentMethodSchemaResponse, required
              - …
            - `data` object, required: Object of key/value pairs that matches the keys in the linked payment method schema.
          - object
            - `type` 'offPlatform', required: Discriminator value: offPlatform
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - object
            - `type` 'utility', required: Discriminator value: utility
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `utilityId` string, required: The ID of the utility that this payment method is linked to.
          - object
            - `type` 'wallet', required: Discriminator value: wallet
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `availableBalance` PaymentMethodTypesWalletBalance, required
              - …
            - `pendingBalance` PaymentMethodTypesWalletBalance, required
              - …
        - `paymentSourceId` string, required
        - `vendorId` string, required
        - `vendor` EntityTypesCounterpartyResponse, required
          - `id` string, required
          - `name` string, required
          - `email` string, required
          - `foreignId` string: The ID used to identify this entity in your system
          - `emailTo` string: Local-part/username of the email address to which to send invoices to be added to the Invoice Inbox.
          - `emailToAlias` string[]: Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias.
          - `isCustomer` boolean, required: True if this entity has a direct relationship with your organization.
          - `accountType` 'business' | 'individual', required
          - `profile` EntityTypesProfileResponse, required
            - `business` EntityTypesBusinessProfileResponse
              - …
            - `individual` EntityTypesIndividualProfileResponse
              - …
          - `logo` string: URL for the entity logo
          - `status` 'unverified' | 'pending' | 'resubmit' | 'review' | 'verified' | 'failed', required
          - `oatfiStatus` string: The OatFi status of this entity
          - `oatfiUnderwritingResponse` object: The OatFi underwriting response of this entity
          - `acceptedTos` boolean, required: True if this entity has accepted the terms of service.
          - `isPayor` boolean, required: True if this entity can pay invoices.
          - `isPayee` boolean, required: True if this entity can receive payments.
          - `isNetworkPayor` boolean, required: True if this entity is available as a payor to any entity on your platform. Otherwise this entity will only be available as a payor to entities that have a direct relationship with this entity.
          - `isNetworkPayee` boolean, required: True if this entity is available as a payee to any entity on your platform. Otherwise this entity will only be available as a payee to entities that have a direct relationship with this entity.
          - `metadata` object: Simple key/value metadata associated with this entity. For more complex metadata, use the Metadata API.
          - `createdAt` string, date-time, required
          - `updatedAt` string, date-time, required
          - `accounts` EntityTypesCounterpartyCustomizationAccount[]: If the entity searching for counterparties has any accounts configured in the Payee/Payor relationship, they will be returned
            - `accountId` string, required: The ID the counterparty has assigned to this account.
            - `postalCode` string: The postal code the counterparty has assigned to this account.
            - `nameOnAccount` string: The name on the account the counterparty has assigned to this account.
          - `paymentMethods` PaymentMethodTypesPaymentMethodResponse[]
            - union
              - …
          - `counterpartyType` EntityTypesCounterpartyNetworkType[]
          - `invoiceMetrics` EntityTypesCounterpartyInvoiceMetricsResponse
            - `totalCount` integer, required
            - `totalAmount` number, double, required
            - `statuses` EntityTypesCounterpartyInvoiceMetricsStatusResponse[], required
              - …
        - `paymentDestination` union, required
          - object
            - `type` 'bankAccount', required: Discriminator value: bankAccount
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `accountName` string, required
            - `bankName` string, required
            - `routingNumber` string, required
            - `accountNumber` string, required
            - `accountType` 'CHECKING' | 'SAVINGS' | 'UNKNOWN', required
            - `status` 'NEW' | 'VERIFIED' | 'VERIFICATION_FAILED' | 'PENDING' | 'ERRORED', required
            - `checkOptions` PaymentMethodTypesBankAccountCheckOptions
              - …
          - object
            - `type` 'card', required: Discriminator value: card
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `cardType` 'credit' | 'debit' | 'prepaid' | 'unknown', required
            - `cardBrand` 'AmericanExpress' | 'Discover' | 'Mastercard' | 'Visa', required
            - `lastFour` string, required
            - `expMonth` string, required
            - `expYear` string, required
          - object
            - `type` 'check', required: Discriminator value: check
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `payToTheOrderOf` string, required
            - `addressLine1` string, required
            - `addressLine2` string
            - `city` string, required
            - `stateOrProvince` string, required
            - `postalCode` string, required
            - `country` string, required
          - object
            - `type` 'custom', required: Discriminator value: custom
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `foreignId` string: ID for this payment method in your system
            - `accountName` string
            - `accountNumber` string
            - `availableBalance` number, double: The available balance for this payment method.
            - `schemaId` string, required
            - `schema` PaymentMethodTypesCustomPaymentMethodSchemaResponse, required
              - …
            - `data` object, required: Object of key/value pairs that matches the keys in the linked payment method schema.
          - object
            - `type` 'offPlatform', required: Discriminator value: offPlatform
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - object
            - `type` 'utility', required: Discriminator value: utility
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `utilityId` string, required: The ID of the utility that this payment method is linked to.
          - object
            - `type` 'wallet', required: Discriminator value: wallet
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `availableBalance` PaymentMethodTypesWalletBalance, required
              - …
            - `pendingBalance` PaymentMethodTypesWalletBalance, required
              - …
        - `paymentDestinationId` string, required
        - `paymentDestinationOptions` union
          - object
            - `type` 'check', required: Discriminator value: check
            - `delivery` 'PRINT' | 'MAIL' | 'MAIL_PRIORITY' | 'MAIL_UPS_NEXT_DAY'
            - `printDescription` boolean: If true, prints the invoice description (noteToSelf) on the check note. Defaults to false.
          - object
            - `type` 'bankAccount', required: Discriminator value: bankAccount
            - `delivery` 'ACH_STANDARD' | 'ACH_SAME_DAY' | 'ACH_ACCELERATED'
            - `description` string: ACH Statement Description. By default, this will be 'AP' followed by the first 8 characters of the invoice ID (for a single invoice) or the first 8 characters of the transaction ID (for a batch payment). Must be at least 4 characters and no more than 10 characters, and follow this regex pattern `^[a-zA-Z0-9\-#.$&* ]{4,10}$`
          - object
            - `type` 'utility', required: Discriminator value: utility
            - `accountId` string, required: The ID for the utility account to pay with. Links to accounts listed on payor/payee relationship.
          - object
            - `type` 'custom', required: Discriminator value: custom
            - `dynamicUrls` object: Map of field names to dynamic URL values that will be used for dynamicUrl fields in custom payment method schemas
        - `fees` InvoiceTypesInvoiceFeesResponse
          - `sourcePaymentMethodFee` number, double, required: Fee charged to the platform (C1) for processing the source payment method. For example, credit card interchange and acquiring fees.
          - `sourcePlatformMarkupFee` number, double, required: Fee charged to the payer (C2).
          - `destinationPaymentMethodFee` number, double, required: Fee charged to the platform (C1) for processing the destination payment method. For example, postage for a check payment.
          - `destinationPlatformMarkupFee` number, double, required: Fee charged to the payee (C3).
        - `createdAt` string, date-time, required
        - `updatedAt` string, date-time, required
        - `checkNumber` integer, required: The number of the check
        - `mailedOnDate` string, date-time: The date the check was mailed. If the check was not mailed, this field will be null.
        - `invoices` InvoiceTypesInvoiceResponse[], required: Invoices associated with this transaction
          - `status` 'UNASSIGNED' | 'DRAFT' | 'NEW' | 'APPROVED' | 'SCHEDULED' | 'PENDING' | 'PAID' | 'ARCHIVED' | 'REFUSED' | 'CANCELED' | 'FAILED', required
          - `amount` number, double: Total amount of invoice in major units
          - `currency` 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'COP' | 'COU' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'CNY' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UYW' | 'UZS' | 'VED' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL'
          - `invoiceDate` string, date-time: Date the invoice was issued.
          - `deductionDate` string, date-time: Initial date when funds are scheduled to be deducted from payer's account. The actual deduction date may differ from this date, and will be reflected in the processedAt field.
          - `nextDeductionDate` string, date-time: For invoice templates, this is the date when the next recurring payment will be scheduled.
          - `dueDate` string, date-time: Due date of invoice.
          - `invoiceNumber` string
          - `noteToSelf` string
          - `serviceStartDate` string, date-time
          - `serviceEndDate` string, date-time
          - `netTerms` integer: Net terms in days. Must be a positive number.
          - `payerId` string
          - `payer` EntityTypesCounterpartyResponse
            - `id` string, required
            - `name` string, required
            - `email` string, required
            - `foreignId` string: The ID used to identify this entity in your system
            - `emailTo` string: Local-part/username of the email address to which to send invoices to be added to the Invoice Inbox.
            - `emailToAlias` string[]: Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias.
            - `isCustomer` boolean, required: True if this entity has a direct relationship with your organization.
            - `accountType` 'business' | 'individual', required
            - `profile` EntityTypesProfileResponse, required
              - …
            - `logo` string: URL for the entity logo
            - `status` 'unverified' | 'pending' | 'resubmit' | 'review' | 'verified' | 'failed', required
            - `oatfiStatus` string: The OatFi status of this entity
            - `oatfiUnderwritingResponse` object: The OatFi underwriting response of this entity
            - `acceptedTos` boolean, required: True if this entity has accepted the terms of service.
            - `isPayor` boolean, required: True if this entity can pay invoices.
            - `isPayee` boolean, required: True if this entity can receive payments.
            - `isNetworkPayor` boolean, required: True if this entity is available as a payor to any entity on your platform. Otherwise this entity will only be available as a payor to entities that have a direct relationship with this entity.
            - `isNetworkPayee` boolean, required: True if this entity is available as a payee to any entity on your platform. Otherwise this entity will only be available as a payee to entities that have a direct relationship with this entity.
            - `metadata` object: Simple key/value metadata associated with this entity. For more complex metadata, use the Metadata API.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `accounts` EntityTypesCounterpartyCustomizationAccount[]: If the entity searching for counterparties has any accounts configured in the Payee/Payor relationship, they will be returned
              - …
            - `paymentMethods` PaymentMethodTypesPaymentMethodResponse[]
              - …
            - `counterpartyType` EntityTypesCounterpartyNetworkType[]
            - `invoiceMetrics` EntityTypesCounterpartyInvoiceMetricsResponse
              - …
          - `paymentSource` union
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
          - `paymentSourceId` string
          - `paymentSourceOptions` InvoiceTypesPaymentSourceOptions
            - `type` 'bnpl', required: Discriminator value: bnpl
            - `installmentsStartDate` string, required: The start date for installments in YYYY-MM-DD format
            - `defermentWeeks` integer, required: The number of weeks to defer repayment
            - `acceptedTerms` boolean, required: Whether the user has agreed to the BNPL terms
            - `loanId` string: The ID of the loan to use for the BNPL payment.
            - `downpaymentId` string: The ID of the downpayment to use for the BNPL payment.
          - `vendorId` string
          - `vendor` EntityTypesCounterpartyResponse
            - `id` string, required
            - `name` string, required
            - `email` string, required
            - `foreignId` string: The ID used to identify this entity in your system
            - `emailTo` string: Local-part/username of the email address to which to send invoices to be added to the Invoice Inbox.
            - `emailToAlias` string[]: Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias.
            - `isCustomer` boolean, required: True if this entity has a direct relationship with your organization.
            - `accountType` 'business' | 'individual', required
            - `profile` EntityTypesProfileResponse, required
              - …
            - `logo` string: URL for the entity logo
            - `status` 'unverified' | 'pending' | 'resubmit' | 'review' | 'verified' | 'failed', required
            - `oatfiStatus` string: The OatFi status of this entity
            - `oatfiUnderwritingResponse` object: The OatFi underwriting response of this entity
            - `acceptedTos` boolean, required: True if this entity has accepted the terms of service.
            - `isPayor` boolean, required: True if this entity can pay invoices.
            - `isPayee` boolean, required: True if this entity can receive payments.
            - `isNetworkPayor` boolean, required: True if this entity is available as a payor to any entity on your platform. Otherwise this entity will only be available as a payor to entities that have a direct relationship with this entity.
            - `isNetworkPayee` boolean, required: True if this entity is available as a payee to any entity on your platform. Otherwise this entity will only be available as a payee to entities that have a direct relationship with this entity.
            - `metadata` object: Simple key/value metadata associated with this entity. For more complex metadata, use the Metadata API.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `accounts` EntityTypesCounterpartyCustomizationAccount[]: If the entity searching for counterparties has any accounts configured in the Payee/Payor relationship, they will be returned
              - …
            - `paymentMethods` PaymentMethodTypesPaymentMethodResponse[]
              - …
            - `counterpartyType` EntityTypesCounterpartyNetworkType[]
            - `invoiceMetrics` EntityTypesCounterpartyInvoiceMetricsResponse
              - …
          - `paymentDestination` union
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
          - `paymentDestinationId` string
          - `paymentDestinationOptions` union
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
          - `paymentTiming` CalculateCalculatePaymentTimingResponse
            - `estimatedProcessingDate` string, date-time, required: Estimated date the payment will be or was processed.
            - `businessDays` integer, required: Number of business days between the estimated processing date and the estimated settlement date. This does not take into account bank holidays or weekends.
            - `estimatedProcessingTime` integer, required: Estimated payment time in days. This time takes into account bank holidays and weekends.
            - `estimatedSettlementDate` string, date-time, required: Estimated date the payment will be or was settled. This is the same as the request's deductionDate plus the paymentTiming.
          - `paymentDestinationConfirmed` boolean, required: True if the payment destination has been confirmed by the vendor. False if the payment destination has been set (for example, a check to an address) but has not been confirmed by the vendor.
          - `batchPayment` boolean: If true, this invoice will be paid as a batch payment. Batches are automatically determined by Mercoa based on the payment source, destination, and scheduled payment date.
          - `hasDocuments` boolean, required: True if the invoice has documents attached.
          - `hasSourceEmail` boolean, required: True if the invoice was created by an incoming email.
          - `lineItems` InvoiceTypesInvoiceLineItemResponse[]
            - `id` string, required
            - `amount` number, double: Total amount of line item in major units.
            - `currency` 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'COP' | 'COU' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'CNY' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UYW' | 'UZS' | 'VED' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL', required
            - `description` string
            - `name` string
            - `quantity` number, double
            - `unitPrice` number, double: Unit price of line item in major units.
            - `category` string, required: Category of the line item. Defaults to 'EXPENSE'.
            - `serviceStartDate` string, date-time
            - `serviceEndDate` string, date-time
            - `metadata` object
            - `glAccountId` string: ID of general ledger account associated with this line item.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `taxAmount` number, double: Tax amount for this invoice.
          - `shippingAmount` number, double: Shipping amount for this invoice.
          - `approvers` InvoiceTypesApprovalSlot[], required
            - `upstreamPolicyId` string
            - `upstreamPoliciesApproved` boolean: Whether all upstream policies are approved.
            - `approvalPolicyId` string, required
            - `approvalSlotId` string, required
            - `assignedUserId` string
            - `action` 'NONE' | 'APPROVE' | 'REJECT', required
            - `eligibleRoles` string[], required
            - `eligibleUserIds` EntityTypesEntityUserId[], required
            - `date` string, date-time, required: Either the date the invoice was created, date the approver was assigned, or date of last action by approver, whichever is latest.
          - `approvalPolicy` EntityTypesApprovalPolicyResponse[], required
            - `id` string, required
            - `trigger` EntityTypesTrigger[], required
              - …
            - `rule` union, required
              - …
            - `upstreamPolicyId` string, required
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `metadata` object, required: Metadata associated with this invoice.
          - `creatorEntityId` string
          - `entityGroupId` string
          - `entityGroupForeignId` string: The foreign ID of the entity group that created this invoice.
          - `creatorUser` EntityTypesEntityUserResponse
            - `id` string, required
            - `foreignId` string: The ID used to identify this user in your system.
            - `email` string
            - `name` string
            - `roles` string[], required
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `createdAt` string, date-time, required
          - `updatedAt` string, date-time, required
          - `comments` InvoiceTypesCommentResponse[]
            - `id` string, required
            - `text` string, required
            - `user` EntityTypesEntityUserResponse
              - …
            - `associatedApprovalAction` InvoiceTypesAssociatedApprovalAction
              - …
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `fees` InvoiceTypesInvoiceFeesResponse
            - `sourcePaymentMethodFee` number, double, required: Fee charged to the platform (C1) for processing the source payment method. For example, credit card interchange and acquiring fees.
            - `sourcePlatformMarkupFee` number, double, required: Fee charged to the payer (C2).
            - `destinationPaymentMethodFee` number, double, required: Fee charged to the platform (C1) for processing the destination payment method. For example, postage for a check payment.
            - `destinationPlatformMarkupFee` number, double, required: Fee charged to the payee (C3).
          - `paymentSchedule` union
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
          - `ocrJobId` string
          - `recurringTemplateId` string
          - `id` string, required
          - `processedAt` string, date-time: Date when the invoice payment was processed.
          - `settlementDate` string, date-time: Date of funds settlement.
          - `foreignId` string: The ID used to identify this invoice in your system. This ID must be unique within each creatorEntity in your system, e.g. two invoices with the same creatorEntity may not have the same foreign ID.
          - `failureType` 'SOURCE_PAYMENT_ERROR' | 'DESTINATION_PAYMENT_ERROR' | 'REJECTED_HIGH_RISK' | 'INSUFFICIENT_FUNDS' | 'PROCESSING_ERROR'
          - `transactions` TransactionTransactionResponseWithoutInvoices[]: Transactions associated with this invoice.
            - union
              - …
          - `vendorCreditIds` VendorCreditTypesVendorCreditId[]: The IDs of the vendor credits that are currently applied to this invoice.
      - object
        - `type` 'bankAccountToPrintedCheck', required: Discriminator value: bankAccountToPrintedCheck
        - `id` string, required
        - `status` 'CREATED' | 'PENDING' | 'COMPLETED' | 'FAILED' | 'REVERSED' | 'QUEUED' | 'CANCELED' | 'RETURNED', required
        - `amount` number, double, required
        - `currency` string, required
        - `payerId` string, required
        - `payer` EntityTypesCounterpartyResponse, required
          - `id` string, required
          - `name` string, required
          - `email` string, required
          - `foreignId` string: The ID used to identify this entity in your system
          - `emailTo` string: Local-part/username of the email address to which to send invoices to be added to the Invoice Inbox.
          - `emailToAlias` string[]: Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias.
          - `isCustomer` boolean, required: True if this entity has a direct relationship with your organization.
          - `accountType` 'business' | 'individual', required
          - `profile` EntityTypesProfileResponse, required
            - `business` EntityTypesBusinessProfileResponse
              - …
            - `individual` EntityTypesIndividualProfileResponse
              - …
          - `logo` string: URL for the entity logo
          - `status` 'unverified' | 'pending' | 'resubmit' | 'review' | 'verified' | 'failed', required
          - `oatfiStatus` string: The OatFi status of this entity
          - `oatfiUnderwritingResponse` object: The OatFi underwriting response of this entity
          - `acceptedTos` boolean, required: True if this entity has accepted the terms of service.
          - `isPayor` boolean, required: True if this entity can pay invoices.
          - `isPayee` boolean, required: True if this entity can receive payments.
          - `isNetworkPayor` boolean, required: True if this entity is available as a payor to any entity on your platform. Otherwise this entity will only be available as a payor to entities that have a direct relationship with this entity.
          - `isNetworkPayee` boolean, required: True if this entity is available as a payee to any entity on your platform. Otherwise this entity will only be available as a payee to entities that have a direct relationship with this entity.
          - `metadata` object: Simple key/value metadata associated with this entity. For more complex metadata, use the Metadata API.
          - `createdAt` string, date-time, required
          - `updatedAt` string, date-time, required
          - `accounts` EntityTypesCounterpartyCustomizationAccount[]: If the entity searching for counterparties has any accounts configured in the Payee/Payor relationship, they will be returned
            - `accountId` string, required: The ID the counterparty has assigned to this account.
            - `postalCode` string: The postal code the counterparty has assigned to this account.
            - `nameOnAccount` string: The name on the account the counterparty has assigned to this account.
          - `paymentMethods` PaymentMethodTypesPaymentMethodResponse[]
            - union
              - …
          - `counterpartyType` EntityTypesCounterpartyNetworkType[]
          - `invoiceMetrics` EntityTypesCounterpartyInvoiceMetricsResponse
            - `totalCount` integer, required
            - `totalAmount` number, double, required
            - `statuses` EntityTypesCounterpartyInvoiceMetricsStatusResponse[], required
              - …
        - `paymentSource` union, required
          - object
            - `type` 'bankAccount', required: Discriminator value: bankAccount
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `accountName` string, required
            - `bankName` string, required
            - `routingNumber` string, required
            - `accountNumber` string, required
            - `accountType` 'CHECKING' | 'SAVINGS' | 'UNKNOWN', required
            - `status` 'NEW' | 'VERIFIED' | 'VERIFICATION_FAILED' | 'PENDING' | 'ERRORED', required
            - `checkOptions` PaymentMethodTypesBankAccountCheckOptions
              - …
          - object
            - `type` 'card', required: Discriminator value: card
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `cardType` 'credit' | 'debit' | 'prepaid' | 'unknown', required
            - `cardBrand` 'AmericanExpress' | 'Discover' | 'Mastercard' | 'Visa', required
            - `lastFour` string, required
            - `expMonth` string, required
            - `expYear` string, required
          - object
            - `type` 'check', required: Discriminator value: check
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `payToTheOrderOf` string, required
            - `addressLine1` string, required
            - `addressLine2` string
            - `city` string, required
            - `stateOrProvince` string, required
            - `postalCode` string, required
            - `country` string, required
          - object
            - `type` 'custom', required: Discriminator value: custom
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `foreignId` string: ID for this payment method in your system
            - `accountName` string
            - `accountNumber` string
            - `availableBalance` number, double: The available balance for this payment method.
            - `schemaId` string, required
            - `schema` PaymentMethodTypesCustomPaymentMethodSchemaResponse, required
              - …
            - `data` object, required: Object of key/value pairs that matches the keys in the linked payment method schema.
          - object
            - `type` 'offPlatform', required: Discriminator value: offPlatform
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - object
            - `type` 'utility', required: Discriminator value: utility
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `utilityId` string, required: The ID of the utility that this payment method is linked to.
          - object
            - `type` 'wallet', required: Discriminator value: wallet
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `availableBalance` PaymentMethodTypesWalletBalance, required
              - …
            - `pendingBalance` PaymentMethodTypesWalletBalance, required
              - …
        - `paymentSourceId` string, required
        - `vendorId` string, required
        - `vendor` EntityTypesCounterpartyResponse, required
          - `id` string, required
          - `name` string, required
          - `email` string, required
          - `foreignId` string: The ID used to identify this entity in your system
          - `emailTo` string: Local-part/username of the email address to which to send invoices to be added to the Invoice Inbox.
          - `emailToAlias` string[]: Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias.
          - `isCustomer` boolean, required: True if this entity has a direct relationship with your organization.
          - `accountType` 'business' | 'individual', required
          - `profile` EntityTypesProfileResponse, required
            - `business` EntityTypesBusinessProfileResponse
              - …
            - `individual` EntityTypesIndividualProfileResponse
              - …
          - `logo` string: URL for the entity logo
          - `status` 'unverified' | 'pending' | 'resubmit' | 'review' | 'verified' | 'failed', required
          - `oatfiStatus` string: The OatFi status of this entity
          - `oatfiUnderwritingResponse` object: The OatFi underwriting response of this entity
          - `acceptedTos` boolean, required: True if this entity has accepted the terms of service.
          - `isPayor` boolean, required: True if this entity can pay invoices.
          - `isPayee` boolean, required: True if this entity can receive payments.
          - `isNetworkPayor` boolean, required: True if this entity is available as a payor to any entity on your platform. Otherwise this entity will only be available as a payor to entities that have a direct relationship with this entity.
          - `isNetworkPayee` boolean, required: True if this entity is available as a payee to any entity on your platform. Otherwise this entity will only be available as a payee to entities that have a direct relationship with this entity.
          - `metadata` object: Simple key/value metadata associated with this entity. For more complex metadata, use the Metadata API.
          - `createdAt` string, date-time, required
          - `updatedAt` string, date-time, required
          - `accounts` EntityTypesCounterpartyCustomizationAccount[]: If the entity searching for counterparties has any accounts configured in the Payee/Payor relationship, they will be returned
            - `accountId` string, required: The ID the counterparty has assigned to this account.
            - `postalCode` string: The postal code the counterparty has assigned to this account.
            - `nameOnAccount` string: The name on the account the counterparty has assigned to this account.
          - `paymentMethods` PaymentMethodTypesPaymentMethodResponse[]
            - union
              - …
          - `counterpartyType` EntityTypesCounterpartyNetworkType[]
          - `invoiceMetrics` EntityTypesCounterpartyInvoiceMetricsResponse
            - `totalCount` integer, required
            - `totalAmount` number, double, required
            - `statuses` EntityTypesCounterpartyInvoiceMetricsStatusResponse[], required
              - …
        - `paymentDestination` union, required
          - object
            - `type` 'bankAccount', required: Discriminator value: bankAccount
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `accountName` string, required
            - `bankName` string, required
            - `routingNumber` string, required
            - `accountNumber` string, required
            - `accountType` 'CHECKING' | 'SAVINGS' | 'UNKNOWN', required
            - `status` 'NEW' | 'VERIFIED' | 'VERIFICATION_FAILED' | 'PENDING' | 'ERRORED', required
            - `checkOptions` PaymentMethodTypesBankAccountCheckOptions
              - …
          - object
            - `type` 'card', required: Discriminator value: card
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `cardType` 'credit' | 'debit' | 'prepaid' | 'unknown', required
            - `cardBrand` 'AmericanExpress' | 'Discover' | 'Mastercard' | 'Visa', required
            - `lastFour` string, required
            - `expMonth` string, required
            - `expYear` string, required
          - object
            - `type` 'check', required: Discriminator value: check
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `payToTheOrderOf` string, required
            - `addressLine1` string, required
            - `addressLine2` string
            - `city` string, required
            - `stateOrProvince` string, required
            - `postalCode` string, required
            - `country` string, required
          - object
            - `type` 'custom', required: Discriminator value: custom
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `foreignId` string: ID for this payment method in your system
            - `accountName` string
            - `accountNumber` string
            - `availableBalance` number, double: The available balance for this payment method.
            - `schemaId` string, required
            - `schema` PaymentMethodTypesCustomPaymentMethodSchemaResponse, required
              - …
            - `data` object, required: Object of key/value pairs that matches the keys in the linked payment method schema.
          - object
            - `type` 'offPlatform', required: Discriminator value: offPlatform
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - object
            - `type` 'utility', required: Discriminator value: utility
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `utilityId` string, required: The ID of the utility that this payment method is linked to.
          - object
            - `type` 'wallet', required: Discriminator value: wallet
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `availableBalance` PaymentMethodTypesWalletBalance, required
              - …
            - `pendingBalance` PaymentMethodTypesWalletBalance, required
              - …
        - `paymentDestinationId` string, required
        - `paymentDestinationOptions` union
          - object
            - `type` 'check', required: Discriminator value: check
            - `delivery` 'PRINT' | 'MAIL' | 'MAIL_PRIORITY' | 'MAIL_UPS_NEXT_DAY'
            - `printDescription` boolean: If true, prints the invoice description (noteToSelf) on the check note. Defaults to false.
          - object
            - `type` 'bankAccount', required: Discriminator value: bankAccount
            - `delivery` 'ACH_STANDARD' | 'ACH_SAME_DAY' | 'ACH_ACCELERATED'
            - `description` string: ACH Statement Description. By default, this will be 'AP' followed by the first 8 characters of the invoice ID (for a single invoice) or the first 8 characters of the transaction ID (for a batch payment). Must be at least 4 characters and no more than 10 characters, and follow this regex pattern `^[a-zA-Z0-9\-#.$&* ]{4,10}$`
          - object
            - `type` 'utility', required: Discriminator value: utility
            - `accountId` string, required: The ID for the utility account to pay with. Links to accounts listed on payor/payee relationship.
          - object
            - `type` 'custom', required: Discriminator value: custom
            - `dynamicUrls` object: Map of field names to dynamic URL values that will be used for dynamicUrl fields in custom payment method schemas
        - `fees` InvoiceTypesInvoiceFeesResponse
          - `sourcePaymentMethodFee` number, double, required: Fee charged to the platform (C1) for processing the source payment method. For example, credit card interchange and acquiring fees.
          - `sourcePlatformMarkupFee` number, double, required: Fee charged to the payer (C2).
          - `destinationPaymentMethodFee` number, double, required: Fee charged to the platform (C1) for processing the destination payment method. For example, postage for a check payment.
          - `destinationPlatformMarkupFee` number, double, required: Fee charged to the payee (C3).
        - `createdAt` string, date-time, required
        - `updatedAt` string, date-time, required
        - `checkNumber` integer, required: The number of the check
        - `invoices` InvoiceTypesInvoiceResponse[], required: Invoices associated with this transaction
          - `status` 'UNASSIGNED' | 'DRAFT' | 'NEW' | 'APPROVED' | 'SCHEDULED' | 'PENDING' | 'PAID' | 'ARCHIVED' | 'REFUSED' | 'CANCELED' | 'FAILED', required
          - `amount` number, double: Total amount of invoice in major units
          - `currency` 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'COP' | 'COU' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'CNY' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UYW' | 'UZS' | 'VED' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL'
          - `invoiceDate` string, date-time: Date the invoice was issued.
          - `deductionDate` string, date-time: Initial date when funds are scheduled to be deducted from payer's account. The actual deduction date may differ from this date, and will be reflected in the processedAt field.
          - `nextDeductionDate` string, date-time: For invoice templates, this is the date when the next recurring payment will be scheduled.
          - `dueDate` string, date-time: Due date of invoice.
          - `invoiceNumber` string
          - `noteToSelf` string
          - `serviceStartDate` string, date-time
          - `serviceEndDate` string, date-time
          - `netTerms` integer: Net terms in days. Must be a positive number.
          - `payerId` string
          - `payer` EntityTypesCounterpartyResponse
            - `id` string, required
            - `name` string, required
            - `email` string, required
            - `foreignId` string: The ID used to identify this entity in your system
            - `emailTo` string: Local-part/username of the email address to which to send invoices to be added to the Invoice Inbox.
            - `emailToAlias` string[]: Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias.
            - `isCustomer` boolean, required: True if this entity has a direct relationship with your organization.
            - `accountType` 'business' | 'individual', required
            - `profile` EntityTypesProfileResponse, required
              - …
            - `logo` string: URL for the entity logo
            - `status` 'unverified' | 'pending' | 'resubmit' | 'review' | 'verified' | 'failed', required
            - `oatfiStatus` string: The OatFi status of this entity
            - `oatfiUnderwritingResponse` object: The OatFi underwriting response of this entity
            - `acceptedTos` boolean, required: True if this entity has accepted the terms of service.
            - `isPayor` boolean, required: True if this entity can pay invoices.
            - `isPayee` boolean, required: True if this entity can receive payments.
            - `isNetworkPayor` boolean, required: True if this entity is available as a payor to any entity on your platform. Otherwise this entity will only be available as a payor to entities that have a direct relationship with this entity.
            - `isNetworkPayee` boolean, required: True if this entity is available as a payee to any entity on your platform. Otherwise this entity will only be available as a payee to entities that have a direct relationship with this entity.
            - `metadata` object: Simple key/value metadata associated with this entity. For more complex metadata, use the Metadata API.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `accounts` EntityTypesCounterpartyCustomizationAccount[]: If the entity searching for counterparties has any accounts configured in the Payee/Payor relationship, they will be returned
              - …
            - `paymentMethods` PaymentMethodTypesPaymentMethodResponse[]
              - …
            - `counterpartyType` EntityTypesCounterpartyNetworkType[]
            - `invoiceMetrics` EntityTypesCounterpartyInvoiceMetricsResponse
              - …
          - `paymentSource` union
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
          - `paymentSourceId` string
          - `paymentSourceOptions` InvoiceTypesPaymentSourceOptions
            - `type` 'bnpl', required: Discriminator value: bnpl
            - `installmentsStartDate` string, required: The start date for installments in YYYY-MM-DD format
            - `defermentWeeks` integer, required: The number of weeks to defer repayment
            - `acceptedTerms` boolean, required: Whether the user has agreed to the BNPL terms
            - `loanId` string: The ID of the loan to use for the BNPL payment.
            - `downpaymentId` string: The ID of the downpayment to use for the BNPL payment.
          - `vendorId` string
          - `vendor` EntityTypesCounterpartyResponse
            - `id` string, required
            - `name` string, required
            - `email` string, required
            - `foreignId` string: The ID used to identify this entity in your system
            - `emailTo` string: Local-part/username of the email address to which to send invoices to be added to the Invoice Inbox.
            - `emailToAlias` string[]: Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias.
            - `isCustomer` boolean, required: True if this entity has a direct relationship with your organization.
            - `accountType` 'business' | 'individual', required
            - `profile` EntityTypesProfileResponse, required
              - …
            - `logo` string: URL for the entity logo
            - `status` 'unverified' | 'pending' | 'resubmit' | 'review' | 'verified' | 'failed', required
            - `oatfiStatus` string: The OatFi status of this entity
            - `oatfiUnderwritingResponse` object: The OatFi underwriting response of this entity
            - `acceptedTos` boolean, required: True if this entity has accepted the terms of service.
            - `isPayor` boolean, required: True if this entity can pay invoices.
            - `isPayee` boolean, required: True if this entity can receive payments.
            - `isNetworkPayor` boolean, required: True if this entity is available as a payor to any entity on your platform. Otherwise this entity will only be available as a payor to entities that have a direct relationship with this entity.
            - `isNetworkPayee` boolean, required: True if this entity is available as a payee to any entity on your platform. Otherwise this entity will only be available as a payee to entities that have a direct relationship with this entity.
            - `metadata` object: Simple key/value metadata associated with this entity. For more complex metadata, use the Metadata API.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `accounts` EntityTypesCounterpartyCustomizationAccount[]: If the entity searching for counterparties has any accounts configured in the Payee/Payor relationship, they will be returned
              - …
            - `paymentMethods` PaymentMethodTypesPaymentMethodResponse[]
              - …
            - `counterpartyType` EntityTypesCounterpartyNetworkType[]
            - `invoiceMetrics` EntityTypesCounterpartyInvoiceMetricsResponse
              - …
          - `paymentDestination` union
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
          - `paymentDestinationId` string
          - `paymentDestinationOptions` union
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
          - `paymentTiming` CalculateCalculatePaymentTimingResponse
            - `estimatedProcessingDate` string, date-time, required: Estimated date the payment will be or was processed.
            - `businessDays` integer, required: Number of business days between the estimated processing date and the estimated settlement date. This does not take into account bank holidays or weekends.
            - `estimatedProcessingTime` integer, required: Estimated payment time in days. This time takes into account bank holidays and weekends.
            - `estimatedSettlementDate` string, date-time, required: Estimated date the payment will be or was settled. This is the same as the request's deductionDate plus the paymentTiming.
          - `paymentDestinationConfirmed` boolean, required: True if the payment destination has been confirmed by the vendor. False if the payment destination has been set (for example, a check to an address) but has not been confirmed by the vendor.
          - `batchPayment` boolean: If true, this invoice will be paid as a batch payment. Batches are automatically determined by Mercoa based on the payment source, destination, and scheduled payment date.
          - `hasDocuments` boolean, required: True if the invoice has documents attached.
          - `hasSourceEmail` boolean, required: True if the invoice was created by an incoming email.
          - `lineItems` InvoiceTypesInvoiceLineItemResponse[]
            - `id` string, required
            - `amount` number, double: Total amount of line item in major units.
            - `currency` 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'COP' | 'COU' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'CNY' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UYW' | 'UZS' | 'VED' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL', required
            - `description` string
            - `name` string
            - `quantity` number, double
            - `unitPrice` number, double: Unit price of line item in major units.
            - `category` string, required: Category of the line item. Defaults to 'EXPENSE'.
            - `serviceStartDate` string, date-time
            - `serviceEndDate` string, date-time
            - `metadata` object
            - `glAccountId` string: ID of general ledger account associated with this line item.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `taxAmount` number, double: Tax amount for this invoice.
          - `shippingAmount` number, double: Shipping amount for this invoice.
          - `approvers` InvoiceTypesApprovalSlot[], required
            - `upstreamPolicyId` string
            - `upstreamPoliciesApproved` boolean: Whether all upstream policies are approved.
            - `approvalPolicyId` string, required
            - `approvalSlotId` string, required
            - `assignedUserId` string
            - `action` 'NONE' | 'APPROVE' | 'REJECT', required
            - `eligibleRoles` string[], required
            - `eligibleUserIds` EntityTypesEntityUserId[], required
            - `date` string, date-time, required: Either the date the invoice was created, date the approver was assigned, or date of last action by approver, whichever is latest.
          - `approvalPolicy` EntityTypesApprovalPolicyResponse[], required
            - `id` string, required
            - `trigger` EntityTypesTrigger[], required
              - …
            - `rule` union, required
              - …
            - `upstreamPolicyId` string, required
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `metadata` object, required: Metadata associated with this invoice.
          - `creatorEntityId` string
          - `entityGroupId` string
          - `entityGroupForeignId` string: The foreign ID of the entity group that created this invoice.
          - `creatorUser` EntityTypesEntityUserResponse
            - `id` string, required
            - `foreignId` string: The ID used to identify this user in your system.
            - `email` string
            - `name` string
            - `roles` string[], required
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `createdAt` string, date-time, required
          - `updatedAt` string, date-time, required
          - `comments` InvoiceTypesCommentResponse[]
            - `id` string, required
            - `text` string, required
            - `user` EntityTypesEntityUserResponse
              - …
            - `associatedApprovalAction` InvoiceTypesAssociatedApprovalAction
              - …
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `fees` InvoiceTypesInvoiceFeesResponse
            - `sourcePaymentMethodFee` number, double, required: Fee charged to the platform (C1) for processing the source payment method. For example, credit card interchange and acquiring fees.
            - `sourcePlatformMarkupFee` number, double, required: Fee charged to the payer (C2).
            - `destinationPaymentMethodFee` number, double, required: Fee charged to the platform (C1) for processing the destination payment method. For example, postage for a check payment.
            - `destinationPlatformMarkupFee` number, double, required: Fee charged to the payee (C3).
          - `paymentSchedule` union
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
          - `ocrJobId` string
          - `recurringTemplateId` string
          - `id` string, required
          - `processedAt` string, date-time: Date when the invoice payment was processed.
          - `settlementDate` string, date-time: Date of funds settlement.
          - `foreignId` string: The ID used to identify this invoice in your system. This ID must be unique within each creatorEntity in your system, e.g. two invoices with the same creatorEntity may not have the same foreign ID.
          - `failureType` 'SOURCE_PAYMENT_ERROR' | 'DESTINATION_PAYMENT_ERROR' | 'REJECTED_HIGH_RISK' | 'INSUFFICIENT_FUNDS' | 'PROCESSING_ERROR'
          - `transactions` TransactionTransactionResponseWithoutInvoices[]: Transactions associated with this invoice.
            - union
              - …
          - `vendorCreditIds` VendorCreditTypesVendorCreditId[]: The IDs of the vendor credits that are currently applied to this invoice.
      - object
        - `type` 'bankAccountToWallet', required: Discriminator value: bankAccountToWallet
        - `id` string, required
        - `status` 'CREATED' | 'PENDING' | 'COMPLETED' | 'FAILED' | 'REVERSED' | 'QUEUED' | 'CANCELED' | 'RETURNED', required
        - `amount` number, double, required
        - `currency` string, required
        - `payerId` string, required
        - `payer` EntityTypesCounterpartyResponse, required
          - `id` string, required
          - `name` string, required
          - `email` string, required
          - `foreignId` string: The ID used to identify this entity in your system
          - `emailTo` string: Local-part/username of the email address to which to send invoices to be added to the Invoice Inbox.
          - `emailToAlias` string[]: Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias.
          - `isCustomer` boolean, required: True if this entity has a direct relationship with your organization.
          - `accountType` 'business' | 'individual', required
          - `profile` EntityTypesProfileResponse, required
            - `business` EntityTypesBusinessProfileResponse
              - …
            - `individual` EntityTypesIndividualProfileResponse
              - …
          - `logo` string: URL for the entity logo
          - `status` 'unverified' | 'pending' | 'resubmit' | 'review' | 'verified' | 'failed', required
          - `oatfiStatus` string: The OatFi status of this entity
          - `oatfiUnderwritingResponse` object: The OatFi underwriting response of this entity
          - `acceptedTos` boolean, required: True if this entity has accepted the terms of service.
          - `isPayor` boolean, required: True if this entity can pay invoices.
          - `isPayee` boolean, required: True if this entity can receive payments.
          - `isNetworkPayor` boolean, required: True if this entity is available as a payor to any entity on your platform. Otherwise this entity will only be available as a payor to entities that have a direct relationship with this entity.
          - `isNetworkPayee` boolean, required: True if this entity is available as a payee to any entity on your platform. Otherwise this entity will only be available as a payee to entities that have a direct relationship with this entity.
          - `metadata` object: Simple key/value metadata associated with this entity. For more complex metadata, use the Metadata API.
          - `createdAt` string, date-time, required
          - `updatedAt` string, date-time, required
          - `accounts` EntityTypesCounterpartyCustomizationAccount[]: If the entity searching for counterparties has any accounts configured in the Payee/Payor relationship, they will be returned
            - `accountId` string, required: The ID the counterparty has assigned to this account.
            - `postalCode` string: The postal code the counterparty has assigned to this account.
            - `nameOnAccount` string: The name on the account the counterparty has assigned to this account.
          - `paymentMethods` PaymentMethodTypesPaymentMethodResponse[]
            - union
              - …
          - `counterpartyType` EntityTypesCounterpartyNetworkType[]
          - `invoiceMetrics` EntityTypesCounterpartyInvoiceMetricsResponse
            - `totalCount` integer, required
            - `totalAmount` number, double, required
            - `statuses` EntityTypesCounterpartyInvoiceMetricsStatusResponse[], required
              - …
        - `paymentSource` union, required
          - object
            - `type` 'bankAccount', required: Discriminator value: bankAccount
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `accountName` string, required
            - `bankName` string, required
            - `routingNumber` string, required
            - `accountNumber` string, required
            - `accountType` 'CHECKING' | 'SAVINGS' | 'UNKNOWN', required
            - `status` 'NEW' | 'VERIFIED' | 'VERIFICATION_FAILED' | 'PENDING' | 'ERRORED', required
            - `checkOptions` PaymentMethodTypesBankAccountCheckOptions
              - …
          - object
            - `type` 'card', required: Discriminator value: card
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `cardType` 'credit' | 'debit' | 'prepaid' | 'unknown', required
            - `cardBrand` 'AmericanExpress' | 'Discover' | 'Mastercard' | 'Visa', required
            - `lastFour` string, required
            - `expMonth` string, required
            - `expYear` string, required
          - object
            - `type` 'check', required: Discriminator value: check
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `payToTheOrderOf` string, required
            - `addressLine1` string, required
            - `addressLine2` string
            - `city` string, required
            - `stateOrProvince` string, required
            - `postalCode` string, required
            - `country` string, required
          - object
            - `type` 'custom', required: Discriminator value: custom
            - `id` string, required
            - `isDefaultSource` boolean, required: Indicates whether this payment method is the default source for the entity
            - `isDefaultDestination` boolean, required: Indicates whether this payment method is the default destination for the entity
            - `supportedCurrencies` PaymentMethodTypesCurrencyCode[], required
            - `externalAccountingSystemId` string: ID for this payment method in the external accounting system (e.g Rutter or Codat)
            - `frozen` boolean, required: Frozen payment methods cannot be used for payments, but will still be returned in API responses.
            - `metadata` object, required: Metadata associated with this payment method.
            - `confirmedByEntity` boolean: (ALPHA, MAY BE REMOVED) Indicates whether the payment method has been verified by the entity. This is useful if another entity has added this payment method to this entity, and you want the owner of the payment method to verify it is correct.
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `foreignId` string: ID for this payment method in your system
            - `accountName` string
            - `accountNumber` string
            - `availableBalance` number, double: The available balance for this payment method.
- … truncated; see the full OpenAPI document linked below

## Other responses

- `400`: Error response with status 400
- `401`: Error response with status 401
- `403`: Error response with status 403
- `404`: Error response with status 404
- `409`: Error response with status 409
- `500`: Error response with status 500
- `501`: Error response with status 501

---

[API](https://skmtc.dev/mercoa/apis/mercoa-2.md) - [All operations](https://skmtc.dev/mercoa/apis/mercoa-2/llms.txt) - [OpenAPI document](https://skmtc.dev/mercoa/apis/mercoa-2/revisions/00a8e403ae18?raw)
