{
  "openapi": "3.0.0",
  "info": {
    "title": "Jupico - OpenAPI 3.0",
    "description": "The Jupico API lets Service Providers onboard merchants, process card and eCheck (ACH) payments, run hosted payment pages, manage recurring billing, send payouts, and query every resource. All endpoints use HTTPS with Basic authentication and accept and return JSON. Endpoints are grouped by workflow: onboard merchants first, then accept payments, then move funds and report.",
    "termsOfService": "https://help.jupico.com/references-and-resources/legal",
    "contact": {
      "email": "support@jupico.com"
    },
    "license": {
      "name": "Jupico License",
      "url": "https://jupico.com"
    },
    "version": "1.0.5"
  },
  "servers": [
    {
      "url": "https://sandbox-platform.jupico.com"
    }
  ],
  "tags": [
    {
      "name": "Status",
      "description": "Health check for the Jupico API."
    },
    {
      "name": "Onboarding Invites",
      "description": "Create and send invites that onboard merchants through the Jupico-hosted flow, with optional pre-filled identity, fees, and payout bank account data."
    },
    {
      "name": "Provisioning",
      "description": "Onboard merchants from your own UI. Collect onboarding data and submit it through the provisioning chain: applicant → application → submerchant."
    },
    {
      "name": "Session",
      "description": "Create browser authorization sessions for the Jupico web components, so card and bank account data is tokenized client-side and never touches your servers."
    },
    {
      "name": "Tokenization",
      "description": "Convert one-time tokens from the web components into permanent Jupico tokens, tokenize raw card data if your systems are PCI DSS compliant, or tokenize raw bank account data."
    },
    {
      "name": "Customer",
      "description": "Create and manage customer records that payments, subscriptions, installments, and invoices link to."
    },
    {
      "name": "Card Transactions",
      "description": "Process credit and debit card transactions using tokenized card data: sale, authorization, capture, void, refund, and rollback."
    },
    {
      "name": "eCheck Transactions",
      "description": "Debit customer bank accounts via eCheck (ACH): sale, void, refund, and rollback. Bank account tokenization here is deprecated; use the Tokenization endpoint instead."
    },
    {
      "name": "Checkouts",
      "description": "Hosted checkout sessions where customers complete payment on a Jupico-hosted page."
    },
    {
      "name": "Payment Links",
      "description": "Shareable links that open a Jupico-hosted payment page — no integration code needed at the point of sharing."
    },
    {
      "name": "Invoices",
      "description": "Create and email invoices that customers pay online."
    },
    {
      "name": "Subscriptions",
      "description": "Recurring billing. Plans define billing schedules and pricing models; subscriptions enroll customers against a stored payment token."
    },
    {
      "name": "Installments",
      "description": "Split a fixed total into scheduled payments with an optional deposit."
    },
    {
      "name": "Payouts",
      "description": "Send funds from a submerchant's available balance to a tokenized bank account with on-demand payout instructions."
    },
    {
      "name": "Query",
      "description": "Search and report across every resource: transactions, merchants, settlements, balances, disputes, fees, and more. All query endpoints accept the same filter, sort, and pagination envelope — see the Query Capabilities guide."
    },
    {
      "name": "Currency Exchange API",
      "description": "Query live exchange rates, convert amounts between currencies, and retrieve the list of supported currency codes."
    }
  ],
  "paths": {
    "/status": {
      "get": {
        "tags": [
          "Status"
        ],
        "summary": "Check API status",
        "description": "Returns `200` when the API is reachable. Use this endpoint for health checks and uptime monitoring; it requires no request body.",
        "operationId": "healthCheck",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/healthCheck"
          }
        }
      }
    },
    "/v1/onboardinginvites": {
      "post": {
        "tags": [
          "Onboarding Invites"
        ],
        "summary": "Create an invite",
        "description": "Creates an onboarding invite without sending it. Pre-fill identity, fees, and payout bank account data to shorten the hosted onboarding flow for the merchant. Send the invite later with **Send an invite**.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "example": "John Doe",
                    "description": "The name of the person being invited.",
                    "maxLength": 100
                  },
                  "email": {
                    "type": "string",
                    "example": "example@example.com",
                    "description": "The email of the person being invited.",
                    "maxLength": 100
                  },
                  "phoneNumber": {
                    "type": "string",
                    "example": "2232322323",
                    "description": "The phone number of the person being invited.",
                    "maxLength": 15
                  },
                  "reference": {
                    "type": "string",
                    "example": "Reference 123",
                    "description": "The invite reference.",
                    "maxLength": 100
                  },
                  "identity": {
                    "type": "object",
                    "properties": {
                      "owners": {
                        "$ref": "#/components/schemas/Owner"
                      },
                      "business": {
                        "$ref": "#/components/schemas/Business"
                      },
                      "contact": {
                        "$ref": "#/components/schemas/Contact"
                      }
                    },
                    "description": "The identity object containing data about the business and its representatives"
                  },
                  "payoutBankAccounts": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "accountRouting": {
                          "type": "string",
                          "example": "123123122",
                          "maxLength": 9,
                          "description": "9-digit ABA routing number."
                        },
                        "accountNumber": {
                          "type": "string",
                          "example": "8789545642",
                          "minLength": 6,
                          "maxLength": 17,
                          "description": "Bank account number."
                        },
                        "accountType": {
                          "type": "string",
                          "enum": [
                            "checking"
                          ],
                          "example": "checking",
                          "maxLength": 20,
                          "description": "Bank account type, such as `checking`."
                        },
                        "nameOnAccount": {
                          "type": "string",
                          "example": "Updatedjonnydooeiacc",
                          "maxLength": 50,
                          "description": "Name on the bank account."
                        }
                      }
                    },
                    "description": "Bank accounts where the merchant receives payouts."
                  },
                  "feesTemplateId": {
                    "description": "UUID of the fees template with predefined fees. If no value is passed, the id of the default template will be used.",
                    "type": "string",
                    "example": ""
                  },
                  "fees": {
                    "description": "The fees object will overwrite the values set on the fees template, as specified by the feesTemplateId. This allows for customization of fees at the invite overriding any defaults defined in the template.",
                    "type": "object",
                    "properties": {
                      "platform": {
                        "type": "object",
                        "properties": {
                          "interchange": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              },
                              "billTo": {
                                "type": "string",
                                "enum": [
                                  "spProduct",
                                  "submerchant"
                                ],
                                "example": "spProduct",
                                "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                              }
                            },
                            "description": "Interchange pass-through fee settings."
                          },
                          "perTransaction": {
                            "type": "object",
                            "properties": {
                              "ccCnpSale": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present sale."
                              },
                              "ccCnpCapture": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present capture."
                              },
                              "ccCnpAuth": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.25,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present authorization."
                              },
                              "ccCnpVoid": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present void."
                              },
                              "ccCnpRefund": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present refund."
                              },
                              "ccCnpCredit": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present credit."
                              },
                              "ccCnpReversal": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present reversal."
                              },
                              "ccCnpChargeback": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 25,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each chargeback."
                              },
                              "ccCnpAvsOnly": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each AVS-only verification."
                              },
                              "ccCnpDeclined": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.5,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each declined card-not-present attempt."
                              },
                              "checkSale": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2.9,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each eCheck sale."
                              },
                              "checkVerification": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each eCheck verification."
                              },
                              "checkVoid": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck void."
                              },
                              "checkRefund": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck refund."
                              },
                              "checkCredit": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck credit."
                              },
                              "checkReversal": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck reversal."
                              }
                            },
                            "description": "Event-based fees, one entry per transaction event type."
                          },
                          "perPeriod": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "period": {
                                  "type": "string",
                                  "example": "daily",
                                  "enum": [
                                    "today",
                                    "yesterday",
                                    "last-7-days",
                                    "this-month",
                                    "this-year",
                                    "last-6-months",
                                    "one-time",
                                    "daily",
                                    "weekly",
                                    "monthly",
                                    "quarterly",
                                    "per-semester",
                                    "annually"
                                  ],
                                  "description": "Billing period for this recurring fee."
                                },
                                "fixed": {
                                  "type": "number",
                                  "example": 3,
                                  "description": "Fixed fee amount charged each time this event occurs."
                                },
                                "since": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2025-08-01T03:00:00.000Z",
                                  "description": "Start of the window during which this fee applies (ISO 8601)."
                                },
                                "until": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2025-08-23T03:00:00.000Z",
                                  "description": "End of the window during which this fee applies (ISO 8601)."
                                },
                                "status": {
                                  "type": "string",
                                  "example": "enabled",
                                  "description": "Whether this recurring fee is currently active."
                                },
                                "isTriggerFirstTx": {
                                  "type": "boolean",
                                  "example": false,
                                  "description": "When true, the recurring fee starts only after the merchant processes their first transaction."
                                },
                                "isProrated": {
                                  "type": "boolean",
                                  "example": true,
                                  "description": "Whether the first billing period is prorated."
                                }
                              }
                            },
                            "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                          }
                        },
                        "description": "Fee configuration at the platform level."
                      },
                      "spProduct": {
                        "type": "object",
                        "properties": {
                          "interchange": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              },
                              "billTo": {
                                "type": "string",
                                "example": "submerchant",
                                "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                              }
                            },
                            "description": "Interchange pass-through fee settings."
                          },
                          "perTransaction": {
                            "type": "object",
                            "properties": {
                              "ccCnpSale": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present sale."
                              },
                              "ccCnpCapture": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present capture."
                              },
                              "ccCnpAuth": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.25,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present authorization."
                              },
                              "ccCnpVoid": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present void."
                              },
                              "ccCnpRefund": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present refund."
                              },
                              "ccCnpCredit": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present credit."
                              },
                              "ccCnpReversal": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present reversal."
                              },
                              "ccCnpChargeback": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 25,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each chargeback."
                              },
                              "ccCnpAvsOnly": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each AVS-only verification."
                              },
                              "ccCnpDeclined": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.5,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each declined card-not-present attempt."
                              },
                              "checkSale": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2.9,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each eCheck sale."
                              },
                              "checkVerification": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each eCheck verification."
                              },
                              "checkVoid": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck void."
                              },
                              "checkRefund": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck refund."
                              },
                              "checkCredit": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck credit."
                              },
                              "checkReversal": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck reversal."
                              }
                            },
                            "description": "Event-based fees, one entry per transaction event type."
                          },
                          "perPeriod": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "period": {
                                  "type": "string",
                                  "example": "daily",
                                  "enum": [
                                    "today",
                                    "yesterday",
                                    "last-7-days",
                                    "this-month",
                                    "this-year",
                                    "last-6-months",
                                    "one-time",
                                    "daily",
                                    "weekly",
                                    "monthly",
                                    "quarterly",
                                    "per-semester",
                                    "annually"
                                  ],
                                  "description": "Billing period for this recurring fee."
                                },
                                "fixed": {
                                  "type": "number",
                                  "example": 3,
                                  "description": "Fixed fee amount charged each time this event occurs."
                                },
                                "since": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2025-08-01T03:00:00.000Z",
                                  "description": "Start of the window during which this fee applies (ISO 8601)."
                                },
                                "until": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2025-08-23T03:00:00.000Z",
                                  "description": "End of the window during which this fee applies (ISO 8601)."
                                },
                                "status": {
                                  "type": "string",
                                  "example": "enabled",
                                  "description": "Whether this recurring fee is currently active."
                                },
                                "isTriggerFirstTx": {
                                  "type": "boolean",
                                  "example": false,
                                  "description": "When true, the recurring fee starts only after the merchant processes their first transaction."
                                },
                                "isProrated": {
                                  "type": "boolean",
                                  "example": true,
                                  "description": "Whether the first billing period is prorated."
                                }
                              }
                            },
                            "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                          }
                        },
                        "description": "Fee configuration at the Service Provider product level."
                      }
                    }
                  },
                  "onboardingFlowTemplateId": {
                    "type": "string",
                    "description": "UUID of the onboarding flow template to be used for the onboarding experience.",
                    "example": ""
                  }
                },
                "example": {
                  "name": "Tech",
                  "email": "test@gmail.com",
                  "phoneNumber": "2995318324",
                  "reference": "1234",
                  "identity": {
                    "owners": [
                      {
                        "title": "Mr.",
                        "firstName": "jonny",
                        "middleName": "eric",
                        "lastName": "dooei",
                        "birthDate": "2000-08-01",
                        "phoneNumber": "2232322323",
                        "streetNum": "79",
                        "streetName": "clarks",
                        "city": "ny",
                        "state": "NY",
                        "postalCode": "23434",
                        "ssn": "123123123",
                        "ownershipPercentage": 100,
                        "email": "mail_m@asd.com"
                      }
                    ]
                  }
                },
                "required": [
                  "name",
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/createOnboardingInvite"
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/onboardinginvites/createandsend": {
      "post": {
        "tags": [
          "Onboarding Invites"
        ],
        "summary": "Create and send an invite",
        "description": "Creates an onboarding invite and immediately emails it to the merchant. Equivalent to **Create an invite** followed by **Send an invite** in a single call.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "example": "John Doe",
                    "description": "The name of the person being invited."
                  },
                  "email": {
                    "type": "string",
                    "example": "example@example.com",
                    "description": "The email of the person being invited."
                  },
                  "phoneNumber": {
                    "type": "string",
                    "example": "2232322323",
                    "description": "The phone number of the person being invited."
                  },
                  "reference": {
                    "type": "string",
                    "example": "Reference 123",
                    "description": "The invite reference."
                  },
                  "identity": {
                    "type": "object",
                    "properties": {
                      "owners": {
                        "$ref": "#/components/schemas/Owner"
                      },
                      "business": {
                        "$ref": "#/components/schemas/Business"
                      },
                      "contact": {
                        "$ref": "#/components/schemas/Contact"
                      }
                    },
                    "description": "The identity object containing data about the business and its representatives"
                  },
                  "payoutBankAccounts": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "accountRouting": {
                          "type": "string",
                          "example": "123123122",
                          "description": "9-digit ABA routing number."
                        },
                        "accountNumber": {
                          "type": "string",
                          "example": "8789545642",
                          "description": "Bank account number."
                        },
                        "accountType": {
                          "type": "string",
                          "enum": [
                            "checking"
                          ],
                          "example": "checking",
                          "description": "Bank account type, such as `checking`."
                        },
                        "nameOnAccount": {
                          "type": "string",
                          "example": "Updatedjonnydooeiacc",
                          "description": "Name on the bank account."
                        }
                      }
                    },
                    "description": "Bank accounts where the merchant receives payouts."
                  },
                  "feesTemplateId": {
                    "type": "string",
                    "example": "",
                    "description": "UUID of the fees template with predefined fees. If no value is passed, the id of the default template will be used."
                  },
                  "fees": {
                    "description": "The fees object will overwrite the values set on the fees template, as specified by the feesTemplateId. This allows for customization of fees at the invite overriding any defaults defined in the template.",
                    "type": "object",
                    "properties": {
                      "platform": {
                        "type": "object",
                        "properties": {
                          "interchange": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              },
                              "billTo": {
                                "type": "string",
                                "enum": [
                                  "spProduct",
                                  "submerchant"
                                ],
                                "example": "spProduct",
                                "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                              }
                            },
                            "description": "Interchange pass-through fee settings."
                          },
                          "perTransaction": {
                            "type": "object",
                            "properties": {
                              "ccCnpSale": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present sale."
                              },
                              "ccCnpCapture": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present capture."
                              },
                              "ccCnpAuth": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.25,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present authorization."
                              },
                              "ccCnpVoid": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present void."
                              },
                              "ccCnpRefund": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present refund."
                              },
                              "ccCnpCredit": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present credit."
                              },
                              "ccCnpReversal": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present reversal."
                              },
                              "ccCnpChargeback": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 25,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each chargeback."
                              },
                              "ccCnpAvsOnly": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each AVS-only verification."
                              },
                              "ccCnpDeclined": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.5,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each declined card-not-present attempt."
                              },
                              "checkSale": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2.9,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each eCheck sale."
                              },
                              "checkVerification": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each eCheck verification."
                              },
                              "checkVoid": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck void."
                              },
                              "checkRefund": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck refund."
                              },
                              "checkCredit": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck credit."
                              },
                              "checkReversal": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck reversal."
                              }
                            },
                            "description": "Event-based fees, one entry per transaction event type."
                          },
                          "perPeriod": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "period": {
                                  "type": "string",
                                  "example": "daily",
                                  "enum": [
                                    "today",
                                    "yesterday",
                                    "last-7-days",
                                    "this-month",
                                    "this-year",
                                    "last-6-months",
                                    "one-time",
                                    "daily",
                                    "weekly",
                                    "monthly",
                                    "quarterly",
                                    "per-semester",
                                    "annually"
                                  ],
                                  "description": "Billing period for this recurring fee."
                                },
                                "fixed": {
                                  "type": "number",
                                  "example": 3,
                                  "description": "Fixed fee amount charged each time this event occurs."
                                },
                                "since": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2025-08-01T03:00:00.000Z",
                                  "description": "Start of the window during which this fee applies (ISO 8601)."
                                },
                                "until": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2025-08-23T03:00:00.000Z",
                                  "description": "End of the window during which this fee applies (ISO 8601)."
                                },
                                "status": {
                                  "type": "string",
                                  "example": "enabled",
                                  "description": "Whether this recurring fee is currently active."
                                },
                                "isTriggerFirstTx": {
                                  "type": "boolean",
                                  "example": false,
                                  "description": "When true, the recurring fee starts only after the merchant processes their first transaction."
                                },
                                "isProrated": {
                                  "type": "boolean",
                                  "example": true,
                                  "description": "Whether the first billing period is prorated."
                                }
                              }
                            },
                            "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                          }
                        },
                        "description": "Fee configuration at the platform level."
                      },
                      "spProduct": {
                        "type": "object",
                        "properties": {
                          "interchange": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              },
                              "billTo": {
                                "type": "string",
                                "example": "submerchant",
                                "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                              }
                            },
                            "description": "Interchange pass-through fee settings."
                          },
                          "perTransaction": {
                            "type": "object",
                            "properties": {
                              "ccCnpSale": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present sale."
                              },
                              "ccCnpCapture": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present capture."
                              },
                              "ccCnpAuth": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.25,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present authorization."
                              },
                              "ccCnpVoid": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present void."
                              },
                              "ccCnpRefund": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present refund."
                              },
                              "ccCnpCredit": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present credit."
                              },
                              "ccCnpReversal": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present reversal."
                              },
                              "ccCnpChargeback": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 25,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each chargeback."
                              },
                              "ccCnpAvsOnly": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each AVS-only verification."
                              },
                              "ccCnpDeclined": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.5,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each declined card-not-present attempt."
                              },
                              "checkSale": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2.9,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each eCheck sale."
                              },
                              "checkVerification": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each eCheck verification."
                              },
                              "checkVoid": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck void."
                              },
                              "checkRefund": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck refund."
                              },
                              "checkCredit": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck credit."
                              },
                              "checkReversal": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck reversal."
                              }
                            },
                            "description": "Event-based fees, one entry per transaction event type."
                          },
                          "perPeriod": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "period": {
                                  "type": "string",
                                  "example": "daily",
                                  "enum": [
                                    "today",
                                    "yesterday",
                                    "last-7-days",
                                    "this-month",
                                    "this-year",
                                    "last-6-months",
                                    "one-time",
                                    "daily",
                                    "weekly",
                                    "monthly",
                                    "quarterly",
                                    "per-semester",
                                    "annually"
                                  ],
                                  "description": "Billing period for this recurring fee."
                                },
                                "fixed": {
                                  "type": "number",
                                  "example": 3,
                                  "description": "Fixed fee amount charged each time this event occurs."
                                },
                                "since": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2025-08-01T03:00:00.000Z",
                                  "description": "Start of the window during which this fee applies (ISO 8601)."
                                },
                                "until": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2025-08-23T03:00:00.000Z",
                                  "description": "End of the window during which this fee applies (ISO 8601)."
                                },
                                "status": {
                                  "type": "string",
                                  "example": "enabled",
                                  "description": "Whether this recurring fee is currently active."
                                },
                                "isTriggerFirstTx": {
                                  "type": "boolean",
                                  "example": false,
                                  "description": "When true, the recurring fee starts only after the merchant processes their first transaction."
                                },
                                "isProrated": {
                                  "type": "boolean",
                                  "example": true,
                                  "description": "Whether the first billing period is prorated."
                                }
                              }
                            },
                            "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                          }
                        },
                        "description": "Fee configuration at the Service Provider product level."
                      }
                    }
                  },
                  "onboardingFlowTemplateId": {
                    "type": "string",
                    "description": "UUID of the onboarding flow template to be used for the onboarding experience.",
                    "example": ""
                  }
                },
                "example": {
                  "name": "Tech",
                  "email": "test@gmail.com",
                  "phoneNumber": "2995318324",
                  "reference": "1234",
                  "identity": {
                    "owners": [
                      {
                        "title": "Mr.",
                        "firstName": "jonny",
                        "middleName": "eric",
                        "lastName": "dooei",
                        "birthDate": "2000-08-01",
                        "phoneNumber": "2232322323",
                        "streetNum": "79",
                        "streetName": "clarks",
                        "city": "ny",
                        "state": "NY",
                        "postalCode": "23434",
                        "ssn": "123123123",
                        "ownershipPercentage": 100,
                        "email": "mail_m@asd.com"
                      }
                    ]
                  }
                },
                "required": [
                  "name",
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/createSendOnboardingInvite"
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/onboardinginvites/send": {
      "post": {
        "tags": [
          "Onboarding Invites"
        ],
        "summary": "Send an invite",
        "description": "Emails a previously created invite to the merchant. Use this after **Create an invite** when you want to control the timing of delivery.",
        "requestBody": {
          "description": "***create an onboarding invite first and get the inviteId***",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "inviteId": {
                    "type": "string",
                    "example": "",
                    "description": "The inviteId of the onboarding invite."
                  }
                },
                "required": [
                  "inviteId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/sendOnboardingInvites"
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/onboardinginvites/createmany": {
      "post": {
        "tags": [
          "Onboarding Invites"
        ],
        "summary": "Create multiple invites",
        "description": "Creates multiple onboarding invites in a single request, for bulk merchant migrations. Set `dryRun` to `true` to validate the batch without creating any invites.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invites": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the individual or entity being invited.",
                          "example": "John Doe"
                        },
                        "email": {
                          "type": "string",
                          "format": "email",
                          "description": "The email address of the invitee.",
                          "example": "example@example.com"
                        },
                        "phoneNumber": {
                          "type": "string",
                          "description": "The phone number of the invitee.",
                          "example": "2232322323"
                        },
                        "reference": {
                          "type": "string",
                          "description": "A reference identifier for the invite.",
                          "example": "Reference 123"
                        },
                        "identity": {
                          "type": "object",
                          "properties": {
                            "owners": {
                              "$ref": "#/components/schemas/Owner"
                            },
                            "business": {
                              "$ref": "#/components/schemas/Business"
                            },
                            "contact": {
                              "$ref": "#/components/schemas/Contact"
                            }
                          },
                          "description": "The identity object containing data about the business and its representatives"
                        },
                        "payoutBankAccounts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "accountRouting": {
                                "type": "string",
                                "example": "123123122",
                                "description": "9-digit ABA routing number."
                              },
                              "accountNumber": {
                                "type": "string",
                                "example": "8789545642",
                                "description": "Bank account number."
                              },
                              "accountType": {
                                "type": "string",
                                "enum": [
                                  "checking"
                                ],
                                "example": "checking",
                                "description": "Bank account type, such as `checking`."
                              },
                              "nameOnAccount": {
                                "type": "string",
                                "example": "Updatedjonnydooeiacc",
                                "description": "Name on the bank account."
                              }
                            }
                          },
                          "description": "Bank accounts where the merchant receives payouts."
                        },
                        "feesTemplateId": {
                          "description": "UUID of the fees template with predefined fees. If no value is passed, the id of the default template will be used.",
                          "type": "string"
                        },
                        "fees": {
                          "description": "The fees object will overwrite the values set on the fees template, as specified by the feesTemplateId. This allows for customization of fees at the invite overriding any defaults defined in the template.",
                          "type": "object",
                          "properties": {
                            "platform": {
                              "type": "object",
                              "properties": {
                                "interchange": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether this setting is enabled."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "enum": [
                                        "spProduct",
                                        "submerchant"
                                      ],
                                      "example": "spProduct",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Interchange pass-through fee settings."
                                },
                                "perTransaction": {
                                  "type": "object",
                                  "properties": {
                                    "ccCnpSale": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "discountRate": {
                                          "type": "number",
                                          "example": 2,
                                          "description": "Percentage fee charged on the event amount."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.3,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        }
                                      },
                                      "description": "Fee applied to each card-not-present sale."
                                    },
                                    "ccCnpCapture": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "discountRate": {
                                          "type": "number",
                                          "example": 2,
                                          "description": "Percentage fee charged on the event amount."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.3,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        }
                                      },
                                      "description": "Fee applied to each card-not-present capture."
                                    },
                                    "ccCnpAuth": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "discountRate": {
                                          "type": "number",
                                          "example": 2,
                                          "description": "Percentage fee charged on the event amount."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.25,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        }
                                      },
                                      "description": "Fee applied to each card-not-present authorization."
                                    },
                                    "ccCnpVoid": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        },
                                        "reverseFixed": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                        },
                                        "reverseDiscountRate": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                        }
                                      },
                                      "description": "Fee applied to each card-not-present void."
                                    },
                                    "ccCnpRefund": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.75,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        },
                                        "reverseFixed": {
                                          "type": "boolean",
                                          "example": false,
                                          "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                        },
                                        "reverseDiscountRate": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                        }
                                      },
                                      "description": "Fee applied to each card-not-present refund."
                                    },
                                    "ccCnpCredit": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.75,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        },
                                        "reverseFixed": {
                                          "type": "boolean",
                                          "example": false,
                                          "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                        },
                                        "reverseDiscountRate": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                        }
                                      },
                                      "description": "Fee applied to each card-not-present credit."
                                    },
                                    "ccCnpReversal": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.75,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        },
                                        "reverseFixed": {
                                          "type": "boolean",
                                          "example": false,
                                          "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                        },
                                        "reverseDiscountRate": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                        }
                                      },
                                      "description": "Fee applied to each card-not-present reversal."
                                    },
                                    "ccCnpChargeback": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 25,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        }
                                      },
                                      "description": "Fee applied to each chargeback."
                                    },
                                    "ccCnpAvsOnly": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        }
                                      },
                                      "description": "Fee applied to each AVS-only verification."
                                    },
                                    "ccCnpDeclined": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.5,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        }
                                      },
                                      "description": "Fee applied to each declined card-not-present attempt."
                                    },
                                    "checkSale": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "discountRate": {
                                          "type": "number",
                                          "example": 2.9,
                                          "description": "Percentage fee charged on the event amount."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.3,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        }
                                      },
                                      "description": "Fee applied to each eCheck sale."
                                    },
                                    "checkVerification": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "discountRate": {
                                          "type": "number",
                                          "example": 0,
                                          "description": "Percentage fee charged on the event amount."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        }
                                      },
                                      "description": "Fee applied to each eCheck verification."
                                    },
                                    "checkVoid": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        },
                                        "reverseFixed": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                        },
                                        "reverseDiscountRate": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                        }
                                      },
                                      "description": "Fee applied to each eCheck void."
                                    },
                                    "checkRefund": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.75,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        },
                                        "reverseFixed": {
                                          "type": "boolean",
                                          "example": false,
                                          "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                        },
                                        "reverseDiscountRate": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                        }
                                      },
                                      "description": "Fee applied to each eCheck refund."
                                    },
                                    "checkCredit": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.75,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        },
                                        "reverseFixed": {
                                          "type": "boolean",
                                          "example": false,
                                          "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                        },
                                        "reverseDiscountRate": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                        }
                                      },
                                      "description": "Fee applied to each eCheck credit."
                                    },
                                    "checkReversal": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.75,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        },
                                        "reverseFixed": {
                                          "type": "boolean",
                                          "example": false,
                                          "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                        },
                                        "reverseDiscountRate": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                        }
                                      },
                                      "description": "Fee applied to each eCheck reversal."
                                    }
                                  },
                                  "description": "Event-based fees, one entry per transaction event type."
                                },
                                "perPeriod": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "period": {
                                        "type": "string",
                                        "example": "daily",
                                        "enum": [
                                          "today",
                                          "yesterday",
                                          "last-7-days",
                                          "this-month",
                                          "this-year",
                                          "last-6-months",
                                          "one-time",
                                          "daily",
                                          "weekly",
                                          "monthly",
                                          "quarterly",
                                          "per-semester",
                                          "annually"
                                        ],
                                        "description": "Billing period for this recurring fee."
                                      },
                                      "fixed": {
                                        "type": "number",
                                        "example": 3,
                                        "description": "Fixed fee amount charged each time this event occurs."
                                      },
                                      "since": {
                                        "type": "string",
                                        "format": "date-time",
                                        "example": "2025-08-01T03:00:00.000Z",
                                        "description": "Start of the window during which this fee applies (ISO 8601)."
                                      },
                                      "until": {
                                        "type": "string",
                                        "format": "date-time",
                                        "example": "2025-08-23T03:00:00.000Z",
                                        "description": "End of the window during which this fee applies (ISO 8601)."
                                      },
                                      "status": {
                                        "type": "string",
                                        "example": "enabled",
                                        "description": "Whether this recurring fee is currently active."
                                      },
                                      "isTriggerFirstTx": {
                                        "type": "boolean",
                                        "example": false,
                                        "description": "When true, the recurring fee starts only after the merchant processes their first transaction."
                                      },
                                      "isProrated": {
                                        "type": "boolean",
                                        "example": true,
                                        "description": "Whether the first billing period is prorated."
                                      }
                                    }
                                  },
                                  "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                                }
                              },
                              "description": "Fee configuration at the platform level."
                            },
                            "spProduct": {
                              "type": "object",
                              "properties": {
                                "interchange": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether this setting is enabled."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Interchange pass-through fee settings."
                                },
                                "perTransaction": {
                                  "type": "object",
                                  "properties": {
                                    "ccCnpSale": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "discountRate": {
                                          "type": "number",
                                          "example": 2,
                                          "description": "Percentage fee charged on the event amount."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.3,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        }
                                      },
                                      "description": "Fee applied to each card-not-present sale."
                                    },
                                    "ccCnpCapture": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "discountRate": {
                                          "type": "number",
                                          "example": 2,
                                          "description": "Percentage fee charged on the event amount."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.3,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        }
                                      },
                                      "description": "Fee applied to each card-not-present capture."
                                    },
                                    "ccCnpAuth": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "discountRate": {
                                          "type": "number",
                                          "example": 2,
                                          "description": "Percentage fee charged on the event amount."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.25,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        }
                                      },
                                      "description": "Fee applied to each card-not-present authorization."
                                    },
                                    "ccCnpVoid": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        },
                                        "reverseFixed": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                        },
                                        "reverseDiscountRate": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                        }
                                      },
                                      "description": "Fee applied to each card-not-present void."
                                    },
                                    "ccCnpRefund": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.75,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        },
                                        "reverseFixed": {
                                          "type": "boolean",
                                          "example": false,
                                          "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                        },
                                        "reverseDiscountRate": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                        }
                                      },
                                      "description": "Fee applied to each card-not-present refund."
                                    },
                                    "ccCnpCredit": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.75,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        },
                                        "reverseFixed": {
                                          "type": "boolean",
                                          "example": false,
                                          "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                        },
                                        "reverseDiscountRate": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                        }
                                      },
                                      "description": "Fee applied to each card-not-present credit."
                                    },
                                    "ccCnpReversal": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.75,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        },
                                        "reverseFixed": {
                                          "type": "boolean",
                                          "example": false,
                                          "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                        },
                                        "reverseDiscountRate": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                        }
                                      },
                                      "description": "Fee applied to each card-not-present reversal."
                                    },
                                    "ccCnpChargeback": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 25,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        }
                                      },
                                      "description": "Fee applied to each chargeback."
                                    },
                                    "ccCnpAvsOnly": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        }
                                      },
                                      "description": "Fee applied to each AVS-only verification."
                                    },
                                    "ccCnpDeclined": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.5,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        }
                                      },
                                      "description": "Fee applied to each declined card-not-present attempt."
                                    },
                                    "checkSale": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "discountRate": {
                                          "type": "number",
                                          "example": 2.9,
                                          "description": "Percentage fee charged on the event amount."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.3,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        }
                                      },
                                      "description": "Fee applied to each eCheck sale."
                                    },
                                    "checkVerification": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "discountRate": {
                                          "type": "number",
                                          "example": 0,
                                          "description": "Percentage fee charged on the event amount."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        }
                                      },
                                      "description": "Fee applied to each eCheck verification."
                                    },
                                    "checkVoid": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        },
                                        "reverseFixed": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                        },
                                        "reverseDiscountRate": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                        }
                                      },
                                      "description": "Fee applied to each eCheck void."
                                    },
                                    "checkRefund": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.75,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        },
                                        "reverseFixed": {
                                          "type": "boolean",
                                          "example": false,
                                          "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                        },
                                        "reverseDiscountRate": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                        }
                                      },
                                      "description": "Fee applied to each eCheck refund."
                                    },
                                    "checkCredit": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.75,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        },
                                        "reverseFixed": {
                                          "type": "boolean",
                                          "example": false,
                                          "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                        },
                                        "reverseDiscountRate": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                        }
                                      },
                                      "description": "Fee applied to each eCheck credit."
                                    },
                                    "checkReversal": {
                                      "type": "object",
                                      "properties": {
                                        "billTo": {
                                          "type": "string",
                                          "enum": [
                                            "spProduct",
                                            "submerchant"
                                          ],
                                          "example": "spProduct",
                                          "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                        },
                                        "fixed": {
                                          "type": "number",
                                          "example": 0.75,
                                          "description": "Fixed fee amount charged each time this event occurs."
                                        },
                                        "reverseFixed": {
                                          "type": "boolean",
                                          "example": false,
                                          "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                        },
                                        "reverseDiscountRate": {
                                          "type": "boolean",
                                          "example": true,
                                          "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                        }
                                      },
                                      "description": "Fee applied to each eCheck reversal."
                                    }
                                  },
                                  "description": "Event-based fees, one entry per transaction event type."
                                },
                                "perPeriod": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "period": {
                                        "type": "string",
                                        "example": "daily",
                                        "enum": [
                                          "today",
                                          "yesterday",
                                          "last-7-days",
                                          "this-month",
                                          "this-year",
                                          "last-6-months",
                                          "one-time",
                                          "daily",
                                          "weekly",
                                          "monthly",
                                          "quarterly",
                                          "per-semester",
                                          "annually"
                                        ],
                                        "description": "Billing period for this recurring fee."
                                      },
                                      "fixed": {
                                        "type": "number",
                                        "example": 3,
                                        "description": "Fixed fee amount charged each time this event occurs."
                                      },
                                      "since": {
                                        "type": "string",
                                        "format": "date-time",
                                        "example": "2025-08-01T03:00:00.000Z",
                                        "description": "Start of the window during which this fee applies (ISO 8601)."
                                      },
                                      "until": {
                                        "type": "string",
                                        "format": "date-time",
                                        "example": "2025-08-23T03:00:00.000Z",
                                        "description": "End of the window during which this fee applies (ISO 8601)."
                                      },
                                      "status": {
                                        "type": "string",
                                        "example": "enabled",
                                        "description": "Whether this recurring fee is currently active."
                                      },
                                      "isTriggerFirstTx": {
                                        "type": "boolean",
                                        "example": false,
                                        "description": "When true, the recurring fee starts only after the merchant processes their first transaction."
                                      },
                                      "isProrated": {
                                        "type": "boolean",
                                        "example": true,
                                        "description": "Whether the first billing period is prorated."
                                      }
                                    }
                                  },
                                  "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                                }
                              },
                              "description": "Fee configuration at the Service Provider product level."
                            }
                          }
                        },
                        "onboardingFlowTemplateId": {
                          "type": "string",
                          "description": "UUID of the onboarding flow template to be used for the onboarding experience.",
                          "example": ""
                        }
                      }
                    },
                    "description": "Invites to create. Each entry follows the create-invite schema."
                  },
                  "dryRun": {
                    "type": "boolean",
                    "description": "A flag indicating whether the operation should be run in dry run mode (true) or not (false)."
                  }
                },
                "example": {
                  "invites": [
                    {
                      "name": "Tech",
                      "email": "test@gmail.com",
                      "phoneNumber": "2995318324",
                      "reference": "1234",
                      "identity": {
                        "owners": [
                          {
                            "title": "Mr.",
                            "firstName": "jonny",
                            "middleName": "eric",
                            "lastName": "dooei",
                            "birthDate": "2000-08-01",
                            "phoneNumber": "2232322323",
                            "streetNum": "79",
                            "streetName": "clarks",
                            "city": "ny",
                            "state": "NY",
                            "postalCode": "23434",
                            "ssn": "123123123",
                            "ownershipPercentage": 100,
                            "email": "mail_m@asd.com"
                          }
                        ]
                      }
                    },
                    {
                      "name": "Tech2",
                      "email": "test2@gmail.com",
                      "phoneNumber": "2995318325",
                      "reference": "1235",
                      "identity": {
                        "business": {
                          "legalName": "testInvite",
                          "dbaName": "testDBAInvite",
                          "federalTaxId": "999999999",
                          "tinType": "SSN",
                          "phoneNumber": "2232322323",
                          "address": {
                            "streetNum": "123",
                            "streetName": "main street",
                            "city": "ny",
                            "state": "NY",
                            "postalCode": "22222"
                          },
                          "websiteUrl": "https://www.sarasa.com",
                          "ownershipType": "SoleProprietorship",
                          "businessEstablishedDate": "2023-11-02",
                          "expectedMonthlyVolume": 200
                        }
                      }
                    }
                  ],
                  "payoutBankAccounts": [
                    {
                      "accountRouting": "123123122",
                      "accountNumber": "8789545642",
                      "accountType": "checking",
                      "nameOnAccount": "Updatedjonnydooeiacc"
                    }
                  ],
                  "dryRun": true
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/createManyOnboardingInvites"
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/onboardinginvites/addsubmerchant": {
      "post": {
        "tags": [
          "Onboarding Invites"
        ],
        "summary": "Create an additional-MID invite",
        "description": "Creates an invite that adds a new submerchant for an existing applicant — an additional MID request. Optionally scope the invite to an existing application with `invitedToSmAppId`.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "spProductId": {
                    "type": "string",
                    "example": "255",
                    "description": "The Service provider product reference.",
                    "maxLength": 100
                  },
                  "reference": {
                    "type": "string",
                    "example": "Reference 123",
                    "description": "The invite reference.",
                    "maxLength": 100
                  },
                  "applicantId": {
                    "type": "string",
                    "example": "682e0ef81da12ab7229dbf64",
                    "description": "The aplicant reference"
                  },
                  "invitedToSmAppId": {
                    "type": "string",
                    "example": "682e176bbee4495f337a0464",
                    "description": "Application reference to filter in the invite"
                  },
                  "identity": {
                    "type": "object",
                    "properties": {
                      "owners": {
                        "$ref": "#/components/schemas/Owner"
                      },
                      "business": {
                        "$ref": "#/components/schemas/Business"
                      },
                      "contact": {
                        "$ref": "#/components/schemas/Contact"
                      }
                    },
                    "description": "The identity object containing data about the business and its representatives"
                  },
                  "payoutBankAccounts": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "accountRouting": {
                          "type": "string",
                          "example": "123123122",
                          "maxLength": 9,
                          "description": "9-digit ABA routing number."
                        },
                        "accountNumber": {
                          "type": "string",
                          "example": "8789545642",
                          "minLength": 6,
                          "maxLength": 17,
                          "description": "Bank account number."
                        },
                        "accountType": {
                          "type": "string",
                          "enum": [
                            "checking"
                          ],
                          "example": "checking",
                          "maxLength": 20,
                          "description": "Bank account type, such as `checking`."
                        },
                        "nameOnAccount": {
                          "type": "string",
                          "example": "Updatedjonnydooeiacc",
                          "maxLength": 50,
                          "description": "Name on the bank account."
                        }
                      }
                    },
                    "description": "Bank accounts where the merchant receives payouts."
                  },
                  "feesTemplateId": {
                    "description": "UUID of the fees template with predefined fees. If no value is passed, the id of the default template will be used.",
                    "type": "string",
                    "example": ""
                  },
                  "fees": {
                    "description": "The fees object will overwrite the values set on the fees template, as specified by the feesTemplateId. This allows for customization of fees at the invite overriding any defaults defined in the template.",
                    "type": "object",
                    "properties": {
                      "platform": {
                        "type": "object",
                        "properties": {
                          "interchange": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              },
                              "billTo": {
                                "type": "string",
                                "enum": [
                                  "spProduct",
                                  "submerchant"
                                ],
                                "example": "spProduct",
                                "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                              }
                            },
                            "description": "Interchange pass-through fee settings."
                          },
                          "perTransaction": {
                            "type": "object",
                            "properties": {
                              "ccCnpSale": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present sale."
                              },
                              "ccCnpCapture": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present capture."
                              },
                              "ccCnpAuth": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.25,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present authorization."
                              },
                              "ccCnpVoid": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present void."
                              },
                              "ccCnpRefund": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present refund."
                              },
                              "ccCnpCredit": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present credit."
                              },
                              "ccCnpReversal": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present reversal."
                              },
                              "ccCnpChargeback": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 25,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each chargeback."
                              },
                              "ccCnpAvsOnly": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each AVS-only verification."
                              },
                              "ccCnpDeclined": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.5,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each declined card-not-present attempt."
                              },
                              "checkSale": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2.9,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each eCheck sale."
                              },
                              "checkVerification": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each eCheck verification."
                              },
                              "checkVoid": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck void."
                              },
                              "checkRefund": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck refund."
                              },
                              "checkCredit": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck credit."
                              },
                              "checkReversal": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck reversal."
                              }
                            },
                            "description": "Event-based fees, one entry per transaction event type."
                          },
                          "perPeriod": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "period": {
                                  "type": "string",
                                  "example": "daily",
                                  "enum": [
                                    "today",
                                    "yesterday",
                                    "last-7-days",
                                    "this-month",
                                    "this-year",
                                    "last-6-months",
                                    "one-time",
                                    "daily",
                                    "weekly",
                                    "monthly",
                                    "quarterly",
                                    "per-semester",
                                    "annually"
                                  ],
                                  "description": "Billing period for this recurring fee."
                                },
                                "fixed": {
                                  "type": "number",
                                  "example": 3,
                                  "description": "Fixed fee amount charged each time this event occurs."
                                },
                                "since": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2025-08-01T03:00:00.000Z",
                                  "description": "Start of the window during which this fee applies (ISO 8601)."
                                },
                                "until": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2025-08-23T03:00:00.000Z",
                                  "description": "End of the window during which this fee applies (ISO 8601)."
                                },
                                "status": {
                                  "type": "string",
                                  "example": "enabled",
                                  "description": "Whether this recurring fee is currently active."
                                },
                                "isTriggerFirstTx": {
                                  "type": "boolean",
                                  "example": false,
                                  "description": "When true, the recurring fee starts only after the merchant processes their first transaction."
                                },
                                "isProrated": {
                                  "type": "boolean",
                                  "example": true,
                                  "description": "Whether the first billing period is prorated."
                                }
                              }
                            },
                            "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                          }
                        },
                        "description": "Fee configuration at the platform level."
                      },
                      "spProduct": {
                        "type": "object",
                        "properties": {
                          "interchange": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              },
                              "billTo": {
                                "type": "string",
                                "example": "submerchant",
                                "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                              }
                            },
                            "description": "Interchange pass-through fee settings."
                          },
                          "perTransaction": {
                            "type": "object",
                            "properties": {
                              "ccCnpSale": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present sale."
                              },
                              "ccCnpCapture": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present capture."
                              },
                              "ccCnpAuth": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.25,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present authorization."
                              },
                              "ccCnpVoid": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present void."
                              },
                              "ccCnpRefund": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present refund."
                              },
                              "ccCnpCredit": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present credit."
                              },
                              "ccCnpReversal": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present reversal."
                              },
                              "ccCnpChargeback": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 25,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each chargeback."
                              },
                              "ccCnpAvsOnly": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each AVS-only verification."
                              },
                              "ccCnpDeclined": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.5,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each declined card-not-present attempt."
                              },
                              "checkSale": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2.9,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each eCheck sale."
                              },
                              "checkVerification": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each eCheck verification."
                              },
                              "checkVoid": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck void."
                              },
                              "checkRefund": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck refund."
                              },
                              "checkCredit": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck credit."
                              },
                              "checkReversal": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck reversal."
                              }
                            },
                            "description": "Event-based fees, one entry per transaction event type."
                          },
                          "perPeriod": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "period": {
                                  "type": "string",
                                  "example": "daily",
                                  "enum": [
                                    "today",
                                    "yesterday",
                                    "last-7-days",
                                    "this-month",
                                    "this-year",
                                    "last-6-months",
                                    "one-time",
                                    "daily",
                                    "weekly",
                                    "monthly",
                                    "quarterly",
                                    "per-semester",
                                    "annually"
                                  ],
                                  "description": "Billing period for this recurring fee."
                                },
                                "fixed": {
                                  "type": "number",
                                  "example": 3,
                                  "description": "Fixed fee amount charged each time this event occurs."
                                },
                                "since": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2025-08-01T03:00:00.000Z",
                                  "description": "Start of the window during which this fee applies (ISO 8601)."
                                },
                                "until": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2025-08-23T03:00:00.000Z",
                                  "description": "End of the window during which this fee applies (ISO 8601)."
                                },
                                "status": {
                                  "type": "string",
                                  "example": "enabled",
                                  "description": "Whether this recurring fee is currently active."
                                },
                                "isTriggerFirstTx": {
                                  "type": "boolean",
                                  "example": false,
                                  "description": "When true, the recurring fee starts only after the merchant processes their first transaction."
                                },
                                "isProrated": {
                                  "type": "boolean",
                                  "example": true,
                                  "description": "Whether the first billing period is prorated."
                                }
                              }
                            },
                            "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                          }
                        },
                        "description": "Fee configuration at the Service Provider product level."
                      }
                    }
                  },
                  "onboardingFlowTemplateId": {
                    "type": "string",
                    "description": "UUID of the onboarding flow template to be used for the onboarding experience.",
                    "example": ""
                  }
                },
                "example": {
                  "spProductId": "255",
                  "reference": "1234",
                  "applicantId": "256cb1d53111090100000123",
                  "invitedToSmAppId": "643ef0424e44b4f361999487",
                  "identity": {
                    "owners": [
                      {
                        "title": "Mr.",
                        "firstName": "jonny",
                        "middleName": "eric",
                        "lastName": "dooei",
                        "birthDate": "2000-08-01",
                        "phoneNumber": "2232322323",
                        "streetNum": "79",
                        "streetName": "clarks",
                        "city": "ny",
                        "state": "NY",
                        "postalCode": "23434",
                        "ssn": "123123123",
                        "ownershipPercentage": 100,
                        "email": "mail_m@asd.com"
                      }
                    ]
                  }
                },
                "required": [
                  "name",
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/createOnboardingInvite"
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/onboardinginvites/update": {
      "post": {
        "tags": [
          "Onboarding Invites"
        ],
        "summary": "Update an invite",
        "description": "Updates the details of an existing invite, such as the invitee's contact information or reference.",
        "requestBody": {
          "description": "***create an onboarding invite first and get the inviteId***",
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "inviteId": {
                    "type": "string",
                    "description": "The invite ID associated with the invite."
                  },
                  "name": {
                    "type": "string",
                    "description": "The name of the individual or entity being invited.",
                    "example": "Updated"
                  },
                  "reference": {
                    "type": "string",
                    "description": "A reference identifier for the invite.",
                    "example": "12322"
                  },
                  "identity": {
                    "type": "object",
                    "properties": {
                      "owners": {
                        "$ref": "#/components/schemas/Owner"
                      },
                      "business": {
                        "$ref": "#/components/schemas/Business"
                      },
                      "contact": {
                        "$ref": "#/components/schemas/Contact"
                      }
                    },
                    "description": "The identity object containing data about the business and its representatives"
                  },
                  "payoutBankAccounts": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "accountRouting": {
                          "type": "string",
                          "example": "123123122",
                          "description": "9-digit ABA routing number."
                        },
                        "accountNumber": {
                          "type": "string",
                          "example": "8789545642",
                          "description": "Bank account number."
                        },
                        "accountType": {
                          "type": "string",
                          "enum": [
                            "checking"
                          ],
                          "example": "checking",
                          "description": "Bank account type, such as `checking`."
                        },
                        "nameOnAccount": {
                          "type": "string",
                          "example": "Updatedjonnydooeiacc",
                          "description": "Name on the bank account."
                        }
                      }
                    },
                    "description": "Bank accounts where the merchant receives payouts."
                  },
                  "feesTemplateId": {
                    "description": "UUID of the fees template with predefined fees. If no value is passed, the id of the default template will be used.",
                    "type": "string"
                  },
                  "fees": {
                    "description": "The fees object will overwrite the values set on the fees template, as specified by the feesTemplateId. This allows for customization of fees at the invite overriding any defaults defined in the template.",
                    "type": "object",
                    "properties": {
                      "platform": {
                        "type": "object",
                        "properties": {
                          "interchange": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              },
                              "billTo": {
                                "type": "string",
                                "enum": [
                                  "spProduct",
                                  "submerchant"
                                ],
                                "example": "spProduct",
                                "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                              }
                            },
                            "description": "Interchange pass-through fee settings."
                          },
                          "perTransaction": {
                            "type": "object",
                            "properties": {
                              "ccCnpSale": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present sale."
                              },
                              "ccCnpCapture": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present capture."
                              },
                              "ccCnpAuth": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.25,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present authorization."
                              },
                              "ccCnpVoid": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present void."
                              },
                              "ccCnpRefund": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present refund."
                              },
                              "ccCnpCredit": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present credit."
                              },
                              "ccCnpReversal": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present reversal."
                              },
                              "ccCnpChargeback": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 25,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each chargeback."
                              },
                              "ccCnpAvsOnly": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each AVS-only verification."
                              },
                              "ccCnpDeclined": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.5,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each declined card-not-present attempt."
                              },
                              "checkSale": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2.9,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each eCheck sale."
                              },
                              "checkVerification": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each eCheck verification."
                              },
                              "checkVoid": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck void."
                              },
                              "checkRefund": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck refund."
                              },
                              "checkCredit": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck credit."
                              },
                              "checkReversal": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck reversal."
                              }
                            },
                            "description": "Event-based fees, one entry per transaction event type."
                          },
                          "perPeriod": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "period": {
                                  "type": "string",
                                  "example": "daily",
                                  "enum": [
                                    "today",
                                    "yesterday",
                                    "last-7-days",
                                    "this-month",
                                    "this-year",
                                    "last-6-months",
                                    "one-time",
                                    "daily",
                                    "weekly",
                                    "monthly",
                                    "quarterly",
                                    "per-semester",
                                    "annually"
                                  ],
                                  "description": "Billing period for this recurring fee."
                                },
                                "fixed": {
                                  "type": "number",
                                  "example": 3,
                                  "description": "Fixed fee amount charged each time this event occurs."
                                },
                                "since": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2025-08-01T03:00:00.000Z",
                                  "description": "Start of the window during which this fee applies (ISO 8601)."
                                },
                                "until": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2025-08-23T03:00:00.000Z",
                                  "description": "End of the window during which this fee applies (ISO 8601)."
                                },
                                "status": {
                                  "type": "string",
                                  "example": "enabled",
                                  "description": "Whether this recurring fee is currently active."
                                },
                                "isTriggerFirstTx": {
                                  "type": "boolean",
                                  "example": false,
                                  "description": "When true, the recurring fee starts only after the merchant processes their first transaction."
                                },
                                "isProrated": {
                                  "type": "boolean",
                                  "example": true,
                                  "description": "Whether the first billing period is prorated."
                                }
                              }
                            },
                            "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                          }
                        },
                        "description": "Fee configuration at the platform level."
                      },
                      "spProduct": {
                        "type": "object",
                        "properties": {
                          "interchange": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              },
                              "billTo": {
                                "type": "string",
                                "example": "submerchant",
                                "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                              }
                            },
                            "description": "Interchange pass-through fee settings."
                          },
                          "perTransaction": {
                            "type": "object",
                            "properties": {
                              "ccCnpSale": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present sale."
                              },
                              "ccCnpCapture": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present capture."
                              },
                              "ccCnpAuth": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.25,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each card-not-present authorization."
                              },
                              "ccCnpVoid": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present void."
                              },
                              "ccCnpRefund": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present refund."
                              },
                              "ccCnpCredit": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present credit."
                              },
                              "ccCnpReversal": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each card-not-present reversal."
                              },
                              "ccCnpChargeback": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 25,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each chargeback."
                              },
                              "ccCnpAvsOnly": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each AVS-only verification."
                              },
                              "ccCnpDeclined": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.5,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each declined card-not-present attempt."
                              },
                              "checkSale": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 2.9,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.3,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each eCheck sale."
                              },
                              "checkVerification": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "discountRate": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Percentage fee charged on the event amount."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  }
                                },
                                "description": "Fee applied to each eCheck verification."
                              },
                              "checkVoid": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck void."
                              },
                              "checkRefund": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck refund."
                              },
                              "checkCredit": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck credit."
                              },
                              "checkReversal": {
                                "type": "object",
                                "properties": {
                                  "billTo": {
                                    "type": "string",
                                    "enum": [
                                      "spProduct",
                                      "submerchant"
                                    ],
                                    "example": "spProduct",
                                    "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                  },
                                  "fixed": {
                                    "type": "number",
                                    "example": 0.75,
                                    "description": "Fixed fee amount charged each time this event occurs."
                                  },
                                  "reverseFixed": {
                                    "type": "boolean",
                                    "example": false,
                                    "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                  },
                                  "reverseDiscountRate": {
                                    "type": "boolean",
                                    "example": true,
                                    "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                  }
                                },
                                "description": "Fee applied to each eCheck reversal."
                              }
                            },
                            "description": "Event-based fees, one entry per transaction event type."
                          },
                          "perPeriod": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "period": {
                                  "type": "string",
                                  "example": "daily",
                                  "enum": [
                                    "today",
                                    "yesterday",
                                    "last-7-days",
                                    "this-month",
                                    "this-year",
                                    "last-6-months",
                                    "one-time",
                                    "daily",
                                    "weekly",
                                    "monthly",
                                    "quarterly",
                                    "per-semester",
                                    "annually"
                                  ],
                                  "description": "Billing period for this recurring fee."
                                },
                                "fixed": {
                                  "type": "number",
                                  "example": 3,
                                  "description": "Fixed fee amount charged each time this event occurs."
                                },
                                "since": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2025-08-01T03:00:00.000Z",
                                  "description": "Start of the window during which this fee applies (ISO 8601)."
                                },
                                "until": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2025-08-23T03:00:00.000Z",
                                  "description": "End of the window during which this fee applies (ISO 8601)."
                                },
                                "status": {
                                  "type": "string",
                                  "example": "enabled",
                                  "description": "Whether this recurring fee is currently active."
                                },
                                "isTriggerFirstTx": {
                                  "type": "boolean",
                                  "example": false,
                                  "description": "When true, the recurring fee starts only after the merchant processes their first transaction."
                                },
                                "isProrated": {
                                  "type": "boolean",
                                  "example": true,
                                  "description": "Whether the first billing period is prorated."
                                }
                              }
                            },
                            "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                          }
                        },
                        "description": "Fee configuration at the Service Provider product level."
                      }
                    }
                  },
                  "onboardingFlowTemplateId": {
                    "type": "string",
                    "description": "UUID of the onboarding flow template to be used for the onboarding experience.",
                    "example": ""
                  }
                },
                "example": {
                  "inviteId": "",
                  "name": "Updated",
                  "reference": "12322",
                  "identity": {
                    "business": {
                      "legalName": "UpdatedtestInvite",
                      "dbaName": "UpdatedtestDBAInvite",
                      "federalTaxId": "999999992",
                      "tinType": "SSN",
                      "phoneNumber": "2232322322",
                      "address": {
                        "streetNum": "1232",
                        "streetName": "Updated main street",
                        "city": "Updated ny",
                        "state": "AZ",
                        "postalCode": "22229"
                      },
                      "websiteUrl": "https://www.Updatedsarasa.com",
                      "ownershipType": "LLC",
                      "businessEstablishedDate": "2023-11-22",
                      "expectedMonthlyVolume": 2002
                    },
                    "owners": [
                      {
                        "title": "Ms.",
                        "firstName": "Updated jonny",
                        "middleName": "eric Updated",
                        "lastName": "dooeiUpdated",
                        "birthDate": "2000-08-22",
                        "phoneNumber": "2232322322",
                        "streetNum": "792",
                        "streetName": "Updated clarks",
                        "city": "Updatedny",
                        "state": "AZ",
                        "postalCode": "23432",
                        "ssn": "123123122",
                        "ownershipPercentage": 92,
                        "email": "mail_m@Updatedasd.com",
                        "position": "OW"
                      }
                    ]
                  },
                  "payoutBankAccounts": [
                    {
                      "accountRouting": "123123122",
                      "accountNumber": "8789545642",
                      "accountType": "checking",
                      "nameOnAccount": "Updatedjonnydooeiacc"
                    }
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/updateOnboardingInvite"
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/onboardinginvites/delete": {
      "post": {
        "tags": [
          "Onboarding Invites"
        ],
        "summary": "Cancel an invite",
        "description": "Cancels an onboarding invite. The invite link can no longer be used to onboard.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "inviteId": {
                    "type": "string",
                    "example": "c23b205a-244b-4962-9337-a5b68f1c874f",
                    "description": "The inviteId of the onboarding invite."
                  }
                },
                "required": [
                  "inviteId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/cancelOnboardingInvite"
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/provisioning/applicant": {
      "post": {
        "tags": [
          "Provisioning"
        ],
        "summary": "Create an applicant",
        "description": "Creates an applicant — the individual who owns the merchant application. This is the first step in the provisioning chain: applicant → application → submerchant.",
        "operationId": "createApplicant",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fullname",
                  "mobileNumber",
                  "email"
                ],
                "properties": {
                  "fullname": {
                    "type": "string",
                    "maxLength": 75,
                    "description": "Full name of the applicant",
                    "example": "John Smith"
                  },
                  "mobileNumber": {
                    "type": "string",
                    "maxLength": 15,
                    "description": "Mobile number (numeric only)",
                    "example": "1234567890"
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 75,
                    "format": "email",
                    "description": "Email address of the applicant",
                    "example": "john.smith@example.com"
                  },
                  "spProductId": {
                    "type": "string",
                    "maxLength": 4,
                    "description": "Service provider product ID",
                    "example": "255"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "201": {
            "description": "Applicant created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "description": "Machine-readable result code. See the Error Codes reference."
                    },
                    "success": {
                      "type": "boolean",
                      "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable result message."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "applicantId": {
                          "type": "string",
                          "description": "Unique identifier for the applicant"
                        },
                        "username": {
                          "type": "string",
                          "description": "Generated username for the applicant"
                        }
                      },
                      "description": "The response payload."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/provisioning/application": {
      "post": {
        "tags": [
          "Provisioning"
        ],
        "summary": "Create an application",
        "description": "Creates a merchant application linked to an applicant. The application carries the entity type and ownership details used in underwriting.",
        "operationId": "createApplication",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "applicantId",
                  "identity"
                ],
                "properties": {
                  "applicantId": {
                    "type": "string",
                    "description": "Must be exactly 24 characters",
                    "example": "507f1f77bcf86cd799439011"
                  },
                  "spProductId": {
                    "type": "string",
                    "maxLength": 4,
                    "description": "Service provider product ID",
                    "example": "255"
                  },
                  "identity": {
                    "type": "object",
                    "required": [
                      "type"
                    ],
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "individual",
                          "business",
                          "government-public-corp"
                        ],
                        "example": "individual",
                        "description": "Entity type of the business."
                      },
                      "owners": {
                        "type": "array",
                        "description": "Required if type is individual or business",
                        "items": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string",
                              "enum": [
                                "Mr.",
                                "Ms.",
                                "Mrs."
                              ],
                              "example": "Mr.",
                              "description": "Salutation of the owner (`Mr.`, `Ms.`, `Mrs.`)."
                            },
                            "firstName": {
                              "type": "string",
                              "maxLength": 24,
                              "example": "John",
                              "description": "First name."
                            },
                            "middleName": {
                              "type": "string",
                              "maxLength": 24,
                              "example": "Michael",
                              "description": "Middle name."
                            },
                            "lastName": {
                              "type": "string",
                              "maxLength": 24,
                              "example": "Smith",
                              "description": "Last name."
                            },
                            "birthDate": {
                              "type": "string",
                              "format": "date",
                              "example": "1990-05-15",
                              "description": "Date of birth (YYYY-MM-DD)."
                            },
                            "phoneNumber": {
                              "type": "string",
                              "maxLength": 15,
                              "example": "1234567890",
                              "description": "Phone number of the owner."
                            },
                            "streetNum": {
                              "type": "string",
                              "maxLength": 9,
                              "example": "123",
                              "description": "Street number."
                            },
                            "streetName": {
                              "type": "string",
                              "maxLength": 40,
                              "example": "Main Street",
                              "description": "Street name."
                            },
                            "city": {
                              "type": "string",
                              "maxLength": 30,
                              "example": "New York",
                              "description": "City name."
                            },
                            "state": {
                              "type": "string",
                              "description": "US state code",
                              "example": "NY"
                            },
                            "postalCode": {
                              "type": "string",
                              "maxLength": 5,
                              "example": "10001",
                              "description": "ZIP or postal code."
                            },
                            "ssn": {
                              "type": "string",
                              "description": "9 digits",
                              "example": "123456789"
                            },
                            "ownershipPercentage": {
                              "type": "integer",
                              "example": 100,
                              "description": "Percentage of the business this owner holds (0-100)."
                            },
                            "email": {
                              "type": "string",
                              "maxLength": 70,
                              "example": "john.smith@example.com",
                              "description": "Email address of the owner."
                            },
                            "position": {
                              "type": "string",
                              "enum": [
                                "OW",
                                "CEO",
                                "CFO",
                                "COO",
                                "PRESIDENT",
                                "VICE PRESIDENT",
                                "DIR",
                                "TR",
                                "SEC",
                                "PA",
                                "MEMBER LLC",
                                "OTH",
                                "SP"
                              ],
                              "example": "SP",
                              "description": "Role of the owner in the business."
                            }
                          }
                        }
                      }
                    },
                    "description": "Identity details for the business and its owners."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "201": {
            "description": "Application created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "description": "Machine-readable result code. See the Error Codes reference."
                    },
                    "success": {
                      "type": "boolean",
                      "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable result message."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "smApplicationId": {
                          "type": "string",
                          "description": "Unique identifier for the application",
                          "example": "507f1f77bcf86cd799439012"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "review",
                            "approved",
                            "rejected"
                          ],
                          "example": "review",
                          "description": "Current status."
                        }
                      },
                      "description": "The response payload."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/provisioning/application/update": {
      "post": {
        "tags": [
          "Provisioning"
        ],
        "summary": "Update an application",
        "description": "Updates an existing application. The application must be in `review` status; once activated, it cannot be modified.",
        "operationId": "updateApplication",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "smApplicationId"
                ],
                "properties": {
                  "smApplicationId": {
                    "type": "string",
                    "description": "Must be exactly 24 characters",
                    "example": "68f7a101547bd249c32b907b"
                  },
                  "identity": {
                    "type": "object",
                    "properties": {
                      "owners": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string",
                              "enum": [
                                "Mr.",
                                "Ms.",
                                "Mrs."
                              ],
                              "example": "Mr.",
                              "description": "Salutation of the owner (`Mr.`, `Ms.`, `Mrs.`)."
                            },
                            "firstName": {
                              "type": "string",
                              "maxLength": 24,
                              "example": "Johns",
                              "description": "First name."
                            },
                            "middleName": {
                              "type": "string",
                              "maxLength": 24,
                              "example": "Michaels",
                              "description": "Middle name."
                            },
                            "lastName": {
                              "type": "string",
                              "maxLength": 24,
                              "example": "Doe",
                              "description": "Last name."
                            },
                            "birthDate": {
                              "type": "string",
                              "format": "date",
                              "example": "1974-06-25",
                              "description": "Date of birth (YYYY-MM-DD)."
                            },
                            "phoneNumber": {
                              "type": "string",
                              "maxLength": 15,
                              "example": "2149244554",
                              "description": "Phone number of the owner."
                            },
                            "streetNum": {
                              "type": "string",
                              "maxLength": 9,
                              "example": "1004",
                              "description": "Street number."
                            },
                            "streetName": {
                              "type": "string",
                              "maxLength": 40,
                              "example": "Main Street Ct",
                              "description": "Street name."
                            },
                            "city": {
                              "type": "string",
                              "maxLength": 30,
                              "example": "McKinney",
                              "description": "City name."
                            },
                            "state": {
                              "type": "string",
                              "description": "US state code",
                              "example": "TX"
                            },
                            "postalCode": {
                              "type": "string",
                              "maxLength": 5,
                              "example": "75070",
                              "description": "ZIP or postal code."
                            },
                            "ssn": {
                              "type": "string",
                              "description": "9 digits",
                              "example": "258267389"
                            },
                            "ownershipPercentage": {
                              "type": "integer",
                              "example": 100,
                              "description": "Percentage of the business this owner holds (0-100)."
                            },
                            "email": {
                              "type": "string",
                              "maxLength": 70,
                              "example": "email@example.com",
                              "description": "Email address of the owner."
                            },
                            "position": {
                              "type": "string",
                              "enum": [
                                "OW",
                                "CEO",
                                "CFO",
                                "COO",
                                "PRESIDENT",
                                "VICE PRESIDENT",
                                "DIR",
                                "TR",
                                "SEC",
                                "PA",
                                "MEMBER LLC",
                                "OTH",
                                "SP"
                              ],
                              "example": "SP",
                              "description": "Role of the owner in the business."
                            },
                            "country": {
                              "type": "string",
                              "example": "US",
                              "description": "Two-letter ISO country code."
                            }
                          }
                        },
                        "description": "Business owners. Required for individual and business entity types."
                      }
                    },
                    "description": "Identity details for the business and its owners."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Application updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "description": "Machine-readable result code. See the Error Codes reference."
                    },
                    "success": {
                      "type": "boolean",
                      "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable result message."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "smApplicationId": {
                          "type": "string",
                          "description": "Unique identifier for the application"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "review",
                            "approved",
                            "rejected"
                          ],
                          "example": "review",
                          "description": "Current status."
                        }
                      },
                      "description": "The response payload."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/provisioning/submerchant": {
      "post": {
        "tags": [
          "Provisioning"
        ],
        "summary": "Create a submerchant",
        "description": "Creates a submerchant linked to an application, with the service selection, business identity, fee configuration, and payout bank accounts. The submerchant is the entity that processes transactions once approved.",
        "operationId": "createSubmerchant",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "smApplicationId",
                  "services",
                  "identity",
                  "payoutBankAccounts"
                ],
                "properties": {
                  "smApplicationId": {
                    "type": "string",
                    "description": "Must be exactly 24 characters",
                    "example": "507f1f77bcf86cd799439012"
                  },
                  "spProductId": {
                    "type": "string",
                    "maxLength": 4,
                    "description": "Service provider product ID",
                    "example": "SP01"
                  },
                  "services": {
                    "type": "object",
                    "required": [
                      "card",
                      "ach"
                    ],
                    "properties": {
                      "card": {
                        "type": "object",
                        "required": [
                          "enabled"
                        ],
                        "properties": {
                          "enabled": {
                            "type": "boolean",
                            "example": true,
                            "description": "Whether the merchant is applying to process card payments, both credit and debit."
                          }
                        },
                        "description": "Card processing."
                      },
                      "ach": {
                        "type": "object",
                        "required": [
                          "enabled"
                        ],
                        "properties": {
                          "enabled": {
                            "type": "boolean",
                            "example": false,
                            "description": "Whether the merchant is applying to process ACH (eCheck) payments."
                          }
                        },
                        "description": "ACH (eCheck) processing."
                      }
                    },
                    "description": "The services this merchant is applying to process. Enable at least one.\n\nSend both `card` and `ach` on every request, using `enabled: false` for a service the merchant is not applying for.\n\nEach service you enable must also be enabled on the service provider product identified by `spProductId`. Enabling a service the product does not offer is rejected with `provisioning_service_not_available`, and enabling neither service is rejected with `provisioning_no_service_selected`."
                  },
                  "identity": {
                    "type": "object",
                    "properties": {
                      "business": {
                        "type": "object",
                        "required": [
                          "dbaName",
                          "federalTaxId",
                          "tinType",
                          "phoneNumber",
                          "address",
                          "websiteUrl",
                          "ownershipType",
                          "businessEstablishedDate",
                          "expectedMonthlyVolume",
                          "mccCode"
                        ],
                        "properties": {
                          "legalName": {
                            "type": "string",
                            "maxLength": 150,
                            "example": "Smith Enterprises LLC",
                            "description": "Registered legal name of the business."
                          },
                          "dbaName": {
                            "type": "string",
                            "maxLength": 100,
                            "example": "Smith's Store",
                            "description": "The merchant’s doing-business-as name. This value appears on the cardholder’s statement if no billing descriptor is provided."
                          },
                          "billingDescriptor": {
                            "type": "string",
                            "maxLength": 25,
                            "example": "SMITHS STORE",
                            "description": "The text that appears on the cardholder’s statement, overriding the default business name."
                          },
                          "federalTaxId": {
                            "type": "string",
                            "description": "9 digits",
                            "example": "123456789"
                          },
                          "tinType": {
                            "type": "string",
                            "enum": [
                              "SSN",
                              "EIN",
                              "OTHER"
                            ],
                            "example": "EIN",
                            "description": "Type of tax identification number: `SSN`, `EIN`, or `Other`."
                          },
                          "phoneNumber": {
                            "type": "string",
                            "maxLength": 15,
                            "example": "1234567890",
                            "description": "Business phone number."
                          },
                          "address": {
                            "type": "object",
                            "required": [
                              "streetNum",
                              "streetName",
                              "city",
                              "state",
                              "postalCode"
                            ],
                            "properties": {
                              "streetNum": {
                                "type": "string",
                                "maxLength": 9,
                                "example": "456",
                                "description": "Street number."
                              },
                              "streetName": {
                                "type": "string",
                                "maxLength": 40,
                                "example": "Business Avenue",
                                "description": "Street name."
                              },
                              "city": {
                                "type": "string",
                                "maxLength": 30,
                                "example": "Los Angeles",
                                "description": "City name."
                              },
                              "state": {
                                "type": "string",
                                "example": "CA",
                                "description": "Two-letter US state code."
                              },
                              "postalCode": {
                                "type": "string",
                                "maxLength": 5,
                                "example": "90210",
                                "description": "ZIP or postal code."
                              }
                            },
                            "description": "Registered business address."
                          },
                          "websiteUrl": {
                            "type": "string",
                            "maxLength": 70,
                            "example": "https://www.smithsstore.com",
                            "description": "Business website URL."
                          },
                          "ownershipType": {
                            "type": "string",
                            "enum": [
                              "SoleProprietorship",
                              "PrivateCorporation",
                              "Partnership",
                              "LLC",
                              "Trust",
                              "Government",
                              "NonProfit",
                              "LimitedPartnership",
                              "LimitedLiabilityPartnership",
                              "PublicCorporation"
                            ],
                            "example": "LLC",
                            "description": "Legal structure of the business."
                          },
                          "businessEstablishedDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2020-01-15",
                            "description": "Date the business was established (YYYY-MM-DD)."
                          },
                          "expectedMonthlyVolume": {
                            "type": "integer",
                            "example": 50000,
                            "description": "Expected monthly processing volume, used in underwriting."
                          },
                          "mccCode": {
                            "type": "string",
                            "description": "4 digits",
                            "example": "5999"
                          }
                        },
                        "description": "Business identity details."
                      }
                    },
                    "description": "Identity details for the business and its owners."
                  },
                  "payoutBankAccounts": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "type": "object",
                      "required": [
                        "accountRouting",
                        "accountNumber",
                        "accountType",
                        "nameOnAccount"
                      ],
                      "properties": {
                        "accountRouting": {
                          "type": "string",
                          "example": "021000021",
                          "description": "9-digit ABA routing number."
                        },
                        "accountNumber": {
                          "type": "string",
                          "example": "1234567890",
                          "description": "Bank account number."
                        },
                        "accountType": {
                          "type": "string",
                          "enum": [
                            "checking"
                          ],
                          "example": "checking",
                          "description": "Bank account type, such as `checking`."
                        },
                        "nameOnAccount": {
                          "type": "string",
                          "example": "Smith Enterprises LLC",
                          "description": "Name on the bank account."
                        },
                        "isPreferred": {
                          "type": "boolean",
                          "example": true,
                          "description": "Whether this is the preferred account for payouts."
                        }
                      }
                    },
                    "description": "Bank accounts where the merchant receives payouts."
                  },
                  "feesTemplateId": {
                    "type": "string",
                    "format": "uuid",
                    "nullable": true,
                    "example": "550e8400-e29b-41d4-a716-446655440000",
                    "description": "UUID of a fees template with predefined pricing. If omitted, the default template is used."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "201": {
            "description": "Submerchant created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "description": "Machine-readable result code. See the Error Codes reference."
                    },
                    "success": {
                      "type": "boolean",
                      "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable result message."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "subMerchantId": {
                          "type": "string",
                          "description": "Unique identifier for the submerchant",
                          "example": "507f1f77bcf86cd799439013"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "review",
                            "approved",
                            "rejected"
                          ],
                          "example": "review",
                          "description": "Current status."
                        }
                      },
                      "description": "The response payload."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/provisioning/submerchant/update": {
      "post": {
        "tags": [
          "Provisioning"
        ],
        "summary": "Update a submerchant",
        "description": "Updates an existing submerchant. The submerchant must be in `review` status; once activated, it cannot be modified. All `identity.business` fields are optional. `services` is optional; if you send it, it replaces the merchant's current service selection. `feesTemplateId` and `payoutBankAccounts` are optional, but if `payoutBankAccounts` is provided, `accountRouting`, `accountNumber`, `accountType`, and `nameOnAccount` are required.",
        "operationId": "updateSubmerchant",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "subMerchantId"
                ],
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "Submerchant identifier",
                    "example": "854738f390"
                  },
                  "services": {
                    "type": "object",
                    "required": [
                      "card",
                      "ach"
                    ],
                    "properties": {
                      "card": {
                        "type": "object",
                        "required": [
                          "enabled"
                        ],
                        "properties": {
                          "enabled": {
                            "type": "boolean",
                            "example": true,
                            "description": "Whether the merchant is applying to process card payments, both credit and debit."
                          }
                        },
                        "description": "Card processing."
                      },
                      "ach": {
                        "type": "object",
                        "required": [
                          "enabled"
                        ],
                        "properties": {
                          "enabled": {
                            "type": "boolean",
                            "example": true,
                            "description": "Whether the merchant is applying to process ACH (eCheck) payments."
                          }
                        },
                        "description": "ACH (eCheck) processing."
                      }
                    },
                    "description": "Optional. The services this merchant is applying to process.\n\nOmit `services` to leave the current selection unchanged. If you send it, it replaces the current selection, so include both `card` and `ach` with the full intended selection — `enabled: false` for a service the merchant is not applying for.\n\nThe same rules as on create apply: enable at least one service, and only services enabled on the service provider product. Violations are rejected with `provisioning_no_service_selected` or `provisioning_service_not_available`."
                  },
                  "identity": {
                    "type": "object",
                    "properties": {
                      "business": {
                        "type": "object",
                        "properties": {
                          "legalName": {
                            "type": "string",
                            "maxLength": 150,
                            "example": "Smith Enterprises LLC",
                            "description": "Registered legal name of the business."
                          },
                          "dbaName": {
                            "type": "string",
                            "maxLength": 100,
                            "example": "DBA",
                            "description": "The merchant's doing-business-as name. Appears on customer statements unless overridden."
                          },
                          "billingDescriptor": {
                            "type": "string",
                            "maxLength": 25,
                            "example": "SMITHS STORE",
                            "description": "Overrides the descriptor that appears on the cardholder's statement."
                          },
                          "federalTaxId": {
                            "type": "string",
                            "description": "9 digits",
                            "example": "234123456"
                          },
                          "tinType": {
                            "type": "string",
                            "enum": [
                              "SSN",
                              "EIN",
                              "OTHER"
                            ],
                            "example": "EIN",
                            "description": "Type of tax identification number: `SSN`, `EIN`, or `Other`."
                          },
                          "phoneNumber": {
                            "type": "string",
                            "maxLength": 15,
                            "example": "2304923049",
                            "description": "Business phone number."
                          },
                          "address": {
                            "type": "object",
                            "properties": {
                              "streetNum": {
                                "type": "string",
                                "maxLength": 9,
                                "example": "234",
                                "description": "Street number."
                              },
                              "streetName": {
                                "type": "string",
                                "maxLength": 40,
                                "example": "asdw street",
                                "description": "Street name."
                              },
                              "city": {
                                "type": "string",
                                "maxLength": 30,
                                "example": "ny",
                                "description": "City name."
                              },
                              "state": {
                                "type": "string",
                                "example": "NY",
                                "description": "Two-letter US state code."
                              },
                              "postalCode": {
                                "type": "string",
                                "maxLength": 5,
                                "example": "23435",
                                "description": "ZIP or postal code."
                              }
                            },
                            "description": "Registered business address."
                          },
                          "websiteUrl": {
                            "type": "string",
                            "maxLength": 70,
                            "example": "https://www.web.test",
                            "description": "Business website URL."
                          },
                          "ownershipType": {
                            "type": "string",
                            "enum": [
                              "SoleProprietorship",
                              "PrivateCorporation",
                              "Partnership",
                              "LLC",
                              "Trust",
                              "Government",
                              "NonProfit",
                              "LimitedPartnership",
                              "LimitedLiabilityPartnership",
                              "PublicCorporation"
                            ],
                            "example": "SoleProprietorship",
                            "description": "Legal structure of the business."
                          },
                          "businessEstablishedDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2015-05-01",
                            "description": "Date the business was established (YYYY-MM-DD)."
                          },
                          "expectedMonthlyVolume": {
                            "type": "integer",
                            "example": 2343,
                            "description": "Expected monthly processing volume, used in underwriting."
                          },
                          "mccCode": {
                            "type": "string",
                            "description": "4 digits",
                            "example": "5812"
                          }
                        },
                        "description": "Business identity details."
                      }
                    },
                    "description": "Identity details for the business and its owners."
                  },
                  "payoutBankAccounts": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "accountRouting",
                        "accountNumber",
                        "accountType",
                        "nameOnAccount"
                      ],
                      "properties": {
                        "accountRouting": {
                          "type": "string",
                          "example": "026726656",
                          "description": "9-digit ABA routing number."
                        },
                        "accountNumber": {
                          "type": "string",
                          "example": "12345678901234567",
                          "description": "Bank account number."
                        },
                        "accountType": {
                          "type": "string",
                          "enum": [
                            "checking"
                          ],
                          "example": "checking",
                          "description": "Bank account type, such as `checking`."
                        },
                        "nameOnAccount": {
                          "type": "string",
                          "example": "testname",
                          "description": "Name on the bank account."
                        },
                        "isPreferred": {
                          "type": "boolean",
                          "example": true,
                          "description": "Whether this is the preferred account for payouts."
                        }
                      }
                    },
                    "description": "Bank accounts where the merchant receives payouts."
                  },
                  "feesTemplateId": {
                    "type": "string",
                    "format": "uuid",
                    "nullable": true,
                    "example": "415dd627-006f-4477-a2eb-47c6eb7a4534",
                    "description": "UUID of a fees template with predefined pricing. If omitted, the default template is used."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Submerchant updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "description": "Machine-readable result code. See the Error Codes reference."
                    },
                    "success": {
                      "type": "boolean",
                      "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable result message."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "subMerchantId": {
                          "type": "string",
                          "description": "Unique identifier for the submerchant"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "review",
                            "approved",
                            "rejected"
                          ],
                          "example": "review",
                          "description": "Current status."
                        }
                      },
                      "description": "The response payload."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/sessions/browser/authorize": {
      "post": {
        "tags": [
          "Session"
        ],
        "summary": "Create a browser session",
        "description": "Creates a browser authorization session for the Jupico web components. Call this from your backend, then pass the returned session to the component so card or bank account data is tokenized client-side and never touches your servers.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "example": "jpt-sim-cs-apple",
                    "description": "The subMerchantId associated with the checkout."
                  },
                  "cardTokenization": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "example": true,
                        "description": "Whether this setting is enabled."
                      }
                    },
                    "description": "Enables card tokenization in the web component for this session."
                  },
                  "bankAccountTokenization": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "example": true,
                        "description": "Whether this setting is enabled."
                      }
                    },
                    "description": "Enables bank account (eCheck) tokenization in the web component for this session."
                  },
                  "applePay": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "example": true,
                        "description": "Whether this setting is enabled."
                      },
                      "amount": {
                        "type": "number",
                        "example": 23,
                        "description": "The amount of the transaction."
                      },
                      "description": {
                        "type": "string",
                        "example": "test applePay",
                        "description": "Free-text description."
                      }
                    },
                    "description": "Apple Pay acceptance settings."
                  },
                  "googlePay": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "example": true,
                        "description": "Whether this setting is enabled."
                      },
                      "amount": {
                        "type": "number",
                        "example": 23,
                        "description": "The amount of the transaction."
                      },
                      "description": {
                        "type": "string",
                        "example": "test googlePay",
                        "description": "Free-text description."
                      }
                    },
                    "description": "Google Pay acceptance settings."
                  }
                },
                "required": [
                  "subMerchantId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Authorization session successfully created."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/tokenization/converttopermanent": {
      "post": {
        "tags": [
          "Tokenization"
        ],
        "summary": "Convert a one-time token",
        "description": "Converts a one-time token (OTT) produced by the web component into a permanent Jupico token that you can store and reuse for future charges, subscriptions, and installments.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "paymentToken": {
                    "type": "object",
                    "description": "Paste the paymentToken from step 2.",
                    "properties": {
                      "data": {
                        "type": "string",
                        "example": "eyJ0eXBlIjoiY3JlZGl0Y2FyZCIsInJlQ2FwdGNoYVRva2VuIjoiMGNBRmNXZUE3V1haR2NaTVZHclBPc0xESjJxX2lHTlJuVlE2TndLa3U4bHlidHlycWVrN0hEcUVRNTNjYm85RTFiRW9uOGxIUkd2Rkk2eUZTUGFzcVA5bU9VRFFZRmVKM2pxbGVRdElpWmdaVzBrX0JfeXN1RFBpMFREam5BVjlwVFVTcmdLdGNKYWRSUDdZSnh0YkY3N2lMcmFHamJrZ0V2d2lQWDV6ZUpJVjl6dUJLcVo5VzlqOWFFOE9lTW5Tb0xzOWtGa3lsbVRPc0NvLVZVbWxKeGVJSkdZQ0VadUprSTZVOUtrckZkcUFZUUQ0U3F5b3J2eDhWMFAzS3RPaXo4ckFNaGsxTEpaNlJVMS1Kd08ySHpKM29DbVpiSDRIQVNoV25IZUdZb09OenRPRFdlUUdZeE1FRWE5aXhsZUVrbFhPVWRfQ1AxOTVSZ3gwWFpMOWlPYTBUc0NLbFMxQkEzNTVXcmtVYWd6eGVwYldWM2xxeU5xZ0lnU2JfSjZEWV9XWFhXa0NUSEdDZ28yaG5najJ4S3pYbVNrZ1VFWkdTWGFXWkplejJINFdzWmNVYjRkbEo1d3I2UEtPNEtDNlVwdWlhRDRRRGdTUnBxWXVVYlM4ZVp4aHR4MUJEUVhPNGRKUkhxaEQ0a3NvaXdjdjI3akRISzVhTFZvaC1DRlhtMnBLYXhmQ0laMzlSbjJsRHV3cTlCckNPQlNLTUdTU1FJWkRRMkNHRFhFWFJabUpOM1dTRFVzR0FaYlpwUm8ySjRkd0tzWGhleGNSOVI0YjJvcTlZekZycDJxYWgxUHhqcXIxSDVHYnRnTGhTRXZKdUNFMEdjaXpfX3Y1dEVuMzVKdnJKQXN3bTc0TTdmSkFTanRZaVlOWmQ2NGJLcnY4TnA1clpTelBSVjRzcDI4LXZLSHhLRjNaMEp0RzZWc2lBalF0TkpxVHlTOVVUOUNrTHVvUjBZUmxFZXJzV090MlU4ZUpxZUJtTndKZHFtWERwQUF0emRrTDd4Vk1CRWFLUXlFLXFQX0ZUZ3hibDBpdmdLXzBsRVQ0c1g4MDJfRTFIR0UtcVdaU3JFVUg2b2xGbF9WV2tiVFBFN0gxaWd1Qzk5WTJqZEdPU0E2VXJSRUIxcnliVThxcElJR2ZxM1FIcy1jU244Z0lybUhzbFFCSS1EVVF2djVhRGFoSTctMFhCaXllWDNEQWF5SC1rRDVMaTlQbXRSczBrMkFYQlBnRHJ5SWRRWUNTbzI5aFF3WUpSUklTd2o0TGt6dUF2QjVPTWlBNlc3ajB1OENPX0dWc1ZVV1dFR0pJYlk4V25TWWo2U2FaamRiQW9FWkpuajJqenJISEN5VDh2N3dhazh6d2xQZVFZVG83TzNXamxYdUlRR1Z1bFZjNkhXNkxuOVBwMFpxTHE5TGVVbzJ3UmFNTVA2Z04wNTA3YWVlY0k0QzV6bGhWZDZKZDBjWkpxUGNUWmQxUDBQclFCM1RyQ05mT3lrVGt6QzJlb05HYTdVZHVpdkhUODlOeHhkdU5yN3NzazBMejIyUnJFYWpsZWtkRVdlWkV5X0FwczBMNnZON1ZuRENPUTRxZHdQbTg3TjhxRzBoa0tMemVzMHEtVlBEVXpRd1hEdl9VSTRHMGdmMVc2NnZZZlp5aWIwSmdJeklIYmV5OTIwcDVHa1l3ci0yVG9GNFdXOHAydlh1V0QxT2MyYVJBMlY4M1dBRXJ5ZHVlaGNVUURsSlhOQjZXUjhBOFM0ZlJ6Y3NRUFpLSG5xd2Y1dVV0dFFPUUJJMWZfNndzaDYteEt1bkdqUU5QVEJzUHpHRE9BRlpjd3Y1NzlCUHlBZUo2VUlCTVhobDNnYkRZdjlMVlFicnZoTFdzelZlbWVwSkVxa2d2cHhLWGFWa1MwOHZHWjNncXB0X3V6N2ZfTU44emdrbkJsc0xzRkZ2X05oRkZGb29DcV9rY01hNl9yck1PQWhVR1ZRczlfWFNnWGhVeGdrN3R6QlczRjRqQmxLNldyRU1nLXp2RHVjNVRSTV9FSGtlWVVwTUZfZWF6ZWpJQ1M5MDc5STgtSk9qQTRsaHhXT0JfZF90SlBMcGlFaXh3UkJGc3BBWmlhUmFKR2tOUHJSZl9UZktGOUNyc1p2dHVleW5GUHZCcEtRUVo1eDFLbjd2LXRGbGRZSHFLc2lyUEFEQTNjQnBnXzF5RWlCREE0Z1I2R1J0QWhqM1pHTEhzU1ktOFZXX0NZVXFTa1gxQmJ3MlQyRlg0UDJNSDZfcEVuVngzNU5oQ0pBbUh4OGdmRUVIbUxrbXRPWTNCVHpqb3p1TTdRSF9tZFZQUTRvbld1eFZtWTRsUUtHZ3FyTFQtT05xeldWWm9lQ1pjVlRwSkZSanEtMjZzTDRiSUN2Z3oya05NSzBYbFVrMWg1cGZFSFRlMWd5UUxLZmx0bzdoeFdQWWhDck5nQnlYUHJETldLWDkyYVFyNFkzMU5ZUkdFMkg0ckNfZFdXbXZfT3EzMHAyVzdDWmJLZ2dYMXk3SkgxeXF2UGFmbl9BbXpNeUFyejZ1ZUZfX1MyM2tjRHloRGdSVEMwMk1paEpJbnBQZXgwMThka1JtZGZuQS0zMXVJLTlNeC1aQkVVSS1mTWhFTi0wNTZ5OFhNSkJqY0d3Yi1zN0k0ZVMteG9DTmhVbm5oLVJFVmp4T0JXUmM1bmgtOU10MnJjVlY0dHRwWl94TTl6Qk9XWGRiVXYtN0ZsYzRnUUNBYmhHc2JGTlg2ZFMyc2R4RDdQZW5rQ25hM25INDVuTEdFZ25TYmJSOWdaT3VyczgxRFZnUV9nbkdwZGxsQUp4dW51djFMM3FtRUlWeEx3XzMxTmRaUUsyLXV2YzNXV05PTnRLeTR1MUY5TDFjUzVLRUtlaVZpbjBNS0Q5cVB5cjJMSTE1eU94dUZuVHY1YXJrM3FSczJFaUx4T0NVRHVEREluaUZxNHZTQ2dJWXFRNTZRUENHRGNMVW1FZmFBQnpHeG1rLTNQUjJubHpreENIeEVvQWlqSG82Q011aTZSOENxQWhjdEhSQUJDTk9wZEM1eVRmTGFjbjVTM2FSZml2WVVNbTRaWmk1MWc5dmZfa19ILUF1YzRSVnZUREh6eTRyX2dTcnBCYy1UMEF2cndkRTYzc2xKMGZfZ0g1ZFM4Mm1kT3I0NkM0IiwidG9rZW4iOnsicHJvdmlkZXIiOiJ2Z3MiLCJ0b2tlbiI6ImUyODc4ODEwLTMxMjItNDgzMy1hNTI2LTFkOTg1MjhkMDhkYiIsInRva2VuU2Vzc2lvbklkIjoiOTAwYmE5ZGEtMWJiYi00YTMzLWE3NDQtMjdiMWQ0Zjc5NDA5IiwiY3Z2IjoiMTIzIiwicHVibGljS2V5IjoiMGVjNzdmYmItNTVlNC00ZTljLTg1ZDUtNDRjMjE5MTNmYzYxIn19",
                        "description": "The one-time token string returned by the web component."
                      }
                    },
                    "required": [
                      "data"
                    ]
                  }
                },
                "required": [
                  "paymentToken"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Convert to permanent successfully."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/tokenization/creditcard/raw": {
      "post": {
        "tags": [
          "Tokenization"
        ],
        "summary": "Tokenize raw card data",
        "description": "Securely tokenize raw credit card information. The resulting token can be used in place of raw card data in future transactions, improving security and simplifying PCI compliance.",
        "operationId": "ccRawTokenize",
        "servers": [
          {
            "url": "https://sandbox-raw-tokenization.jupico.com"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ccRawTokenize"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ccRawTokenize"
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/tokenization/bankaccount/raw": {
      "post": {
        "tags": [
          "Tokenization"
        ],
        "summary": "Tokenize raw bank account data",
        "description": "Exchanges a customer's bank account details for a permanent Jupico token. Use the token in place of the account and routing numbers on eCheck sales. Tokenizing the same account number, routing number, and account type again returns the existing token. Requires bank account tokenization to be enabled for the product and the submerchant. Replaces the deprecated [`POST /v1/transactions/echeck/tokenize`](/api-reference/echeck-transactions/tokenize-a-bank-account). See the [bank account tokenization guide](/docs/payments/bank-account/tokenization).",
        "operationId": "bankAccountTokenizeRaw",
        "requestBody": {
          "$ref": "#/components/requestBodies/bankAccountTokenizeRaw"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/bankAccountTokenizeRaw"
          },
          "400": {
            "description": "Invalid payload. A field is missing or invalid, or the body includes a field this endpoint doesn't accept.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false,
                      "description": "Always `false` for errors."
                    },
                    "code": {
                      "type": "string",
                      "description": "Machine-readable error code. See the Error Codes reference."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable error message."
                    },
                    "errors": {
                      "type": "array",
                      "description": "Validation errors. Present only on `invalid_payload`. Each entry names the field (`path`) and the rule it broke (`msg`). Rejected values are never echoed back.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "`field` for a field rule, or `unknown_fields` when the body has fields the endpoint doesn't accept."
                          },
                          "msg": {
                            "type": "string",
                            "description": "What's wrong with the field."
                          },
                          "path": {
                            "type": "string",
                            "description": "Name of the field that failed."
                          },
                          "location": {
                            "type": "string",
                            "description": "Where the field was sent. Always `body`."
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "invalidField": {
                    "summary": "A field failed validation",
                    "value": {
                      "success": false,
                      "message": "Invalid payload.",
                      "code": "invalid_payload",
                      "errors": [
                        {
                          "type": "field",
                          "msg": "routingNumber must be a valid routing number",
                          "path": "routingNumber",
                          "location": "body"
                        }
                      ]
                    }
                  },
                  "unknownField": {
                    "summary": "The body includes an unsupported field",
                    "value": {
                      "success": false,
                      "message": "Invalid payload.",
                      "code": "invalid_payload",
                      "errors": [
                        {
                          "type": "unknown_fields",
                          "msg": "Unknown field(s)",
                          "fields": [
                            {
                              "path": "alias",
                              "location": "body"
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication or authorization failed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false,
                      "description": "Always `false` for errors."
                    },
                    "code": {
                      "type": "string",
                      "description": "Machine-readable error code. See the Error Codes reference."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable error message."
                    },
                    "errors": {
                      "type": "array",
                      "description": "Validation errors. Present only on `invalid_payload`. Each entry names the field (`path`) and the rule it broke (`msg`). Rejected values are never echoed back.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "`field` for a field rule, or `unknown_fields` when the body has fields the endpoint doesn't accept."
                          },
                          "msg": {
                            "type": "string",
                            "description": "What's wrong with the field."
                          },
                          "path": {
                            "type": "string",
                            "description": "Name of the field that failed."
                          },
                          "location": {
                            "type": "string",
                            "description": "Where the field was sent. Always `body`."
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "invalidSubmerchant": {
                    "summary": "`subMerchantId` not found or not active",
                    "value": {
                      "success": false,
                      "message": "SubMerchant not found or inactive.",
                      "code": "auth_invalid_submerchant"
                    }
                  },
                  "submerchantDisabled": {
                    "summary": "Submerchant is disabled",
                    "value": {
                      "success": false,
                      "message": "SubMerchant is disabled.",
                      "code": "auth_submerchant_disabled"
                    }
                  },
                  "featureDisabled": {
                    "summary": "Bank account tokenization isn't enabled for the submerchant",
                    "value": {
                      "success": false,
                      "message": "Submerchant feature disabled. Feature: bankAccountTokenization.",
                      "code": "auth_submerchant_feature_disabled"
                    }
                  },
                  "productFeatureDisabled": {
                    "summary": "Bank account tokenization isn't enabled for the product",
                    "value": {
                      "success": false,
                      "message": "Service provider feature disabled. Feature: bankAccountTokenization.",
                      "code": "auth_service_provider_feature_disabled"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false,
                      "description": "Always `false` for errors."
                    },
                    "code": {
                      "type": "string",
                      "description": "Machine-readable error code. See the Error Codes reference."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable error message."
                    },
                    "errors": {
                      "type": "array",
                      "description": "Validation errors. Present only on `invalid_payload`. Each entry names the field (`path`) and the rule it broke (`msg`). Rejected values are never echoed back.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "`field` for a field rule, or `unknown_fields` when the body has fields the endpoint doesn't accept."
                          },
                          "msg": {
                            "type": "string",
                            "description": "What's wrong with the field."
                          },
                          "path": {
                            "type": "string",
                            "description": "Name of the field that failed."
                          },
                          "location": {
                            "type": "string",
                            "description": "Where the field was sent. Always `body`."
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "internal": {
                    "summary": "Unexpected error",
                    "value": {
                      "success": false,
                      "message": "Internal server error.",
                      "code": "internal_server_error"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/customers/": {
      "post": {
        "tags": [
          "Customer"
        ],
        "summary": "Create a customer",
        "description": "Creates a customer record that payments, subscriptions, installments, and invoices can be linked to. Returns the created customer.",
        "operationId": "createCustomer",
        "requestBody": {
          "$ref": "#/components/requestBodies/createCustomer"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Customer created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/createCustomer"
                }
              }
            }
          }
        }
      }
    },
    "/v1/customers/update": {
      "post": {
        "tags": [
          "Customer"
        ],
        "summary": "Update a customer",
        "description": "Updates an existing customer's details. Returns the updated customer.",
        "operationId": "updateCustomer",
        "requestBody": {
          "$ref": "#/components/requestBodies/updateCustomer"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Customer updated successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/updateCustomer"
                }
              }
            }
          }
        }
      }
    },
    "/v1/customers/delete": {
      "post": {
        "tags": [
          "Customer"
        ],
        "summary": "Delete a customer",
        "description": "Deletes a customer record. Returns the deleted customer.",
        "operationId": "deleteCustomer",
        "requestBody": {
          "$ref": "#/components/requestBodies/deleteCustomer"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Customer deleted successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/deleteCustomer"
                }
              }
            }
          }
        }
      }
    },
    "/v1/transactions/creditcard/sale": {
      "post": {
        "tags": [
          "Card Transactions"
        ],
        "summary": "Process a card sale",
        "description": "A sale combines authorization and capture in one transaction. Use it when purchases are fulfilled immediately, such as retail or e-commerce checkout. If the issuing bank approves, an approval code is returned; if it declines, the response includes the decline reason.",
        "operationId": "ccSale",
        "requestBody": {
          "$ref": "#/components/requestBodies/ccSale"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ccSale"
          }
        }
      }
    },
    "/v1/transactions/creditcard/authorization": {
      "post": {
        "tags": [
          "Card Transactions"
        ],
        "summary": "Authorize a card",
        "description": "An authorization confirms the cardholder's ability to pay and reserves the amount without charging it. Use it when the final amount is unknown or fulfillment is deferred — for example, tips at a restaurant or a card on file at a hotel. Complete the charge later with **Capture**.",
        "operationId": "ccAuth",
        "requestBody": {
          "$ref": "#/components/requestBodies/ccAuth"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ccAuth"
          }
        }
      }
    },
    "/v1/transactions/creditcard/capture": {
      "post": {
        "tags": [
          "Card Transactions"
        ],
        "summary": "Capture an authorization",
        "description": "A capture confirms a previous authorization and initiates settlement, charging the customer. The capture amount may exceed the authorized amount up to an allowable excess limit determined by the issuing bank.",
        "operationId": "ccCapture",
        "requestBody": {
          "$ref": "#/components/requestBodies/ccCapture"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ccCapture"
          }
        }
      }
    },
    "/v1/transactions/creditcard/void": {
      "post": {
        "tags": [
          "Card Transactions"
        ],
        "summary": "Void a card transaction",
        "operationId": "ccVoid",
        "requestBody": {
          "$ref": "#/components/requestBodies/ccVoid"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ccVoid"
          }
        },
        "description": "Cancels a transaction that has not yet settled, so the customer is never charged. Once a transaction has settled, use **Refund** instead."
      }
    },
    "/v1/transactions/creditcard/refund": {
      "post": {
        "tags": [
          "Card Transactions"
        ],
        "summary": "Refund a card transaction",
        "description": "Returns funds to the customer's card for a previously settled transaction. Use refunds for returns, cancellations, or to resolve disputes. For unsettled transactions, use **Void** instead.",
        "operationId": "ccRefund",
        "requestBody": {
          "$ref": "#/components/requestBodies/ccRefund"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ccRefund"
          }
        }
      }
    },
    "/v1/transactions/creditcard/rollback": {
      "post": {
        "tags": [
          "Card Transactions"
        ],
        "summary": "Roll back a card transaction",
        "description": "A rollback (communications/system reversal) cancels a transaction whose response you never received — for example, after a timeout. As the original requestor, you are responsible for generating a rollback for every transaction that does not receive a response, to prevent duplicate or inconsistent charges.",
        "operationId": "ccRollback",
        "requestBody": {
          "$ref": "#/components/requestBodies/ccRollback"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ccRollback"
          }
        }
      }
    },
    "/v1/transactions/echeck/sale": {
      "post": {
        "tags": [
          "eCheck Transactions"
        ],
        "summary": "Process an eCheck sale",
        "description": "Initiates a direct debit (ACH) from the customer's bank account. If the debit request is accepted, the transaction proceeds to settlement; otherwise the response includes the failure reason. Note that ACH returns can occur days after acceptance.",
        "operationId": "eCheckSale",
        "requestBody": {
          "$ref": "#/components/requestBodies/eCheckSale"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/eCheckOperationResponse"
          }
        }
      }
    },
    "/v1/transactions/echeck/void": {
      "post": {
        "tags": [
          "eCheck Transactions"
        ],
        "summary": "Void an eCheck transaction",
        "operationId": "eCheckVoid",
        "requestBody": {
          "$ref": "#/components/requestBodies/eCheckVoid"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/eCheckOperationResponse"
          }
        },
        "description": "Cancels an eCheck transaction that has not yet been submitted for settlement, so no debit occurs. Once settled, use **Refund** instead."
      }
    },
    "/v1/transactions/echeck/refund": {
      "post": {
        "tags": [
          "eCheck Transactions"
        ],
        "summary": "Refund an eCheck transaction",
        "description": "Returns funds to the customer's bank account for a previously settled eCheck debit. Use refunds for returns, cancellations, or to resolve disputes.",
        "operationId": "eCheckRefund",
        "requestBody": {
          "$ref": "#/components/requestBodies/eCheckRefund"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/eCheckOperationResponse"
          }
        }
      }
    },
    "/v1/transactions/echeck/rollback": {
      "post": {
        "tags": [
          "eCheck Transactions"
        ],
        "summary": "Roll back an eCheck transaction",
        "description": "A rollback (communications/system reversal) cancels an eCheck transaction whose response was not reliably delivered. Generate a rollback for any eCheck transaction that does not receive a response, to prevent duplicate or inconsistent charges. To return funds for a settled transaction, use **Refund** instead.",
        "operationId": "eCheckRollback",
        "requestBody": {
          "$ref": "#/components/requestBodies/eCheckRollback"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/eCheckOperationResponse"
          }
        }
      }
    },
    "/v1/transactions/echeck/tokenize": {
      "post": {
        "tags": [
          "eCheck Transactions"
        ],
        "summary": "Tokenize a bank account",
        "description": "**Deprecated.** Use [`POST /v1/tokenization/bankaccount/raw`](/api-reference/tokenization/tokenize-raw-bank-account-data) instead. See the [bank account tokenization guide](/docs/payments/bank-account/tokenization) for the differences.\n\nTokenizes a customer's bank account details. Use the returned token in place of raw account data for eCheck sales. The endpoint rejects any field not listed in the request body.",
        "operationId": "eCheckTokenize",
        "requestBody": {
          "$ref": "#/components/requestBodies/eCheckTokenize"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/eCheckTokenize"
          },
          "400": {
            "description": "Invalid payload. A field is missing or invalid, or the body includes a field this endpoint doesn't accept.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false,
                      "description": "Always `false` for errors."
                    },
                    "code": {
                      "type": "string",
                      "description": "Machine-readable error code. See the Error Codes reference."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable error message."
                    },
                    "errors": {
                      "type": "array",
                      "description": "Validation errors. Present only on `invalid_payload`. Each entry names the field (`path`) and the rule it broke (`msg`). Rejected values are never echoed back.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "`field` for a field rule, or `unknown_fields` when the body has fields the endpoint doesn't accept."
                          },
                          "msg": {
                            "type": "string",
                            "description": "What's wrong with the field."
                          },
                          "path": {
                            "type": "string",
                            "description": "Name of the field that failed."
                          },
                          "location": {
                            "type": "string",
                            "description": "Where the field was sent. Always `body`."
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "invalidField": {
                    "summary": "A field failed validation",
                    "value": {
                      "success": false,
                      "message": "Invalid payload.",
                      "code": "invalid_payload",
                      "errors": [
                        {
                          "type": "field",
                          "msg": "routingNumber must be a valid routing number",
                          "path": "routingNumber",
                          "location": "body"
                        }
                      ]
                    }
                  },
                  "unknownField": {
                    "summary": "The body includes an unsupported field",
                    "value": {
                      "success": false,
                      "message": "Invalid payload.",
                      "code": "invalid_payload",
                      "errors": [
                        {
                          "type": "unknown_fields",
                          "msg": "Unknown field(s)",
                          "fields": [
                            {
                              "path": "checkType",
                              "location": "body"
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false,
                      "description": "Always `false` for errors."
                    },
                    "code": {
                      "type": "string",
                      "description": "Machine-readable error code. See the Error Codes reference."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable error message."
                    },
                    "errors": {
                      "type": "array",
                      "description": "Validation errors. Present only on `invalid_payload`. Each entry names the field (`path`) and the rule it broke (`msg`). Rejected values are never echoed back.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "`field` for a field rule, or `unknown_fields` when the body has fields the endpoint doesn't accept."
                          },
                          "msg": {
                            "type": "string",
                            "description": "What's wrong with the field."
                          },
                          "path": {
                            "type": "string",
                            "description": "Name of the field that failed."
                          },
                          "location": {
                            "type": "string",
                            "description": "Where the field was sent. Always `body`."
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "internal": {
                    "summary": "Unexpected error",
                    "value": {
                      "success": false,
                      "message": "Internal server error.",
                      "code": "internal_server_error"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication or authorization failed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false,
                      "description": "Always `false` for errors."
                    },
                    "code": {
                      "type": "string",
                      "description": "Machine-readable error code. See the Error Codes reference."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable error message."
                    },
                    "errors": {
                      "type": "array",
                      "description": "Validation errors. Present only on `invalid_payload`. Each entry names the field (`path`) and the rule it broke (`msg`). Rejected values are never echoed back.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "`field` for a field rule, or `unknown_fields` when the body has fields the endpoint doesn't accept."
                          },
                          "msg": {
                            "type": "string",
                            "description": "What's wrong with the field."
                          },
                          "path": {
                            "type": "string",
                            "description": "Name of the field that failed."
                          },
                          "location": {
                            "type": "string",
                            "description": "Where the field was sent. Always `body`."
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "invalidSubmerchant": {
                    "summary": "`subMerchantId` sent but not found or not active",
                    "value": {
                      "success": false,
                      "message": "SubMerchant not found or inactive.",
                      "code": "auth_invalid_submerchant"
                    }
                  },
                  "submerchantDisabled": {
                    "summary": "Submerchant is disabled",
                    "value": {
                      "success": false,
                      "message": "SubMerchant is disabled.",
                      "code": "auth_submerchant_disabled"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/checkouts": {
      "post": {
        "tags": [
          "Checkouts"
        ],
        "summary": "Create a checkout session",
        "description": "Creates a hosted checkout session where the customer completes payment on a Jupico-hosted page. Configure accepted payment methods, data collection, and redirect behavior through the hosted session settings.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "example": "jpt-sim-md-1",
                    "description": "The subMerchantId associated with the checkout."
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "example": "Consulting services",
                          "description": "Description of the line item."
                        },
                        "quantity": {
                          "type": "number",
                          "example": 5,
                          "description": "Number of units."
                        },
                        "amount": {
                          "type": "number",
                          "example": 10,
                          "description": "Price per unit."
                        }
                      }
                    },
                    "description": "Line items included in the total amount."
                  },
                  "totalModifiers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "example": "tax",
                          "description": "Free-text description."
                        },
                        "amount": {
                          "type": "number",
                          "example": 5,
                          "description": "The amount of the transaction."
                        }
                      }
                    },
                    "description": "Adjustments applied to the total, such as discounts or additional fees."
                  },
                  "totalAmount": {
                    "type": "number",
                    "example": 55,
                    "description": "The total amount of the checkout."
                  },
                  "description": {
                    "type": "string",
                    "description": "The checkout description."
                  },
                  "hostedSession": {
                    "type": "object",
                    "description": "Object to edit configuration of created hosted session.",
                    "properties": {
                      "paymentMethods": {
                        "type": "object",
                        "properties": {
                          "defaultMethod": {
                            "type": "string",
                            "description": "Default payment method one of [\"creditCard\",\"eCheck\", \"applePay\",\"googlePay\"]",
                            "example": "creditCard"
                          },
                          "creditCard": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Credit card acceptance settings for the hosted page."
                          },
                          "eCheck": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "eCheck (ACH) acceptance settings for the hosted page."
                          },
                          "applePay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Apple Pay acceptance settings for the hosted page."
                          },
                          "googlePay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Google Pay acceptance settings for the hosted page."
                          }
                        },
                        "description": "Payment methods offered on the hosted page."
                      },
                      "flow": {
                        "type": "object",
                        "properties": {
                          "redirect": {
                            "type": "object",
                            "properties": {
                              "successUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/successUrl",
                                "description": "URL the customer is redirected to after successful payment."
                              },
                              "cancelUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/cancelUrl",
                                "description": "URL the customer is redirected to if they cancel."
                              },
                              "backUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/backUrl",
                                "description": "URL the customer is redirected to when they navigate back."
                              }
                            },
                            "description": "URLs the customer is redirected to during the flow."
                          }
                        },
                        "description": "Navigation behavior of the hosted page."
                      },
                      "functions": {
                        "type": "object",
                        "description": "Hosted session functions",
                        "properties": {
                          "collectBillingAddress": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's billing address during checkout."
                          },
                          "collectShippingAddress": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's shipping address during checkout."
                          },
                          "collectPhoneNumber": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's phone number during checkout."
                          },
                          "callToAction": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              },
                              "label": {
                                "type": "string",
                                "description": "Custom button label",
                                "example": "Pay"
                              },
                              "note": {
                                "type": "string",
                                "description": "Custom button label",
                                "example": "Note desc."
                              }
                            },
                            "description": "Customization of the pay button."
                          },
                          "notes": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Free-text notes displayed on the hosted page."
                          },
                          "collectEmail": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              },
                              "updateCustomer": {
                                "type": "boolean",
                                "example": false,
                                "description": "When true, the collected value is saved to the customer record."
                              }
                            },
                            "description": "Collect the customer's email address during checkout."
                          }
                        }
                      },
                      "constraints": {
                        "type": "object",
                        "properties": {
                          "timeLimit": {
                            "type": "number",
                            "description": "Number of minutes to keep session active",
                            "example": 30
                          }
                        },
                        "description": "Limits applied to the hosted session."
                      }
                    }
                  }
                },
                "required": [
                  "subMerchantId",
                  "description",
                  "totalAmount",
                  "hostedSession"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Checkout successfully created."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/checkouts/update": {
      "post": {
        "tags": [
          "Checkouts"
        ],
        "summary": "Update a checkout session",
        "description": "Updates the configuration of an existing checkout session.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "example": "jpt-sim-md-1",
                    "description": "The subMerchantId associated with the checkout."
                  },
                  "checkoutId": {
                    "type": "string",
                    "example": "f4b2c7d9-8e31-4a6b-b0d5-2c9a1e7f5d38",
                    "description": "The identifier of the checkout."
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "example": "Support plan - monthly",
                          "description": "Description of the line item."
                        },
                        "quantity": {
                          "type": "number",
                          "example": 7,
                          "description": "Number of units."
                        },
                        "amount": {
                          "type": "number",
                          "example": 10,
                          "description": "Price per unit."
                        }
                      }
                    },
                    "description": "Line items included in the total amount."
                  },
                  "totalModifiers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "example": "tax",
                          "description": "Free-text description."
                        },
                        "amount": {
                          "type": "number",
                          "example": 5,
                          "description": "The amount of the transaction."
                        }
                      }
                    },
                    "description": "Adjustments applied to the total, such as discounts or additional fees."
                  },
                  "totalAmount": {
                    "type": "number",
                    "example": 75,
                    "description": "The total amount of the checkout."
                  },
                  "description": {
                    "type": "string",
                    "description": "The checkout description."
                  },
                  "hostedSession": {
                    "type": "object",
                    "description": "Object to edit configuration of created hosted session.",
                    "properties": {
                      "paymentMethods": {
                        "type": "object",
                        "properties": {
                          "defaultMethod": {
                            "type": "string",
                            "description": "Default payment method one of [\"creditCard\",\"eCheck\", \"applePay\",\"googlePay\"]",
                            "example": "creditCard"
                          },
                          "creditCard": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Credit card acceptance settings for the hosted page."
                          },
                          "eCheck": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "eCheck (ACH) acceptance settings for the hosted page."
                          },
                          "applePay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Apple Pay acceptance settings for the hosted page."
                          },
                          "googlePay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Google Pay acceptance settings for the hosted page."
                          }
                        },
                        "description": "Payment methods offered on the hosted page."
                      },
                      "flow": {
                        "type": "object",
                        "properties": {
                          "redirect": {
                            "type": "object",
                            "properties": {
                              "successUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/successUrl",
                                "description": "URL the customer is redirected to after successful payment."
                              },
                              "cancelUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/cancelUrl",
                                "description": "URL the customer is redirected to if they cancel."
                              },
                              "backUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/backUrl",
                                "description": "URL the customer is redirected to when they navigate back."
                              }
                            },
                            "description": "URLs the customer is redirected to during the flow."
                          }
                        },
                        "description": "Navigation behavior of the hosted page."
                      },
                      "functions": {
                        "type": "object",
                        "description": "Hosted session functions",
                        "properties": {
                          "collectBillingAddress": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's billing address during checkout."
                          },
                          "collectShippingAddress": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's shipping address during checkout."
                          },
                          "collectPhoneNumber": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's phone number during checkout."
                          },
                          "callToAction": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              },
                              "label": {
                                "type": "string",
                                "description": "Custom button label",
                                "example": "Pay"
                              },
                              "note": {
                                "type": "string",
                                "description": "Custom button label",
                                "example": "Note desc."
                              }
                            },
                            "description": "Customization of the pay button."
                          },
                          "notes": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Free-text notes displayed on the hosted page."
                          },
                          "collectEmail": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              },
                              "updateCustomer": {
                                "type": "boolean",
                                "example": false,
                                "description": "When true, the collected value is saved to the customer record."
                              }
                            },
                            "description": "Collect the customer's email address during checkout."
                          }
                        }
                      },
                      "constraints": {
                        "type": "object",
                        "properties": {
                          "timeLimit": {
                            "type": "number",
                            "description": "Number of minutes to keep session active",
                            "example": 30
                          }
                        },
                        "description": "Limits applied to the hosted session."
                      }
                    }
                  }
                },
                "required": [
                  "subMerchantId",
                  "checkoutId",
                  "description",
                  "totalAmount"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Checkout successfully updated."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/checkouts/deactivate": {
      "post": {
        "tags": [
          "Checkouts"
        ],
        "summary": "Deactivate a checkout session",
        "description": "Deactivates a checkout session so it can no longer be used to pay. Deactivated sessions can be reactivated.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "example": "jpt-sim-md-1",
                    "description": "The subMerchantId associated with the checkout."
                  },
                  "checkoutId": {
                    "type": "string",
                    "example": "You need to change *this* with checkoutId from checkout creation",
                    "description": "The identifier of the checkout."
                  }
                },
                "required": [
                  "subMerchantId",
                  "checkoutId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Checkout successfully deactivated."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/checkouts/delete": {
      "post": {
        "tags": [
          "Checkouts"
        ],
        "summary": "Delete a checkout session",
        "description": "Permanently deletes a checkout session. This cannot be undone; to disable a session temporarily, use **Deactivate** instead.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "example": "jpt-sim-md-1",
                    "description": "The subMerchantId associated with the checkout."
                  },
                  "checkoutId": {
                    "type": "string",
                    "example": "You need to change *this* with checkoutId from checkout creation",
                    "description": "The identifier of the checkout."
                  }
                },
                "required": [
                  "subMerchantId",
                  "checkoutId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Checkout successfully deleted."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/paymentlinks": {
      "post": {
        "tags": [
          "Payment Links"
        ],
        "summary": "Create a payment link",
        "description": "Creates a shareable payment link. Each customer who opens the link pays on a Jupico-hosted page — no integration code required at the point of sharing.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "example": "jpt-sim-md-1",
                    "description": "The subMerchantId associated with the payment link."
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "example": "Consulting services",
                          "description": "Description of the line item."
                        },
                        "quantity": {
                          "type": "number",
                          "example": 5,
                          "description": "Number of units."
                        },
                        "amount": {
                          "type": "number",
                          "example": 10,
                          "description": "Price per unit."
                        }
                      }
                    },
                    "description": "Line items included in the total amount."
                  },
                  "totalModifiers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "example": "tax",
                          "description": "Free-text description."
                        },
                        "amount": {
                          "type": "number",
                          "example": 5,
                          "description": "The amount of the transaction."
                        }
                      }
                    },
                    "description": "Adjustments applied to the total, such as discounts or additional fees."
                  },
                  "totalAmount": {
                    "type": "number",
                    "example": 55,
                    "description": "The total amount of the payment link."
                  },
                  "description": {
                    "type": "string",
                    "description": "The payment link description."
                  },
                  "receipt": {
                    "type": "object",
                    "description": "Email receipt settings for the payment link. Receipts are off by default. A receipt is sent only when `hostedSession.functions.collectEmail.enabled` is `true` and the payer enters an email address on the hosted page.",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "default": false,
                        "example": true,
                        "description": "When `true`, the payer is emailed a receipt after they pay. Defaults to `false`. Requires `hostedSession.functions.collectEmail.enabled` to be `true`; otherwise the request is rejected with `400 Bad Request`."
                      }
                    }
                  },
                  "hostedSession": {
                    "type": "object",
                    "description": "Object to edit configuration of created hosted session.",
                    "properties": {
                      "paymentMethods": {
                        "type": "object",
                        "properties": {
                          "defaultMethod": {
                            "type": "string",
                            "description": "Default payment method one of [\"creditCard\",\"eCheck\", \"applePay\",\"googlePay\"]",
                            "example": "creditCard"
                          },
                          "creditCard": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Credit card acceptance settings for the hosted page."
                          },
                          "eCheck": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "eCheck (ACH) acceptance settings for the hosted page."
                          },
                          "applePay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Apple Pay acceptance settings for the hosted page."
                          },
                          "googlePay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Google Pay acceptance settings for the hosted page."
                          }
                        },
                        "description": "Payment methods offered on the hosted page."
                      },
                      "flow": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "Default payment method one of [\"standalone\",\"redirect\"]",
                            "example": "redirect"
                          },
                          "redirect": {
                            "type": "object",
                            "properties": {
                              "successUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/successUrl",
                                "description": "URL the customer is redirected to after successful payment."
                              },
                              "cancelUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/cancelUrl",
                                "description": "URL the customer is redirected to if they cancel."
                              },
                              "backUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/backUrl",
                                "description": "URL the customer is redirected to when they navigate back."
                              }
                            },
                            "description": "URLs the customer is redirected to during the flow."
                          }
                        },
                        "description": "Navigation behavior of the hosted page."
                      },
                      "functions": {
                        "type": "object",
                        "description": "Hosted session functions",
                        "properties": {
                          "collectBillingAddress": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's billing address during checkout."
                          },
                          "collectShippingAddress": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's shipping address during checkout."
                          },
                          "collectPhoneNumber": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's phone number during checkout."
                          },
                          "callToAction": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              },
                              "label": {
                                "type": "string",
                                "description": "Custom button label",
                                "example": "Pay"
                              },
                              "note": {
                                "type": "string",
                                "description": "Custom button label",
                                "example": "Note desc."
                              }
                            },
                            "description": "Customization of the pay button."
                          },
                          "notes": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Free-text notes displayed on the hosted page."
                          },
                          "collectEmail": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              },
                              "updateCustomer": {
                                "type": "boolean",
                                "example": false,
                                "description": "When true, the collected value is saved to the customer record."
                              }
                            },
                            "description": "Collect the customer's email address during checkout."
                          }
                        }
                      },
                      "constraints": {
                        "type": "object",
                        "properties": {
                          "timeLimit": {
                            "type": "number",
                            "description": "Number of minutes to keep session active",
                            "example": 30
                          }
                        },
                        "description": "Limits applied to the hosted session."
                      },
                      "usage": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "Usage type of hosted session. Posible values [\"single_use\",\"multi_use\"]",
                            "example": "multi_use"
                          },
                          "quantity": {
                            "type": "string",
                            "description": "In case of usage type \"multi_use\", this attribute update the hosted session payments/subscriptions limit.",
                            "example": 5
                          }
                        },
                        "description": "How many times the hosted session link can be used."
                      }
                    }
                  }
                },
                "required": [
                  "subMerchantId",
                  "description",
                  "totalAmount"
                ]
              },
              "example": {
                "subMerchantId": "jpt-sim-md-1",
                "items": [
                  {
                    "description": "Consulting services",
                    "quantity": 5,
                    "amount": 10
                  }
                ],
                "totalModifiers": [
                  {
                    "description": "tax",
                    "amount": 5
                  }
                ],
                "totalAmount": 55,
                "description": "Consulting invoice #1042",
                "receipt": {
                  "enabled": true
                },
                "hostedSession": {
                  "paymentMethods": {
                    "defaultMethod": "creditCard",
                    "creditCard": {
                      "enabled": true
                    }
                  },
                  "flow": {
                    "type": "standalone"
                  },
                  "functions": {
                    "collectEmail": {
                      "enabled": true,
                      "updateCustomer": false
                    },
                    "callToAction": {
                      "enabled": true,
                      "label": "Pay"
                    }
                  },
                  "usage": {
                    "type": "single_use"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Payment link successfully created."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/paymentlinks/update": {
      "post": {
        "tags": [
          "Payment Links"
        ],
        "summary": "Update a payment link",
        "description": "Updates the amount, items, or settings of an existing payment link.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the payment link.",
                    "example": "jpt-sim-md-1"
                  },
                  "paymentLinkId": {
                    "type": "string",
                    "example": "c23b205a-244b-4962-9337-a5b68f1c874f",
                    "description": "The identifier of the payment link."
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "example": "Support plan - monthly",
                          "description": "Description of the line item."
                        },
                        "quantity": {
                          "type": "number",
                          "example": 7,
                          "description": "Number of units."
                        },
                        "amount": {
                          "type": "number",
                          "example": 10,
                          "description": "Price per unit."
                        }
                      }
                    },
                    "description": "Line items included in the total amount."
                  },
                  "totalModifiers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "example": "tax",
                          "description": "Free-text description."
                        },
                        "amount": {
                          "type": "number",
                          "example": 5,
                          "description": "The amount of the transaction."
                        }
                      }
                    },
                    "description": "Adjustments applied to the total, such as discounts or additional fees."
                  },
                  "totalAmount": {
                    "type": "number",
                    "example": 75,
                    "description": "The total amount of the payment link."
                  },
                  "description": {
                    "type": "string",
                    "description": "The payment link description."
                  },
                  "receipt": {
                    "type": "object",
                    "description": "Email receipt settings for the payment link. Receipts are off by default. A receipt is sent only when `hostedSession.functions.collectEmail.enabled` is `true` and the payer enters an email address on the hosted page.",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "default": false,
                        "example": true,
                        "description": "When `true`, the payer is emailed a receipt after they pay. Defaults to `false`. Requires `hostedSession.functions.collectEmail.enabled` to be `true`; otherwise the request is rejected with `400 Bad Request`."
                      }
                    }
                  },
                  "hostedSession": {
                    "type": "object",
                    "description": "Object to edit configuration of created hosted session.",
                    "properties": {
                      "paymentMethods": {
                        "type": "object",
                        "properties": {
                          "defaultMethod": {
                            "type": "string",
                            "description": "Default payment method one of [\"creditCard\",\"eCheck\", \"applePay\",\"googlePay\"]",
                            "example": "creditCard"
                          },
                          "creditCard": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Credit card acceptance settings for the hosted page."
                          },
                          "eCheck": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "eCheck (ACH) acceptance settings for the hosted page."
                          },
                          "applePay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Apple Pay acceptance settings for the hosted page."
                          },
                          "googlePay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Google Pay acceptance settings for the hosted page."
                          }
                        },
                        "description": "Payment methods offered on the hosted page."
                      },
                      "flow": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "Default payment method one of [\"standalone\",\"redirect\"]",
                            "example": "redirect"
                          },
                          "redirect": {
                            "type": "object",
                            "properties": {
                              "successUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/successUrl",
                                "description": "URL the customer is redirected to after successful payment."
                              },
                              "cancelUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/cancelUrl",
                                "description": "URL the customer is redirected to if they cancel."
                              },
                              "backUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/backUrl",
                                "description": "URL the customer is redirected to when they navigate back."
                              }
                            },
                            "description": "URLs the customer is redirected to during the flow."
                          }
                        },
                        "description": "Navigation behavior of the hosted page."
                      },
                      "functions": {
                        "type": "object",
                        "description": "Hosted session functions",
                        "properties": {
                          "collectBillingAddress": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's billing address during checkout."
                          },
                          "collectShippingAddress": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's shipping address during checkout."
                          },
                          "collectPhoneNumber": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's phone number during checkout."
                          },
                          "callToAction": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              },
                              "label": {
                                "type": "string",
                                "description": "Custom button label",
                                "example": "Pay"
                              },
                              "note": {
                                "type": "string",
                                "description": "Custom button label",
                                "example": "Note desc."
                              }
                            },
                            "description": "Customization of the pay button."
                          },
                          "notes": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Free-text notes displayed on the hosted page."
                          },
                          "collectEmail": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              },
                              "updateCustomer": {
                                "type": "boolean",
                                "example": false,
                                "description": "When true, the collected value is saved to the customer record."
                              }
                            },
                            "description": "Collect the customer's email address during checkout."
                          }
                        }
                      },
                      "constraints": {
                        "type": "object",
                        "properties": {
                          "timeLimit": {
                            "type": "number",
                            "description": "Number of minutes to keep session active",
                            "example": 30
                          }
                        },
                        "description": "Limits applied to the hosted session."
                      },
                      "usage": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "Usage type of hosted session. Posible values [\"single_use\",\"multi_use\"]",
                            "example": "multi_use"
                          },
                          "quantity": {
                            "type": "string",
                            "description": "In case of usage type \"multi_use\", this attribute update the hosted session payments/subscriptions limit.",
                            "example": 5
                          }
                        },
                        "description": "How many times the hosted session link can be used."
                      }
                    }
                  }
                },
                "required": [
                  "subMerchantId",
                  "paymentLinkId",
                  "description",
                  "totalAmount"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payment link successfully updated."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/paymentlinks/deactivate": {
      "post": {
        "tags": [
          "Payment Links"
        ],
        "summary": "Deactivate a payment link",
        "description": "Deactivates a payment link so it can no longer be used to pay. Deactivated links can be reactivated.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "example": "jpt-sim-md-1",
                    "description": "The subMerchantId associated with the payment link."
                  },
                  "paymentLinkId": {
                    "type": "string",
                    "example": "You need to change *this* with paymentLinkId from paymentlink creation",
                    "description": "The identifier of the payment link."
                  }
                },
                "required": [
                  "subMerchantId",
                  "paymentLinkId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payment link successfully deactivated."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/paymentlinks/delete": {
      "post": {
        "tags": [
          "Payment Links"
        ],
        "summary": "Delete a payment link",
        "description": "Permanently deletes a payment link. This cannot be undone; to disable a link temporarily, use **Deactivate** instead.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "example": "jpt-sim-md-1",
                    "description": "The subMerchantId associated with the payment link."
                  },
                  "paymentLinkId": {
                    "type": "string",
                    "example": "You need to change *this* with paymentLinkId from paymentlink creation",
                    "description": "The identifier of the payment link."
                  }
                },
                "required": [
                  "subMerchantId",
                  "paymentLinkId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payment link successfully deleted."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/invoices": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "summary": "Create an invoice",
        "description": "Creates an invoice with line items, due date, and payment terms. Deliver it to the customer with **Send an invoice**.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the invoice."
                  },
                  "customerId": {
                    "type": "string",
                    "description": "The customer id of the invoice."
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "example": "Consulting services",
                          "description": "Description of the line item."
                        },
                        "quantity": {
                          "type": "number",
                          "example": 5,
                          "description": "Number of units."
                        },
                        "amount": {
                          "type": "number",
                          "example": 100,
                          "description": "Price per unit."
                        },
                        "taxRate": {
                          "type": "number",
                          "description": "Tax rate applied to this line item, as a percentage."
                        }
                      }
                    },
                    "description": "Line items included in the total amount."
                  },
                  "totalAmount": {
                    "type": "number",
                    "example": 500,
                    "description": "The total amount of the invoice."
                  },
                  "date": {
                    "type": "string",
                    "example": "2023-12-10T20:02:20.454Z",
                    "description": "The invoice date."
                  },
                  "dueDate": {
                    "type": "string",
                    "example": "2023-12-10T20:02:20.454Z",
                    "description": "The invoice dueDate."
                  },
                  "paymentTerm": {
                    "type": "string",
                    "example": "Due Upon Receipt",
                    "description": "The invoice paymentTerm."
                  },
                  "hostedSession": {
                    "type": "object",
                    "description": "Configuration for the hosted payment page."
                  }
                },
                "required": [
                  "subMerchantId",
                  "customerId",
                  "items",
                  "totalAmount",
                  "date",
                  "dueDate",
                  "paymentTerm"
                ]
              },
              "example": {
                "simulatorExample": {
                  "summary": "Simulator example",
                  "value": {
                    "customerId": "65f7ee397a4bb65ed744b6f4",
                    "date": "2023-12-10T20:02:20.454Z",
                    "dueDate": "2023-12-10T20:02:20.454Z",
                    "paymentTerm": "Due Upon Receipt",
                    "subMerchantId": "tpf-sim-beauty",
                    "description": "desc",
                    "items": [
                      {
                        "description": "hamburguer",
                        "quantity": 1,
                        "amount": 10,
                        "taxRate": 10
                      }
                    ],
                    "totalAmount": 11,
                    "hostedSession": {
                      "enabled": true,
                      "paymentMethods": {
                        "defaultMethod": "creditCard",
                        "creditCard": {
                          "enabled": true
                        },
                        "eCheck": {
                          "enabled": false
                        },
                        "applePay": {
                          "enabled": false
                        },
                        "googlePay": {
                          "enabled": false
                        }
                      },
                      "flow": {
                        "type": "redirect",
                        "redirect": {
                          "successUrl": "http://local-payments-platform.jupiterhq.com/v1/paymentlinks/successUrl",
                          "cancelUrl": "http://local-payments-platform.jupiterhq.com/v1/paymentlinks/cancelUrl",
                          "backUrl": "http://local-payments-platform.jupiterhq.com/v1/paymentlinks/backUrl"
                        }
                      },
                      "functions": {
                        "collectBillingAddress": {
                          "enabled": false
                        },
                        "collectShippingAddress": {
                          "enabled": false
                        },
                        "collectPhoneNumber": {
                          "enabled": false
                        },
                        "callToAction": {
                          "enabled": true,
                          "label": "Pay",
                          "note": "more"
                        },
                        "notes": {
                          "enabled": true
                        },
                        "collectEmail": {
                          "enabled": true,
                          "updateCustomer": true
                        }
                      },
                      "constraints": {
                        "timeLimit": 30,
                        "geoLocation": "location",
                        "browserInfo": "browser"
                      }
                    }
                  }
                },
                "CybersourceExample": {
                  "summary": "Cybersource example",
                  "value": {
                    "customerId": "65f7ee397a4bb65ed744b6f4",
                    "date": "2023-12-10T20:02:20.454Z",
                    "dueDate": "2023-12-10T20:02:20.454Z",
                    "paymentTerm": "Due Upon Receipt",
                    "subMerchantId": "tpf-sim-beauty",
                    "description": "desc",
                    "items": [
                      {
                        "description": "hamburguer",
                        "quantity": 1,
                        "amount": 10,
                        "taxRate": 10
                      }
                    ],
                    "totalAmount": 11,
                    "hostedSession": {
                      "enabled": true,
                      "paymentMethods": {
                        "defaultMethod": "creditCard",
                        "creditCard": {
                          "enabled": true
                        },
                        "eCheck": {
                          "enabled": false
                        },
                        "applePay": {
                          "enabled": false
                        },
                        "googlePay": {
                          "enabled": false
                        }
                      },
                      "flow": {
                        "type": "redirect",
                        "redirect": {
                          "successUrl": "http://local-payments-platform.jupiterhq.com/v1/paymentlinks/successUrl",
                          "cancelUrl": "http://local-payments-platform.jupiterhq.com/v1/paymentlinks/cancelUrl",
                          "backUrl": "http://local-payments-platform.jupiterhq.com/v1/paymentlinks/backUrl"
                        }
                      },
                      "functions": {
                        "collectBillingAddress": {
                          "enabled": false
                        },
                        "collectShippingAddress": {
                          "enabled": false
                        },
                        "collectPhoneNumber": {
                          "enabled": false
                        },
                        "callToAction": {
                          "enabled": true,
                          "label": "Pay",
                          "note": "more"
                        },
                        "notes": {
                          "enabled": true
                        },
                        "collectEmail": {
                          "enabled": true,
                          "updateCustomer": true
                        }
                      },
                      "constraints": {
                        "timeLimit": 30,
                        "geoLocation": "location",
                        "browserInfo": "browser"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Invoice successfully created."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/invoices/send": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "summary": "Send an invoice",
        "description": "Emails the invoice to the customer with a link to pay online.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the invoice.",
                    "example": "jpt-sim-md-1"
                  },
                  "invoiceId": {
                    "description": "The invoiceId of the invoice.",
                    "example": "You need to change *this* with invoiceId from invoice creation",
                    "type": "string"
                  }
                },
                "required": [
                  "invoiceId",
                  "subMerchantId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Invoice successfully sent."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/invoices/update": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "summary": "Update an invoice",
        "description": "Updates the details of an existing invoice, such as items, amounts, or dates.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invoiceId": {
                    "type": "string",
                    "example": "You need to change *this* with invoiceId from invoice creation",
                    "description": "The invoiceId of the invoice."
                  },
                  "subMerchantId": {
                    "type": "string",
                    "example": "jpt-sim-md-1",
                    "description": "The subMerchantId associated with the invoice."
                  },
                  "customerId": {
                    "type": "string",
                    "example": "65f7ee397a4bb65ed744b67f",
                    "description": "The customer id of the invoice."
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "example": "Support plan - monthly",
                          "description": "Description of the line item."
                        },
                        "quantity": {
                          "type": "number",
                          "example": 3,
                          "description": "Number of units."
                        },
                        "amount": {
                          "type": "number",
                          "example": 100,
                          "description": "Price per unit."
                        },
                        "taxRate": {
                          "type": "number",
                          "description": "Tax rate applied to this line item, as a percentage."
                        }
                      }
                    },
                    "description": "Line items included in the total amount."
                  },
                  "totalAmount": {
                    "type": "number",
                    "example": 300,
                    "description": "The total amount of the invoice."
                  },
                  "date": {
                    "type": "string",
                    "example": "2023-12-10T20:02:20.454Z",
                    "description": "The invoice date."
                  },
                  "dueDate": {
                    "type": "string",
                    "example": "2023-12-10T20:02:20.454Z",
                    "description": "The invoice dueDate."
                  },
                  "paymentTerm": {
                    "type": "string",
                    "example": "Due Upon Receipt",
                    "description": "The invoice paymentTerm."
                  }
                },
                "required": [
                  "invoiceId",
                  "subMerchantId",
                  "customerId",
                  "items",
                  "totalAmount",
                  "date",
                  "dueDate",
                  "paymentTerm"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Invoice successfully updated."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/invoices/void": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "summary": "Void an invoice",
        "description": "Voids an invoice so it can no longer be paid. Voided invoices remain visible for record-keeping.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "example": "874767775007",
                    "description": "The subMerchantId associated with the invoice."
                  },
                  "invoiceId": {
                    "type": "string",
                    "example": "0df2868e-0c65-41aa-959b-62f6909fa848",
                    "description": "The invoiceId associated with the invoice."
                  }
                },
                "required": [
                  "subMerchantId",
                  "customerId",
                  "items",
                  "totalAmount",
                  "date",
                  "dueDate",
                  "paymentTerm"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Invoice successfully created."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/invoices/delete": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "summary": "Delete an invoice",
        "description": "Permanently deletes an invoice. This cannot be undone; to cancel an invoice while keeping the record, use **Void** instead.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "example": "jpt-sim-md-1",
                    "description": "The subMerchantId associated with the invoice."
                  },
                  "invoiceId": {
                    "description": "The invoiceId of the invoice.",
                    "example": "You need to change *this* with invoiceId from invoice creation",
                    "type": "string"
                  }
                },
                "required": [
                  "invoiceId",
                  "subMerchantId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Invoice successfully deleted."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/subscriptions/plan": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Create a plan",
        "description": "Creates a subscription plan — the reusable template customers subscribe to. A plan contains one or more billing schedules, each with its own frequency and pricing model (flat, tiered, per-module, or usage-based), plus optional hosted session settings for customer-facing signup.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the plan.",
                    "example": "jpt-sim-md-1"
                  },
                  "name": {
                    "type": "string",
                    "description": "Plan's name.",
                    "example": "Black friday test plan"
                  },
                  "title": {
                    "type": "string",
                    "description": "Plan's title.",
                    "example": ""
                  },
                  "subTitle": {
                    "type": "string",
                    "description": "Plan's sub title.",
                    "example": ""
                  },
                  "description": {
                    "type": "string",
                    "description": "Plan's description.",
                    "example": "Black friday test plan description"
                  },
                  "schedules": {
                    "type": "array",
                    "description": "Array containing plan's schedules.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "order": {
                          "type": "number",
                          "description": "Schedule order.",
                          "example": 1
                        },
                        "label": {
                          "type": "string",
                          "description": "Schedule's label",
                          "example": "Silver"
                        },
                        "invoiceDescription": {
                          "type": "string",
                          "description": "Schedule's description to make invoice.",
                          "example": "Invoice for \"Silver\" schedule."
                        },
                        "cyclesQty": {
                          "type": "number",
                          "description": "Number of cycles of schedule",
                          "example": 3
                        },
                        "frequency": {
                          "type": "string",
                          "description": "Billing frequency",
                          "enum": [
                            "one-time",
                            "daily",
                            "weekly",
                            "every-28-days",
                            "biweekly",
                            "monthly",
                            "yearly"
                          ],
                          "example": "monthly"
                        },
                        "executionDays": {
                          "type": "array",
                          "items": {
                            "type": "number",
                            "description": "Array of billing numbers day[0-32] for monthly, 0 at period start(month's 1st), 32 at period end(month's last day)",
                            "example": 10
                          },
                          "description": "Days on which scheduled charges execute."
                        },
                        "pricingModel": {
                          "type": "object",
                          "description": "Pricing models params.",
                          "properties": {
                            "type": {
                              "type": "string",
                              "description": "Pricing model type, one of [\"free\", \"flat\", \"flatTiered\", \"perModule\", \"perUsageQuantity\", \"perUsageVolume\", \"perUsageTiered\"]. Depending of this value you must provide corresponding next atribute.",
                              "example": "flat"
                            },
                            "free": {
                              "type": "object",
                              "properties": {
                                "daysQty": {
                                  "type": "number",
                                  "description": "Free days quantity",
                                  "example": 10
                                }
                              },
                              "description": "Free trial configuration."
                            },
                            "flat": {
                              "type": "object",
                              "properties": {
                                "price": {
                                  "type": "number",
                                  "example": 100,
                                  "description": "Price charged each billing cycle."
                                }
                              },
                              "description": "Flat pricing: a fixed price per billing cycle."
                            },
                            "flatTiered": {
                              "type": "object",
                              "properties": {
                                "tiers": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "example": "Basic",
                                        "description": "Display name of the tier."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "Description of the tier shown to the customer."
                                      },
                                      "price": {
                                        "type": "number",
                                        "example": 100,
                                        "description": "Price of the tier per billing cycle."
                                      },
                                      "featuresSettings": {
                                        "type": "object",
                                        "properties": {
                                          "label": {
                                            "type": "string",
                                            "description": "Heading displayed above the feature list."
                                          },
                                          "features": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "icon": {
                                                  "type": "string",
                                                  "description": "Icon displayed next to the feature."
                                                },
                                                "name": {
                                                  "type": "string",
                                                  "description": "Display name."
                                                },
                                                "description": {
                                                  "type": "string",
                                                  "description": "Free-text description."
                                                },
                                                "link": {
                                                  "type": "string",
                                                  "description": "URL the feature links to."
                                                }
                                              }
                                            },
                                            "description": "Feature list displayed for this tier."
                                          }
                                        },
                                        "description": "Display settings for the tier's feature list."
                                      }
                                    }
                                  },
                                  "description": "Available tiers for this schedule."
                                }
                              },
                              "description": "Flat pricing with selectable tiers."
                            },
                            "perModule": {
                              "type": "object",
                              "properties": {
                                "modules": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "example": "Basic",
                                        "description": "Display name."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "Free-text description."
                                      },
                                      "price": {
                                        "type": "number",
                                        "example": 100,
                                        "description": "Price per billing cycle."
                                      },
                                      "featuresSettings": {
                                        "type": "object",
                                        "properties": {
                                          "label": {
                                            "type": "string",
                                            "description": "Heading displayed above the feature list."
                                          },
                                          "features": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "icon": {
                                                  "type": "string",
                                                  "description": "Icon displayed next to the feature."
                                                },
                                                "name": {
                                                  "type": "string",
                                                  "description": "Display name."
                                                },
                                                "description": {
                                                  "type": "string",
                                                  "description": "Free-text description."
                                                },
                                                "link": {
                                                  "type": "string",
                                                  "description": "URL the feature links to."
                                                }
                                              }
                                            },
                                            "description": "Feature list displayed for this tier."
                                          }
                                        },
                                        "description": "Display settings for the feature list."
                                      }
                                    }
                                  },
                                  "description": "Modules available for subscription."
                                }
                              },
                              "description": "Per-module pricing: the customer subscribes to individual modules."
                            },
                            "perUsageQuantity": {
                              "type": "object",
                              "properties": {
                                "unitPrice": {
                                  "type": "number",
                                  "example": 10,
                                  "description": "Price per unit of usage."
                                }
                              },
                              "description": "Usage-based pricing with a single per-unit price."
                            },
                            "perUsageVolume": {
                              "type": "object",
                              "properties": {
                                "steps": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "startQty": {
                                        "type": "number",
                                        "example": 1,
                                        "description": "First unit quantity this step applies to."
                                      },
                                      "endQty": {
                                        "type": "number",
                                        "example": 9,
                                        "description": "Last unit quantity this step applies to."
                                      },
                                      "unitPrice": {
                                        "type": "number",
                                        "example": 15,
                                        "description": "Price per unit within this volume step."
                                      }
                                    }
                                  },
                                  "description": "Volume pricing steps."
                                }
                              },
                              "description": "Usage-based pricing where the unit price depends on total volume."
                            },
                            "perUsageTiered": {
                              "type": "object",
                              "properties": {
                                "tiers": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "example": "Basic",
                                        "description": "Display name of the tier."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "Description of the tier shown to the customer."
                                      },
                                      "price": {
                                        "type": "number",
                                        "example": 100,
                                        "description": "Price of the tier per billing cycle."
                                      },
                                      "featuresSettings": {
                                        "type": "object",
                                        "properties": {
                                          "label": {
                                            "type": "string",
                                            "description": "Heading displayed above the feature list."
                                          },
                                          "features": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "icon": {
                                                  "type": "string",
                                                  "description": "Icon displayed next to the feature."
                                                },
                                                "name": {
                                                  "type": "string",
                                                  "description": "Display name."
                                                },
                                                "description": {
                                                  "type": "string",
                                                  "description": "Free-text description."
                                                },
                                                "link": {
                                                  "type": "string",
                                                  "description": "URL the feature links to."
                                                }
                                              }
                                            },
                                            "description": "Feature list displayed for this tier."
                                          }
                                        },
                                        "description": "Display settings for the tier's feature list."
                                      }
                                    }
                                  },
                                  "description": "Available tiers for this schedule."
                                }
                              },
                              "description": "Usage-based pricing with tiered rates per volume step."
                            }
                          }
                        },
                        "enabled": {
                          "type": "boolean",
                          "example": true,
                          "description": "Whether this setting is enabled."
                        },
                        "featuresEnabled": {
                          "type": "boolean",
                          "example": false,
                          "description": "Whether tier features are enabled for this schedule."
                        }
                      }
                    }
                  },
                  "hostedSession": {
                    "type": "object",
                    "description": "Object to edit configuration of created hosted session.",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "Only required field, setting enabled = true, we create a session with default values. In case you want customization, append below data.",
                        "example": true
                      },
                      "paymentMethods": {
                        "type": "object",
                        "properties": {
                          "defaultMethod": {
                            "type": "string",
                            "description": "Default payment method one of [\"creditCard\",\"eCheck\", \"applePay\",\"googlePay\"]",
                            "example": "creditCard"
                          },
                          "creditCard": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Credit card acceptance settings for the hosted page."
                          },
                          "eCheck": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "eCheck (ACH) acceptance settings for the hosted page."
                          },
                          "applePay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Apple Pay acceptance settings for the hosted page."
                          },
                          "googlePay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Google Pay acceptance settings for the hosted page."
                          }
                        },
                        "description": "Payment methods offered on the hosted page."
                      },
                      "flow": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "Default payment method one of [\"standalone\",\"redirect\"]",
                            "example": "redirect"
                          },
                          "redirect": {
                            "type": "object",
                            "properties": {
                              "successUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/successUrl",
                                "description": "URL the customer is redirected to after successful payment."
                              },
                              "cancelUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/cancelUrl",
                                "description": "URL the customer is redirected to if they cancel."
                              },
                              "backUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/backUrl",
                                "description": "URL the customer is redirected to when they navigate back."
                              }
                            },
                            "description": "URLs the customer is redirected to during the flow."
                          }
                        },
                        "description": "Navigation behavior of the hosted page."
                      },
                      "functions": {
                        "type": "object",
                        "description": "Hosted session functions",
                        "properties": {
                          "collectBillingAddress": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's billing address during checkout."
                          },
                          "collectShippingAddress": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's shipping address during checkout."
                          },
                          "collectPhoneNumber": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's phone number during checkout."
                          },
                          "callToAction": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "Whether this setting is enabled."
                              },
                              "label": {
                                "type": "string",
                                "description": "Custom button label"
                              },
                              "note": {
                                "type": "string",
                                "description": "Custom button label"
                              }
                            },
                            "description": "Customization of the pay button."
                          },
                          "notes": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Free-text notes displayed on the hosted page."
                          },
                          "collectEmail": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "Whether this setting is enabled."
                              },
                              "updateCustomer": {
                                "type": "boolean",
                                "example": false,
                                "description": "When true, the collected value is saved to the customer record."
                              }
                            },
                            "description": "Collect the customer's email address during checkout."
                          }
                        }
                      },
                      "constraints": {
                        "type": "object",
                        "properties": {
                          "timeLimit": {
                            "type": "number",
                            "description": "Number of minutes to keep session active",
                            "example": 30
                          }
                        },
                        "description": "Limits applied to the hosted session."
                      },
                      "usage": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "Usage type of hosted session. Posible values [\"single_use\",\"multi_use\"]",
                            "example": "multi_use"
                          },
                          "quantity": {
                            "type": "string",
                            "description": "In case of usage type \"multi_use\", this attribute update the hosted session payments/subscriptions limit.",
                            "example": 5
                          }
                        },
                        "description": "How many times the hosted session link can be used."
                      }
                    }
                  }
                },
                "required": [
                  "subMerchantId",
                  "name",
                  "description",
                  "schedules"
                ]
              },
              "examples": {
                "createPlan": {
                  "summary": "Create a subscription plan example",
                  "value": {
                    "subMerchantId": "jpt-sim-md-1",
                    "name": "Test plan",
                    "description": "Plan description",
                    "title": "Test plan",
                    "subTitle": "Sub title plan",
                    "schedules": [
                      {
                        "order": 1,
                        "label": "Free week",
                        "invoiceDescription": "Invoice desc for free week.",
                        "frequency": "one-time",
                        "cyclesQty": 1,
                        "executionDays": [
                          1
                        ],
                        "pricingModel": {
                          "type": "free",
                          "free": {
                            "daysQty": 7
                          }
                        },
                        "featuresEnabled": false
                      },
                      {
                        "order": 2,
                        "label": "Monthly plan",
                        "invoiceDescription": "Invoice description for monthly plan.",
                        "frequency": "monthly",
                        "cyclesQty": 60,
                        "executionDays": [
                          0
                        ],
                        "pricingModel": {
                          "type": "perUsageQuantity",
                          "perUsageQuantity": {
                            "unit": "device",
                            "unitPrice": 10
                          }
                        },
                        "featuresEnabled": false
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Plan successfully created."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/subscriptions/plan/update": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Update a plan",
        "description": "Updates an existing subscription plan's details, schedules, or hosted session settings.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "planId": {
                    "type": "string",
                    "description": "The planId that ident the subscription plan"
                  },
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the plan."
                  },
                  "name": {
                    "type": "string",
                    "description": "Plan's name.",
                    "example": "Black friday test plan"
                  },
                  "title": {
                    "type": "string",
                    "description": "Plan's title.",
                    "example": ""
                  },
                  "subTitle": {
                    "type": "string",
                    "description": "Plan's sub title.",
                    "example": ""
                  },
                  "description": {
                    "type": "string",
                    "description": "Plan's description.",
                    "example": "Black friday test plan description"
                  },
                  "schedules": {
                    "type": "array",
                    "description": "Array containing plan's schedules.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "order": {
                          "type": "number",
                          "description": "Schedule order.",
                          "example": 1
                        },
                        "label": {
                          "type": "string",
                          "description": "Schedule's label",
                          "example": "Silver"
                        },
                        "invoiceDescription": {
                          "type": "string",
                          "description": "Schedule's description to make invoice.",
                          "example": "Invoice for \"Silver\" schedule."
                        },
                        "cyclesQty": {
                          "type": "number",
                          "description": "Number of cycles of schedule",
                          "example": 3
                        },
                        "frequency": {
                          "type": "string",
                          "description": "Billing frequency",
                          "enum": [
                            "one-time",
                            "daily",
                            "weekly",
                            "every-28-days",
                            "biweekly",
                            "monthly",
                            "yearly"
                          ],
                          "example": "monthly"
                        },
                        "executionDays": {
                          "type": "array",
                          "items": {
                            "type": "number",
                            "description": "Array of billing numbers day[0-32] for monthly, 0 at period start(month's 1st), 32 at period end(month's last day)",
                            "example": 10
                          },
                          "description": "Days on which scheduled charges execute."
                        },
                        "pricingModel": {
                          "type": "object",
                          "description": "Pricing models params.",
                          "properties": {
                            "type": {
                              "type": "string",
                              "description": "Pricing model type, one of [\"free\", \"flat\", \"flatTiered\", \"perModule\", \"perUsageQuantity\", \"perUsageVolume\", \"perUsageTiered\"]. Depending of this value you must provide corresponding next atribute.",
                              "example": "flat"
                            },
                            "free": {
                              "type": "object",
                              "properties": {
                                "daysQty": {
                                  "type": "number",
                                  "description": "Free days quantity",
                                  "example": 10
                                }
                              },
                              "description": "Free trial configuration."
                            },
                            "flat": {
                              "type": "object",
                              "properties": {
                                "price": {
                                  "type": "number",
                                  "example": 100,
                                  "description": "Price charged each billing cycle."
                                }
                              },
                              "description": "Flat pricing: a fixed price per billing cycle."
                            },
                            "flatTiered": {
                              "type": "object",
                              "properties": {
                                "tiers": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "example": "Basic",
                                        "description": "Display name of the tier."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "Description of the tier shown to the customer."
                                      },
                                      "price": {
                                        "type": "number",
                                        "example": 100,
                                        "description": "Price of the tier per billing cycle."
                                      },
                                      "featuresSettings": {
                                        "type": "object",
                                        "properties": {
                                          "label": {
                                            "type": "string",
                                            "description": "Heading displayed above the feature list."
                                          },
                                          "features": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "icon": {
                                                  "type": "string",
                                                  "description": "Icon displayed next to the feature."
                                                },
                                                "name": {
                                                  "type": "string",
                                                  "description": "Display name."
                                                },
                                                "description": {
                                                  "type": "string",
                                                  "description": "Free-text description."
                                                },
                                                "link": {
                                                  "type": "string",
                                                  "description": "URL the feature links to."
                                                }
                                              }
                                            },
                                            "description": "Feature list displayed for this tier."
                                          }
                                        },
                                        "description": "Display settings for the tier's feature list."
                                      }
                                    }
                                  },
                                  "description": "Available tiers for this schedule."
                                }
                              },
                              "description": "Flat pricing with selectable tiers."
                            },
                            "perModule": {
                              "type": "object",
                              "properties": {
                                "modules": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "example": "Basic",
                                        "description": "Display name."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "Free-text description."
                                      },
                                      "price": {
                                        "type": "number",
                                        "example": 100,
                                        "description": "Price per billing cycle."
                                      },
                                      "featuresSettings": {
                                        "type": "object",
                                        "properties": {
                                          "label": {
                                            "type": "string",
                                            "description": "Heading displayed above the feature list."
                                          },
                                          "features": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "icon": {
                                                  "type": "string",
                                                  "description": "Icon displayed next to the feature."
                                                },
                                                "name": {
                                                  "type": "string",
                                                  "description": "Display name."
                                                },
                                                "description": {
                                                  "type": "string",
                                                  "description": "Free-text description."
                                                },
                                                "link": {
                                                  "type": "string",
                                                  "description": "URL the feature links to."
                                                }
                                              }
                                            },
                                            "description": "Feature list displayed for this tier."
                                          }
                                        },
                                        "description": "Display settings for the feature list."
                                      }
                                    }
                                  },
                                  "description": "Modules available for subscription."
                                }
                              },
                              "description": "Per-module pricing: the customer subscribes to individual modules."
                            },
                            "perUsageQuantity": {
                              "type": "object",
                              "properties": {
                                "unitPrice": {
                                  "type": "number",
                                  "example": 10,
                                  "description": "Price per unit of usage."
                                }
                              },
                              "description": "Usage-based pricing with a single per-unit price."
                            },
                            "perUsageVolume": {
                              "type": "object",
                              "properties": {
                                "steps": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "startQty": {
                                        "type": "number",
                                        "example": 1,
                                        "description": "First unit quantity this step applies to."
                                      },
                                      "endQty": {
                                        "type": "number",
                                        "example": 9,
                                        "description": "Last unit quantity this step applies to."
                                      },
                                      "unitPrice": {
                                        "type": "number",
                                        "example": 15,
                                        "description": "Price per unit within this volume step."
                                      }
                                    }
                                  },
                                  "description": "Volume pricing steps."
                                }
                              },
                              "description": "Usage-based pricing where the unit price depends on total volume."
                            },
                            "perUsageTiered": {
                              "type": "object",
                              "properties": {
                                "tiers": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "example": "Basic",
                                        "description": "Display name of the tier."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "Description of the tier shown to the customer."
                                      },
                                      "price": {
                                        "type": "number",
                                        "example": 100,
                                        "description": "Price of the tier per billing cycle."
                                      },
                                      "featuresSettings": {
                                        "type": "object",
                                        "properties": {
                                          "label": {
                                            "type": "string",
                                            "description": "Heading displayed above the feature list."
                                          },
                                          "features": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "icon": {
                                                  "type": "string",
                                                  "description": "Icon displayed next to the feature."
                                                },
                                                "name": {
                                                  "type": "string",
                                                  "description": "Display name."
                                                },
                                                "description": {
                                                  "type": "string",
                                                  "description": "Free-text description."
                                                },
                                                "link": {
                                                  "type": "string",
                                                  "description": "URL the feature links to."
                                                }
                                              }
                                            },
                                            "description": "Feature list displayed for this tier."
                                          }
                                        },
                                        "description": "Display settings for the tier's feature list."
                                      }
                                    }
                                  },
                                  "description": "Available tiers for this schedule."
                                }
                              },
                              "description": "Usage-based pricing with tiered rates per volume step."
                            }
                          }
                        },
                        "enabled": {
                          "type": "boolean",
                          "example": true,
                          "description": "Whether this setting is enabled."
                        },
                        "featuresEnabled": {
                          "type": "boolean",
                          "example": false,
                          "description": "Whether tier features are enabled for this schedule."
                        }
                      }
                    }
                  },
                  "hostedSession": {
                    "type": "object",
                    "description": "Object to edit configuration of created hosted session.",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "Only required field, setting enabled = true, we create a session with default values. In case you want customization, append below data.",
                        "example": true
                      },
                      "paymentMethods": {
                        "type": "object",
                        "properties": {
                          "defaultMethod": {
                            "type": "string",
                            "description": "Default payment method one of [\"creditCard\",\"eCheck\", \"applePay\",\"googlePay\"]",
                            "example": "creditCard"
                          },
                          "creditCard": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Credit card acceptance settings for the hosted page."
                          },
                          "eCheck": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "eCheck (ACH) acceptance settings for the hosted page."
                          },
                          "applePay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Apple Pay acceptance settings for the hosted page."
                          },
                          "googlePay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Google Pay acceptance settings for the hosted page."
                          }
                        },
                        "description": "Payment methods offered on the hosted page."
                      },
                      "flow": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "Default payment method one of [\"standalone\",\"redirect\"]",
                            "example": "redirect"
                          },
                          "redirect": {
                            "type": "object",
                            "properties": {
                              "successUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/successUrl",
                                "description": "URL the customer is redirected to after successful payment."
                              },
                              "cancelUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/cancelUrl",
                                "description": "URL the customer is redirected to if they cancel."
                              },
                              "backUrl": {
                                "type": "string",
                                "example": "https://yoursite.com/backUrl",
                                "description": "URL the customer is redirected to when they navigate back."
                              }
                            },
                            "description": "URLs the customer is redirected to during the flow."
                          }
                        },
                        "description": "Navigation behavior of the hosted page."
                      },
                      "functions": {
                        "type": "object",
                        "description": "Hosted session functions",
                        "properties": {
                          "collectBillingAddress": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's billing address during checkout."
                          },
                          "collectShippingAddress": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's shipping address during checkout."
                          },
                          "collectPhoneNumber": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Collect the customer's phone number during checkout."
                          },
                          "callToAction": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether this setting is enabled."
                              },
                              "label": {
                                "type": "string",
                                "description": "Custom button label",
                                "example": "Pay"
                              },
                              "note": {
                                "type": "string",
                                "description": "Custom button label",
                                "example": "Note desc."
                              }
                            },
                            "description": "Customization of the pay button."
                          },
                          "notes": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Free-text notes displayed on the hosted page."
                          },
                          "collectEmail": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether this setting is enabled."
                              },
                              "updateCustomer": {
                                "type": "boolean",
                                "example": false,
                                "description": "When true, the collected value is saved to the customer record."
                              }
                            },
                            "description": "Collect the customer's email address during checkout."
                          }
                        }
                      },
                      "constraints": {
                        "type": "object",
                        "properties": {
                          "timeLimit": {
                            "type": "number",
                            "description": "Number of minutes to keep session active",
                            "example": 30
                          }
                        },
                        "description": "Limits applied to the hosted session."
                      },
                      "usage": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "Usage type of hosted session. Posible values [\"single_use\",\"multi_use\"]",
                            "example": "multi_use"
                          },
                          "quantity": {
                            "type": "string",
                            "description": "In case of usage type \"multi_use\", this attribute update the hosted session payments/subscriptions limit.",
                            "example": 5
                          }
                        },
                        "description": "How many times the hosted session link can be used."
                      }
                    }
                  }
                },
                "required": [
                  "planId",
                  "subMerchantId",
                  "name",
                  "description",
                  "schedules"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Plan successfully created."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/subscriptions/plan/activate": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Activate a plan",
        "description": "Activates a plan so customers can subscribe to it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the plan."
                  },
                  "planId": {
                    "type": "string",
                    "example": "c23b205a-244b-4962-9337-a5b68f1c874f",
                    "description": "Unique identifier of the subscription plan."
                  }
                },
                "required": [
                  "subMerchantId",
                  "planId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Plan successfully activated."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/subscriptions/plan/deactivate": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Deactivate a plan",
        "description": "Deactivates a plan so no new subscriptions can be created from it. Existing subscriptions are not affected.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the plan."
                  },
                  "planId": {
                    "type": "string",
                    "example": "c23b205a-244b-4962-9337-a5b68f1c874f",
                    "description": "Unique identifier of the subscription plan."
                  }
                },
                "required": [
                  "subMerchantId",
                  "planId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Plan successfully deactivated."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/subscriptions/plan/delete": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Delete a plan",
        "description": "Permanently deletes a plan. This cannot be undone; to stop new signups temporarily, use **Deactivate** instead.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the plan."
                  },
                  "planId": {
                    "type": "string",
                    "example": "c23b205a-244b-4962-9337-a5b68f1c874f",
                    "description": "Unique identifier of the subscription plan."
                  }
                },
                "required": [
                  "subMerchantId",
                  "planId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Plan successfully deleted."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/subscriptions": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Create a subscription",
        "description": "Subscribes a customer to one or more plan schedules, billed against a stored payment token. Billing runs automatically at each schedule's frequency.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the subscription."
                  },
                  "planId": {
                    "type": "string",
                    "description": "The planId of the existing plan you subscribe to.",
                    "example": "c23b205a-244b-4962-9337-a5b68f1c874f"
                  },
                  "customerId": {
                    "type": "string",
                    "description": "The customer id of the subscription."
                  },
                  "paymentToken": {
                    "type": "object",
                    "description": "The customer's token associated with the subscription.",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "Type of token supplied."
                      },
                      "token": {
                        "type": "object",
                        "properties": {
                          "token": {
                            "type": "string",
                            "description": "The token of the subscription."
                          },
                          "provider": {
                            "type": "string",
                            "description": "The provider of the subscription."
                          }
                        },
                        "description": "Token payload returned by tokenization."
                      }
                    }
                  },
                  "schedules": {
                    "type": "array",
                    "description": "Array containing schedules pricing models params when needed.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "scheduleId": {
                          "type": "string",
                          "example": "c23b205a-244b-4962-9337-a5b68f1c874f",
                          "description": "Identifier of the plan schedule the subscription uses."
                        },
                        "pricingModel": {
                          "type": "object",
                          "description": "Pricing models params. Depending of schedule pricing model you must provide corresponding params.",
                          "properties": {
                            "qty": {
                              "type": "number",
                              "example": 100,
                              "description": "Quantity purchased, for quantity-based pricing models."
                            },
                            "selectedTier": {
                              "type": "string",
                              "example": "c23b205a-244b-4962-9337-a5b68f1c874f",
                              "description": "ID of the tier selected for this subscription."
                            },
                            "selectedModules": {
                              "type": "string",
                              "example": [
                                "c23b205a-244b-4962-9337-a5b68f1c874f",
                                "c23b205a-244b-4962-9337-a5b68f1c874e"
                              ],
                              "description": "IDs of the modules selected for this subscription."
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "subMerchantId",
                  "planId",
                  "customerId",
                  "token"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Subscription successfully created."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/subscriptions/update/paymenttoken": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Update a subscription payment token",
        "description": "Replaces the payment token billed for an existing subscription — for example, when the customer changes cards.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the subscription."
                  },
                  "subscriptionId": {
                    "type": "string",
                    "description": "The ID of the subscription to update.",
                    "example": "71a6c18f-7203-4eb6-862c-3acb753e7856"
                  },
                  "paymentToken": {
                    "type": "object",
                    "description": "The new payment token to associate with the subscription.",
                    "properties": {
                      "type": {
                        "type": "string",
                        "example": "creditcard",
                        "description": "Type of token supplied."
                      },
                      "token": {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "description": "The payment provider.",
                            "example": "jupico"
                          },
                          "token": {
                            "type": "string",
                            "description": "The payment token value."
                          }
                        },
                        "description": "Token payload returned by tokenization."
                      }
                    }
                  }
                },
                "required": [
                  "subMerchantId",
                  "subscriptionId",
                  "paymentToken"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payment token successfully updated."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/subscriptions/activate": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Activate a subscription",
        "description": "Activates a subscription, resuming scheduled billing.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the subscription."
                  },
                  "subscriptionId": {
                    "type": "string",
                    "example": "c23b205a-244b-4962-9337-a5b68f1c874f",
                    "description": "Unique identifier of the subscription."
                  }
                },
                "required": [
                  "subMerchantId",
                  "subscriptionId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Subscription successfully activated."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/subscriptions/deactivate": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Deactivate a subscription",
        "description": "Deactivates a subscription, pausing scheduled billing until reactivated.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the subscription."
                  },
                  "subscriptionId": {
                    "type": "string",
                    "example": "c23b205a-244b-4962-9337-a5b68f1c874f",
                    "description": "Unique identifier of the subscription."
                  }
                },
                "required": [
                  "subMerchantId",
                  "subscriptionId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Subscription successfully deactivated."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/subscriptions/delete": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Delete a subscription",
        "description": "Permanently deletes a subscription and stops all future billing. This cannot be undone; to pause billing, use **Deactivate** instead.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the subscription."
                  },
                  "subscriptionId": {
                    "type": "string",
                    "example": "c23b205a-244b-4962-9337-a5b68f1c874f",
                    "description": "Unique identifier of the subscription."
                  }
                },
                "required": [
                  "subMerchantId",
                  "subscriptionId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Subscription successfully deleted."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/installments": {
      "post": {
        "tags": [
          "Installments"
        ],
        "summary": "Create an installment plan",
        "description": "Creates an installment plan that splits a total amount into scheduled payments for a customer. The initial charge depends on the deposit and start date: with no deposit and no future start date, the first payment is charged immediately; with a future start date and no deposit, only card validation is performed; with a deposit and no future start date, the deposit plus the first payment are charged immediately; with both, only the deposit is charged immediately.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the installment.",
                    "example": "mtck-md-1"
                  },
                  "customerId": {
                    "type": "string",
                    "description": "The ID of the customer for this installment.",
                    "example": "2ce8fe11-e111-4d76-a59e-7914d903ec12"
                  },
                  "totalAmount": {
                    "type": "number",
                    "description": "The total amount to be paid across all installments.",
                    "example": 100
                  },
                  "deposit": {
                    "type": "object",
                    "description": "Optional deposit charged at creation time.",
                    "properties": {
                      "amount": {
                        "type": "number",
                        "description": "Deposit amount. Use 0 for no deposit.",
                        "example": 10
                      }
                    }
                  },
                  "payments": {
                    "type": "object",
                    "description": "Recurring payment schedule configuration.",
                    "properties": {
                      "startDate": {
                        "type": "string",
                        "description": "Optional first installment date in YYYY-MM-DD format. If omitted or today, first payment is charged immediately.",
                        "example": "2026-02-10"
                      },
                      "frequency": {
                        "type": "string",
                        "description": "Billing frequency.",
                        "example": "monthly"
                      },
                      "amount": {
                        "type": "number",
                        "description": "Amount per installment payment.",
                        "example": 9
                      },
                      "qty": {
                        "type": "number",
                        "description": "Number of installment payments.",
                        "example": 10
                      }
                    },
                    "required": [
                      "frequency",
                      "amount",
                      "qty"
                    ]
                  },
                  "paymentToken": {
                    "type": "object",
                    "description": "The customer's permanent payment token.",
                    "properties": {
                      "type": {
                        "type": "string",
                        "example": "creditcard",
                        "description": "Type of token supplied."
                      },
                      "token": {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "example": "jupico",
                            "description": "Payment provider that issued the token (for example, `jupico`)."
                          },
                          "token": {
                            "type": "string",
                            "example": "f309450d-ef37-42f1-ac04-b04192a8d65f",
                            "description": "The token value."
                          }
                        },
                        "description": "Token payload returned by tokenization."
                      }
                    }
                  }
                },
                "required": [
                  "subMerchantId",
                  "customerId",
                  "totalAmount",
                  "payments",
                  "paymentToken"
                ]
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "201": {
            "description": "Installment successfully created."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/installments/activate": {
      "post": {
        "tags": [
          "Installments"
        ],
        "summary": "Activate an installment plan",
        "description": "Reactivates a previously deactivated installment plan, resuming scheduled payments.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the installment."
                  },
                  "installmentId": {
                    "type": "string",
                    "description": "The ID of the installment to activate.",
                    "example": "fa206a06-6275-4119-bbe0-56dc294cb90f"
                  }
                },
                "required": [
                  "subMerchantId",
                  "installmentId"
                ]
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Installment successfully activated."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/installments/deactivate": {
      "post": {
        "tags": [
          "Installments"
        ],
        "summary": "Deactivate an installment plan",
        "description": "Pauses an active installment plan, suspending scheduled payments until reactivated.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the installment."
                  },
                  "installmentId": {
                    "type": "string",
                    "description": "The ID of the installment to deactivate.",
                    "example": "fa206a06-6275-4119-bbe0-56dc294cb90f"
                  }
                },
                "required": [
                  "subMerchantId",
                  "installmentId"
                ]
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Installment successfully deactivated."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/installments/update/paymenttoken": {
      "post": {
        "tags": [
          "Installments"
        ],
        "summary": "Update an installment payment token",
        "description": "Replaces the payment token charged for an existing installment plan — for example, when the customer changes cards.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the installment."
                  },
                  "installmentId": {
                    "type": "string",
                    "description": "The ID of the installment to update.",
                    "example": "a3e535f7-985e-4252-ae0f-9c9448907d86"
                  },
                  "paymentToken": {
                    "type": "object",
                    "description": "The new payment token to associate with the installment.",
                    "properties": {
                      "type": {
                        "type": "string",
                        "example": "creditcard",
                        "description": "Type of token supplied."
                      },
                      "token": {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "description": "The payment provider.",
                            "example": "jupico"
                          },
                          "token": {
                            "type": "string",
                            "description": "The permanent payment token.",
                            "example": "f309450d-ef37-42f1-ac04-b04192a8d65f"
                          }
                        },
                        "description": "Token payload returned by tokenization."
                      }
                    }
                  }
                },
                "required": [
                  "subMerchantId",
                  "installmentId",
                  "paymentToken"
                ]
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Installment payment token successfully updated."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/installments/delete": {
      "post": {
        "tags": [
          "Installments"
        ],
        "summary": "Delete an installment plan",
        "description": "Permanently deletes an installment plan and stops all future payments. This cannot be undone; to pause payments, use **Deactivate** instead.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "description": "The subMerchantId associated with the installment."
                  },
                  "installmentId": {
                    "type": "string",
                    "description": "The ID of the installment to delete.",
                    "example": "fa206a06-6275-4119-bbe0-56dc294cb90f"
                  }
                },
                "required": [
                  "subMerchantId",
                  "installmentId"
                ]
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Installment successfully deleted."
          },
          "400": {
            "description": "Bad Request. Invalid input."
          },
          "401": {
            "description": "Unauthorized."
          },
          "500": {
            "description": "Internal Server Error."
          }
        }
      }
    },
    "/v1/payouts/instruction": {
      "post": {
        "tags": [
          "Payouts"
        ],
        "summary": "Create a payout instruction",
        "requestBody": {
          "$ref": "#/components/requestBodies/createPayout"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "201": {
            "$ref": "#/components/responses/createPayout"
          }
        },
        "description": "Creates a payout instruction that sends funds from the submerchant's available balance to a tokenized bank account. Check the balance first with **Check available balance** under Reporting & Queries."
      }
    },
    "/v1/payouts/creditcard/instruction": {
      "post": {
        "tags": [
          "Payouts"
        ],
        "summary": "Create a card-balance payout",
        "requestBody": {
          "$ref": "#/components/requestBodies/createPayout"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "201": {
            "$ref": "#/components/responses/createPayout"
          }
        },
        "description": "Creates a payout instruction that draws only from the submerchant's balance originated by card transactions. Check the card balance first with **Check available card balance**."
      }
    },
    "/v1/payouts/echeck/instruction": {
      "post": {
        "tags": [
          "Payouts"
        ],
        "summary": "Create an eCheck-balance payout",
        "requestBody": {
          "$ref": "#/components/requestBodies/createPayout"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "201": {
            "$ref": "#/components/responses/createPayout"
          }
        },
        "description": "Creates a payout instruction that draws only from the submerchant's balance originated by eCheck (ACH) transactions. Check the eCheck balance first with **Check available eCheck balance**."
      }
    },
    "/v1/payouts/instruction/void": {
      "post": {
        "tags": [
          "Payouts"
        ],
        "summary": "Void a payout instruction",
        "requestBody": {
          "$ref": "#/components/requestBodies/voidPayout"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/voidPayout"
          }
        },
        "description": "Voids a payout instruction, returning the funds to the submerchant's available balance. Send both `subMerchantId` and `payoutId`; a request without `subMerchantId` is rejected with HTTP 401 `auth_invalid_submerchant`. Only a payout in `pending` status can be voided — once it has been approved (`ack`) or sent, it can no longer be voided."
      }
    },
    "/v1/query/transactions": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "List transactions",
        "description": "Returns transactions matching the supplied filters. Supports the standard query envelope for filtering (including `metadata.<key>`), sorting, and pagination.",
        "operationId": "Query",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "processing[batchDate]": {
                    "type": "string",
                    "format": "date",
                    "description": "The batch processing date"
                  },
                  "metadata.test": {
                    "type": "string",
                    "example": "test",
                    "description": "Example metadata filter. Filter on any metadata key as `metadata.<key>`."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/transactionQuery"
          }
        }
      }
    },
    "/v1/query/transactions/timeline": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "Get a transaction timeline",
        "description": "Returns a chronological timeline of transaction events, showing how activity evolved over time.",
        "operationId": "Timeline",
        "security": [
          {
            "basicAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "examples": {
                "Timeline": {
                  "value": {
                    "transactionId": "Id of the transaction to get timeline"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/transactionPath"
          }
        }
      }
    },
    "/v1/query/transactions/receipt": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "Get a transaction receipt",
        "description": "Returns the receipt data for a single transaction, ready to render or send to the cardholder. It combines the transaction, the sub-merchant's business details, and the payment method into one flat payload, so you do not have to assemble a receipt from several queries. Unlike the other Query endpoints this is a single-record lookup: it takes one `transactionId` and one `subMerchantId`, and does not accept sorting, paging, or filtering.",
        "operationId": "transactionReceipt",
        "requestBody": {
          "$ref": "#/components/requestBodies/transactionReceipt"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/transactionReceipt"
          }
        }
      }
    },
    "/v1/query/fees": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "List fees",
        "description": "Returns fee records assessed against merchants, including per-transaction and recurring fees. Supports the standard query envelope.",
        "operationId": "findAllFees",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findAllFees"
          }
        }
      }
    },
    "/v1/query/merchants/bankaccounts": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "List merchant bank accounts",
        "description": "Returns the bank accounts registered to your merchants, including account details and status.",
        "operationId": "findAllMerchantsBankaccounts",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findAllMerchantsBankaccounts"
          }
        }
      }
    },
    "/v1/query/merchants/applications": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "List merchant applications",
        "description": "Returns provisioning applications with their status, applicant information, and associated submerchants. Use this to track onboarding progress.",
        "operationId": "findProvisioningApplications",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findProvisioningApplications"
          }
        }
      }
    },
    "/v1/query/onboardinginvites": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "List onboarding invites",
        "description": "Returns onboarding invites and their current status — created, sent, completed, or cancelled.",
        "operationId": "findOnboardingInvites",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findOnboardingInvites"
          }
        }
      }
    },
    "/v1/query/settlements/submerchant": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "List submerchant settlements",
        "description": "Returns settlement records for your submerchants, including settlement timing and amounts.",
        "operationId": "findSettlementsSubmerchant",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findSettlementsSubmerchant"
          }
        }
      }
    },
    "/v1/query/settlements/service-provider": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "List Service Provider settlements",
        "description": "Returns settlement records at the Service Provider level, including settlement timing and amounts.",
        "operationId": "findSettlementsServiceProvider",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findSettlementsServiceProvider"
          }
        }
      }
    },
    "/v1/query/payouts/instructions": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "List payout instructions",
        "description": "Returns payout instructions and their statuses.",
        "operationId": "findAllPayoutInstructions",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findAllPayoutInstructions"
          }
        }
      }
    },
    "/v1/query/payouts/balance/available": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "Check available balance",
        "description": "Returns the submerchant's total available balance for payouts. The response carries a single `amount` — the balance available to pay out right now.",
        "operationId": "findBalanceAvailable",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "example": "874767775007",
                    "description": "The unique identifier for the submerchant."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findBalance"
          }
        }
      }
    },
    "/v1/query/payouts/balance/creditcard/available": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "Check available card balance",
        "description": "Returns the submerchant's available payout balance originated by card transactions.",
        "operationId": "findBalanceCreditCard",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "example": "874767775007",
                    "description": "The unique identifier for the submerchant."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findBalanceCreditCard"
          }
        }
      }
    },
    "/v1/query/payouts/balanc/echeck/available": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "Check available eCheck balance",
        "description": "Returns the submerchant's available payout balance originated by eCheck (ACH) transactions.",
        "operationId": "findBalanceEcheck",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subMerchantId": {
                    "type": "string",
                    "example": "874767775007",
                    "description": "The unique identifier for the submerchant."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findBalanceEcheck"
          }
        }
      }
    },
    "/v1/query/disputes": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "List disputes",
        "description": "Returns disputes filed against transactions, including dispute status and resolution details.",
        "operationId": "findDisputes",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findDisputes"
          }
        }
      }
    },
    "/v1/query/disputes/chartslines": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "Get dispute history",
        "description": "Returns the event timeline for disputes, detailing each stage and status change.",
        "operationId": "findDisputesChartslines",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findDisputesChartLines"
          }
        }
      }
    },
    "/v1/query/checkouts": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "List checkout sessions",
        "description": "Returns checkout sessions, both active and past, with their configuration and status.",
        "operationId": "findCheckouts",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findCheckouts"
          }
        }
      }
    },
    "/v1/query/paymentlinks": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "List payment links",
        "description": "Returns payment links with usage details and status.",
        "operationId": "findPaymentLinks",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findPaymentLinks"
          }
        }
      }
    },
    "/v1/query/invoices": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "List invoices",
        "description": "Returns invoices with amounts, statuses, and associated customers and submerchants.",
        "operationId": "findInvoices",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findInvoices"
          }
        }
      }
    },
    "/v1/query/subscriptions": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "List subscriptions",
        "description": "Returns subscriptions, both active and inactive, including their schedules and billing status.",
        "operationId": "findAllSubscription",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findAllQuerySubscriptions"
          }
        }
      }
    },
    "/v1/query/subscriptions/plan": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "List plans",
        "description": "Returns subscription plans with their schedules and pricing configuration.",
        "operationId": "findAllPlan",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findAllPlans"
          }
        }
      }
    },
    "/v1/query/subscriptions/plan/{planId}": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "Get a plan",
        "description": "Returns a single subscription plan by its `planId`, including schedules and pricing configuration.",
        "parameters": [
          {
            "in": "path",
            "name": "planId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "planID"
          }
        ],
        "operationId": "findPlanById",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/findPlanById"
          }
        }
      }
    },
    "/v1/query/installments": {
      "post": {
        "tags": [
          "Query"
        ],
        "summary": "List installment plans",
        "description": "Returns installment plans, both active and inactive, including payment schedules and statuses.",
        "operationId": "queryInstallments",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/queryInstallments"
          }
        }
      }
    },
    "/v1/exchange-rates/rates": {
      "post": {
        "tags": [
          "Currency Exchange API"
        ],
        "summary": "Get exchange rates",
        "description": "Returns exchange rates for a given base currency. If symbols is omitted, all supported currencies are returned.",
        "operationId": "getExchangeRates",
        "requestBody": {
          "$ref": "#/components/requestBodies/getExchangeRates"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/getExchangeRates"
          }
        }
      }
    },
    "/v1/exchange-rates/convert": {
      "post": {
        "tags": [
          "Currency Exchange API"
        ],
        "summary": "Convert currency",
        "description": "Converts an amount from one currency to another. convertedAmount is rounded down to 2 decimal places.",
        "operationId": "convertCurrency",
        "requestBody": {
          "$ref": "#/components/requestBodies/convertCurrency"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/convertCurrency"
          }
        }
      }
    },
    "/v1/exchange-rates/supported-currencies": {
      "post": {
        "tags": [
          "Currency Exchange API"
        ],
        "summary": "Get supported currencies",
        "description": "Returns the list of all supported currency codes, sorted alphabetically.",
        "operationId": "getSupportedCurrencies",
        "requestBody": {
          "$ref": "#/components/requestBodies/getSupportedCurrencies"
        },
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/getSupportedCurrencies"
          }
        }
      }
    }
  },
  "security": [
    {
      "basicAuth": []
    }
  ],
  "components": {
    "schemas": {
      "metadata": {
        "type": "object",
        "description": "metadata is an object that can host as much as 50 key-value pairs, where the keys can be at most 40 char length and can’t include the characters “[“ or “]”, and the values must be strings and cannot exceed 500 chars [Learn more about metadata](https://docs.jupico.com/docs/metadata#/)",
        "additionalProperties": {
          "type": "string",
          "maxLength": 500
        },
        "x-key-max-length": 40
      },
      "dynamicFee": {
        "type": "object",
        "title": "Dynamic fee",
        "description": "Defines the platform fee that the service provider charges the merchant for the transaction. The fee is calculated using `fixed` and `discountRatePerc` and deducted from the merchant's transaction proceeds when payouts are calculated. It does not increase or otherwise modify the transaction amount submitted for processing.",
        "properties": {
          "fixed": {
            "type": "number",
            "description": "Fixed monetary portion of the platform fee, in the transaction currency."
          },
          "discountRatePerc": {
            "type": "number",
            "description": "Percentage portion of the platform fee, calculated from the transaction amount."
          }
        }
      },
      "processingDynamicFee": {
        "type": "object",
        "title": "Dynamic processing fee",
        "description": "Defines the payment-processing fee that the service provider charges the merchant for the transaction. The fee is calculated using the supported `fixed` and percentage values, deducted from the merchant's transaction proceeds, and accounted for separately from the platform fee. It does not increase or otherwise modify the transaction amount submitted for processing.",
        "properties": {
          "fixed": {
            "type": "number",
            "description": "Fixed monetary portion of the processing fee, in the transaction currency."
          },
          "discountRatePerc": {
            "type": "number",
            "description": "Percentage portion of the processing fee, calculated from the transaction amount."
          }
        }
      },
      "createPayout": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "description": "The amount to pay out."
          },
          "bankAccountToken": {
            "type": "string",
            "description": "Token of the bank account that receives the payout."
          },
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          }
        },
        "required": [
          "amount",
          "bankAccountToken",
          "subMerchantId"
        ]
      },
      "voidPayout": {
        "type": "object",
        "properties": {
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant that owns the payout. Required. If it is missing or does not match the payout, the request is rejected with HTTP 401 `auth_invalid_submerchant`."
          },
          "payoutId": {
            "type": "string",
            "description": "Unique identifier of the payout instruction to void. Required. Only a payout in `pending` status can be voided."
          }
        },
        "required": [
          "subMerchantId",
          "payoutId"
        ]
      },
      "ccSale": {
        "type": "object",
        "properties": {
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "description": {
                  "type": "string",
                  "description": "Description of the line item."
                },
                "quantity": {
                  "type": "number",
                  "description": "Number of units."
                },
                "amount": {
                  "type": "number",
                  "description": "Price per unit."
                },
                "taxRate": {
                  "type": "number",
                  "description": "Tax rate applied to this line item, as a percentage."
                }
              }
            },
            "description": "Line items included in the total amount."
          },
          "amount": {
            "type": "number",
            "description": "The amount to charge."
          },
          "paymentToken": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Type of token supplied."
              },
              "token": {
                "type": "object",
                "description": "Token payload returned by tokenization."
              }
            },
            "description": "The payment credential to charge: a one-time token from the web component or a stored Jupico token."
          },
          "cardHolderInitiated": {
            "type": "boolean",
            "description": "True when the cardholder actively initiates the payment; false for merchant-initiated transactions such as recurring charges."
          },
          "description": {
            "type": "string",
            "description": "Free-text description of the transaction."
          },
          "taxAmount": {
            "type": "number",
            "description": "The total amount of sales tax must be between:\nVisa: 0.1% - 18%\nMasterCard: 0.1% - 23%\nDefault: 0.1% - 50%\n"
          },
          "taxWithHold": {
            "type": "boolean",
            "description": "When true, the sales tax portion is withheld from the merchant's settlement until released."
          },
          "dynamicFee": {
            "$ref": "#/components/schemas/dynamicFee"
          },
          "processingDynamicFee": {
            "$ref": "#/components/schemas/processingDynamicFee"
          },
          "cvv": {
            "type": "string",
            "description": "Card verification code (CVV/CVC)."
          },
          "referenceId": {
            "type": "string",
            "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
          },
          "billing": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "description": "Street address, including number."
              },
              "city": {
                "type": "string",
                "description": "City name."
              },
              "zipCode": {
                "type": "string",
                "description": "ZIP or postal code."
              },
              "state": {
                "type": "string",
                "description": "Two-letter US state code."
              },
              "country": {
                "type": "string",
                "description": "Two-letter ISO 3166-1 country code. Sets which state codes and postal code format are validated."
              },
              "email": {
                "type": "string",
                "description": "Email address of the payer."
              },
              "name": {
                "type": "string",
                "description": "Full name of the payer."
              },
              "phone": {
                "type": "string",
                "description": "Phone number of the payer."
              }
            },
            "description": "Billing contact and address details for the payer."
          },
          "shipping": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "description": "Street address, including number."
              },
              "city": {
                "type": "string",
                "description": "City name."
              },
              "zipCode": {
                "type": "string",
                "description": "ZIP or postal code."
              },
              "state": {
                "type": "string",
                "description": "Two-letter US state code."
              },
              "country": {
                "type": "string",
                "description": "Two-letter ISO 3166-1 country code. Sets which state codes and postal code format are validated."
              },
              "email": {
                "type": "string",
                "description": "Email address of the recipient."
              },
              "name": {
                "type": "string",
                "description": "Name of the recipient."
              },
              "phone": {
                "type": "string",
                "description": "Phone number of the recipient."
              }
            },
            "description": "Shipping contact and address details for the order."
          },
          "metadata": {
            "$ref": "#/components/schemas/metadata"
          },
          "billingDescriptor": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 25,
                "example": "test",
                "description": "The text that appears on the cardholder's statement, overriding the default business name."
              }
            },
            "description": "Overrides the descriptor that appears on the cardholder's statement."
          }
        },
        "required": [
          "subMerchantId",
          "amount",
          "cardHolderInitiated",
          "paymentToken"
        ]
      },
      "ccAuth": {
        "type": "object",
        "properties": {
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          },
          "amount": {
            "type": "number",
            "description": "The amount to authorize."
          },
          "paymentToken": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Type of token supplied."
              },
              "token": {
                "type": "object",
                "description": "Token payload returned by tokenization."
              }
            },
            "description": "The payment credential to charge: a one-time token from the web component or a stored Jupico token."
          },
          "cardHolderInitiated": {
            "type": "boolean",
            "description": "True when the cardholder actively initiates the payment; false for merchant-initiated transactions such as recurring charges."
          },
          "description": {
            "type": "string",
            "description": "Free-text description of the transaction."
          },
          "taxAmount": {
            "type": "number",
            "description": "The total amount of sales tax must be between:\nVisa percentage: 0.1% - 18%\nMasterCard percentage: 0.1% - 23%\nDefault percentage: 0.1% - 50%\n"
          },
          "cvv": {
            "type": "string",
            "description": "Card verification code (CVV/CVC)."
          },
          "referenceId": {
            "type": "string",
            "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
          },
          "billing": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "description": "Street address, including number."
              },
              "city": {
                "type": "string",
                "description": "City name."
              },
              "zipCode": {
                "type": "string",
                "description": "ZIP or postal code."
              },
              "state": {
                "type": "string",
                "description": "Two-letter US state code."
              },
              "country": {
                "type": "string",
                "description": "Two-letter ISO 3166-1 country code. Sets which state codes and postal code format are validated."
              },
              "email": {
                "type": "string",
                "description": "Email address of the payer."
              },
              "name": {
                "type": "string",
                "description": "Full name of the payer."
              },
              "phone": {
                "type": "string",
                "description": "Phone number of the payer."
              }
            },
            "description": "Billing contact and address details for the payer."
          },
          "shipping": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "description": "Street address, including number."
              },
              "city": {
                "type": "string",
                "description": "City name."
              },
              "zipCode": {
                "type": "string",
                "description": "ZIP or postal code."
              },
              "state": {
                "type": "string",
                "description": "Two-letter US state code."
              },
              "country": {
                "type": "string",
                "description": "Two-letter ISO 3166-1 country code. Sets which state codes and postal code format are validated."
              },
              "email": {
                "type": "string",
                "description": "Email address of the recipient."
              },
              "name": {
                "type": "string",
                "description": "Name of the recipient."
              },
              "phone": {
                "type": "string",
                "description": "Phone number of the recipient."
              }
            },
            "description": "Shipping contact and address details for the order."
          },
          "metadata": {
            "$ref": "#/components/schemas/metadata"
          },
          "billingDescriptor": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 25,
                "example": "test",
                "description": "The text that appears on the cardholder's statement, overriding the default business name."
              }
            },
            "description": "Overrides the descriptor that appears on the cardholder's statement."
          }
        },
        "required": [
          "subMerchantId",
          "amount",
          "paymentToken",
          "cardHolderInitiated"
        ]
      },
      "ccAvs": {
        "type": "object",
        "properties": {
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          },
          "token": {
            "type": "string",
            "description": "The token value."
          },
          "referenceId": {
            "type": "string",
            "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
          },
          "billing": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "description": "Street address, including number."
              },
              "city": {
                "type": "string",
                "description": "City name."
              },
              "zipCode": {
                "type": "string",
                "description": "ZIP or postal code."
              },
              "state": {
                "type": "string",
                "description": "Two-letter US state code."
              },
              "country": {
                "type": "string",
                "description": "Two-letter ISO 3166-1 country code. Sets which state codes and postal code format are validated."
              }
            },
            "description": "Billing contact and address details for the payer."
          },
          "metadata": {
            "$ref": "#/components/schemas/metadata"
          }
        },
        "required": [
          "subMerchantId",
          "token",
          "billing",
          "referenceId"
        ]
      },
      "ccCapture": {
        "type": "object",
        "properties": {
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          },
          "amount": {
            "type": "number",
            "description": "The amount to capture. May exceed the authorized amount up to the issuer's allowable excess limit."
          },
          "transactionId": {
            "type": "string",
            "description": "Identifier of the authorization to capture."
          },
          "description": {
            "type": "string",
            "description": "Free-text description."
          },
          "taxAmount": {
            "type": "number",
            "description": "The total amount of sales tax must be between:\nVisa percentage: 0.1% - 18%\nMasterCard percentage: 0.1% - 23%\nDefault percentage: 0.1% - 50%\n",
            "nullable": true
          },
          "taxWithHold": {
            "type": "boolean",
            "description": "When true, the sales tax portion is withheld from the merchant's settlement until released."
          },
          "referenceId": {
            "type": "string",
            "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
          },
          "dynamicFee": {
            "$ref": "#/components/schemas/dynamicFee"
          },
          "processingDynamicFee": {
            "$ref": "#/components/schemas/processingDynamicFee"
          },
          "metadata": {
            "$ref": "#/components/schemas/metadata"
          },
          "billingDescriptor": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 25,
                "example": "test",
                "description": "The text that appears on the cardholder's statement, overriding the default business name."
              }
            },
            "description": "Overrides the descriptor that appears on the cardholder's statement."
          }
        },
        "required": [
          "subMerchantId",
          "amount",
          "transactionId"
        ]
      },
      "ccRefund": {
        "type": "object",
        "properties": {
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          },
          "transactionId": {
            "type": "string",
            "description": "Identifier of the settled transaction to refund."
          },
          "amount": {
            "type": "number",
            "description": "The amount to refund."
          },
          "description": {
            "type": "string",
            "description": "Free-text description."
          },
          "referenceId": {
            "type": "string",
            "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
          },
          "taxAmountRelease": {
            "type": "number",
            "description": "Withheld tax amount to release with this refund."
          },
          "taxWithHoldRelease": {
            "type": "boolean",
            "description": "When true, releases the tax withheld on the original transaction."
          },
          "metadata": {
            "$ref": "#/components/schemas/metadata"
          }
        },
        "required": [
          "subMerchantId",
          "amount",
          "transactionId"
        ]
      },
      "ccRollback": {
        "properties": {
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          },
          "amount": {
            "type": "number",
            "description": "The amount of the original transaction."
          },
          "paymentToken": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Type of token supplied."
              },
              "token": {
                "type": "object",
                "description": "Token payload returned by tokenization."
              }
            },
            "description": "The payment credential to charge: a one-time token from the web component or a stored Jupico token."
          },
          "description": {
            "type": "string",
            "description": "Free-text description."
          },
          "referenceId": {
            "type": "string",
            "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
          },
          "metadata": {
            "$ref": "#/components/schemas/metadata"
          }
        },
        "required": [
          "subMerchantId",
          "amount",
          "paymentToken"
        ]
      },
      "ccVoid": {
        "properties": {
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          },
          "transactionId": {
            "type": "string",
            "description": "Identifier of the transaction to void."
          },
          "description": {
            "type": "string",
            "description": "Free-text description."
          },
          "referenceId": {
            "type": "string",
            "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
          },
          "metadata": {
            "$ref": "#/components/schemas/metadata"
          },
          "billingDescriptor": {
            "type": "string",
            "maxLength": 25,
            "example": "SMITHS STORE",
            "description": "The text that appears on the cardholder’s statement, overriding the default business name."
          }
        },
        "required": [
          "subMerchantId",
          "transactionId"
        ]
      },
      "eCheckSale": {
        "type": "object",
        "properties": {
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          },
          "amount": {
            "type": "number",
            "description": "The amount to debit."
          },
          "paymentToken": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Type of token supplied."
              },
              "token": {
                "type": "object",
                "description": "Token payload returned by tokenization."
              }
            },
            "description": "The payment credential to charge: a one-time token from the web component or a stored Jupico token."
          },
          "description": {
            "type": "string",
            "description": "Free-text description."
          },
          "customerId": {
            "type": "string",
            "description": "Unique identifier of the customer."
          },
          "checkNumber": {
            "type": "string",
            "description": "Check number to record with this debit."
          },
          "checkType": {
            "type": "string",
            "description": "Type of check used for the debit."
          },
          "taxAmount": {
            "type": "number",
            "description": "Sales tax portion of the amount."
          },
          "referenceId": {
            "type": "string",
            "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
          },
          "dynamicFee": {
            "$ref": "#/components/schemas/dynamicFee"
          },
          "processingDynamicFee": {
            "$ref": "#/components/schemas/processingDynamicFee"
          },
          "billing": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "description": "Street address, including number."
              },
              "city": {
                "type": "string",
                "description": "City name."
              },
              "zipCode": {
                "type": "string",
                "description": "ZIP or postal code."
              },
              "state": {
                "type": "string",
                "description": "Two-letter US state code."
              },
              "country": {
                "type": "string",
                "description": "Two-letter ISO 3166-1 country code. Sets which state codes and postal code format are validated."
              },
              "email": {
                "type": "string",
                "description": "Email address of the payer."
              },
              "name": {
                "type": "string",
                "description": "Full name of the payer."
              },
              "phone": {
                "type": "string",
                "description": "Phone number of the payer."
              }
            },
            "description": "Billing contact and address details for the payer."
          },
          "shipping": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "description": "Street address, including number."
              },
              "city": {
                "type": "string",
                "description": "City name."
              },
              "zipCode": {
                "type": "string",
                "description": "ZIP or postal code."
              },
              "state": {
                "type": "string",
                "description": "Two-letter US state code."
              },
              "country": {
                "type": "string",
                "description": "Two-letter ISO 3166-1 country code. Sets which state codes and postal code format are validated."
              },
              "email": {
                "type": "string",
                "description": "Email address of the recipient."
              },
              "name": {
                "type": "string",
                "description": "Name of the recipient."
              },
              "phone": {
                "type": "string",
                "description": "Phone number of the recipient."
              }
            },
            "description": "Shipping contact and address details for the order."
          },
          "metadata": {
            "$ref": "#/components/schemas/metadata"
          }
        },
        "required": [
          "subMerchantId",
          "paymentToken",
          "amount"
        ]
      },
      "eCheckTokenize": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "subMerchantId": {
            "type": "string",
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9\\-_'.,@&:#%() ]+$",
            "example": "jpt-sim-md-1",
            "description": "Optional. Submerchant that owns the bank account. If you send it, it must be active and belong to your product."
          },
          "accountType": {
            "type": "string",
            "enum": [
              "checking",
              "savings"
            ],
            "example": "checking",
            "description": "Bank account type. Up to 100 characters."
          },
          "accountHolderName": {
            "type": "string",
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9\\-_'.,@&:#%() ]+$",
            "example": "John Doe",
            "description": "Name on the bank account, up to 100 characters. The holder can be a person or a business. Allowed characters: letters, digits, spaces, and `- _ ' . , @ & : # % ( )`."
          },
          "accountNumber": {
            "type": "string",
            "minLength": 4,
            "maxLength": 17,
            "pattern": "^[0-9]+$",
            "example": "12312311",
            "description": "Bank account number, 4 to 17 digits only."
          },
          "routingNumber": {
            "type": "string",
            "pattern": "^[0-9]{9}$",
            "example": "122187238",
            "description": "9-digit ABA routing number. Must pass the ABA checksum."
          },
          "alias": {
            "type": "string",
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9\\-_'.,@&:#%() ]+$",
            "example": "Main checking",
            "description": "Optional friendly name stored with the token, up to 100 characters. Allowed characters: letters, digits, spaces, and `- _ ' . , @ & : # % ( )`."
          }
        },
        "required": [
          "accountType",
          "accountHolderName",
          "accountNumber",
          "routingNumber"
        ]
      },
      "eCheckCredit": {
        "type": "object",
        "properties": {
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          },
          "amount": {
            "type": "number",
            "description": "The amount to credit."
          },
          "paymentToken": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Type of token supplied."
              },
              "token": {
                "type": "object",
                "description": "Token payload returned by tokenization."
              }
            },
            "description": "The payment credential to charge: a one-time token from the web component or a stored Jupico token."
          },
          "description": {
            "type": "string",
            "description": "Free-text description."
          },
          "customerId": {
            "type": "string",
            "description": "Unique identifier of the customer."
          },
          "checkType": {
            "type": "string",
            "description": "Type of check used for the debit."
          },
          "taxAmount": {
            "type": "number",
            "description": "Sales tax portion of the amount."
          },
          "referenceId": {
            "type": "string",
            "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
          },
          "billing": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "description": "Street address, including number."
              },
              "city": {
                "type": "string",
                "description": "City name."
              },
              "zipCode": {
                "type": "string",
                "description": "ZIP or postal code."
              },
              "state": {
                "type": "string",
                "description": "Two-letter US state code."
              },
              "country": {
                "type": "string",
                "description": "Two-letter ISO 3166-1 country code. Sets which state codes and postal code format are validated."
              },
              "email": {
                "type": "string",
                "description": "Email address of the payer."
              },
              "name": {
                "type": "string",
                "description": "Full name of the payer."
              },
              "phone": {
                "type": "string",
                "description": "Phone number of the payer."
              }
            },
            "description": "Billing contact and address details for the payer."
          },
          "shipping": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "description": "Street address, including number."
              },
              "city": {
                "type": "string",
                "description": "City name."
              },
              "zipCode": {
                "type": "string",
                "description": "ZIP or postal code."
              },
              "state": {
                "type": "string",
                "description": "Two-letter US state code."
              },
              "country": {
                "type": "string",
                "description": "Two-letter ISO 3166-1 country code. Sets which state codes and postal code format are validated."
              },
              "email": {
                "type": "string",
                "description": "Email address of the recipient."
              },
              "name": {
                "type": "string",
                "description": "Name of the recipient."
              },
              "phone": {
                "type": "string",
                "description": "Phone number of the recipient."
              }
            },
            "description": "Shipping contact and address details for the order."
          },
          "metadata": {
            "$ref": "#/components/schemas/metadata"
          }
        },
        "required": [
          "subMerchantId",
          "paymentToken",
          "amount"
        ]
      },
      "eCheckRefund": {
        "type": "object",
        "properties": {
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          },
          "transactionId": {
            "type": "string",
            "description": "Identifier of the settled transaction to refund."
          },
          "amount": {
            "type": "number",
            "description": "The amount to refund."
          },
          "description": {
            "type": "string",
            "description": "Free-text description."
          },
          "referenceId": {
            "type": "string",
            "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
          },
          "taxAmountRelease": {
            "type": "number",
            "description": "Withheld tax amount to release with this refund."
          },
          "taxWithHoldRelease": {
            "type": "boolean",
            "description": "When true, releases the tax withheld on the original transaction."
          },
          "metadata": {
            "$ref": "#/components/schemas/metadata"
          }
        },
        "required": [
          "subMerchantId",
          "amount",
          "transactionId"
        ]
      },
      "eCheckVoid": {
        "properties": {
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          },
          "transactionId": {
            "type": "string",
            "description": "Identifier of the transaction to void."
          },
          "description": {
            "type": "string",
            "description": "Free-text description."
          },
          "referenceId": {
            "type": "string",
            "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
          },
          "metadata": {
            "$ref": "#/components/schemas/metadata"
          }
        },
        "required": [
          "subMerchantId",
          "transactionId"
        ]
      },
      "eCheckRollback": {
        "properties": {
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          },
          "amount": {
            "type": "number",
            "description": "The amount of the original transaction."
          },
          "paymentToken": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Type of token supplied."
              },
              "token": {
                "type": "object",
                "description": "Token payload returned by tokenization."
              }
            },
            "description": "The payment credential to charge: a one-time token from the web component or a stored Jupico token."
          },
          "description": {
            "type": "string",
            "description": "Free-text description."
          },
          "referenceId": {
            "type": "string",
            "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
          },
          "metadata": {
            "$ref": "#/components/schemas/metadata"
          }
        },
        "required": [
          "subMerchantId",
          "amount",
          "paymentToken"
        ]
      },
      "createCustomer": {
        "properties": {
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          },
          "name": {
            "type": "string",
            "description": "Display name."
          },
          "email": {
            "type": "string",
            "description": "Email address."
          },
          "phone": {
            "type": "string",
            "description": "The customer's phone number: 7 to 15 digits, optionally starting with `+`. Digits only after the optional `+` — spaces, dashes, parentheses, and other separators are not accepted. For example, `4155550123` or `+14155550123`.",
            "pattern": "^\\+?[0-9]{7,15}$",
            "minLength": 7,
            "maxLength": 16,
            "example": "+14155550123"
          }
        }
      },
      "updateCustomer": {
        "properties": {
          "customerId": {
            "type": "string",
            "description": "Unique identifier of the customer."
          },
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          },
          "name": {
            "type": "string",
            "description": "Display name."
          },
          "email": {
            "type": "string",
            "description": "Email address."
          },
          "phone": {
            "type": "string",
            "description": "The customer's phone number: 7 to 15 digits, optionally starting with `+`. Digits only after the optional `+` — spaces, dashes, parentheses, and other separators are not accepted. For example, `4155550123` or `+14155550123`.",
            "pattern": "^\\+?[0-9]{7,15}$",
            "minLength": 7,
            "maxLength": 16,
            "example": "+14155550123"
          }
        }
      },
      "deleteCustomer": {
        "properties": {
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          },
          "customerId": {
            "type": "string",
            "description": "Unique identifier of the customer."
          }
        }
      },
      "OnboardingInvite": {
        "properties": {
          "spProductId": {
            "description": "Product ID associated with the invite",
            "type": "string"
          },
          "email": {
            "description": "Email address of the individual",
            "type": "string"
          },
          "facId": {
            "description": "Facilitator ID",
            "type": "string"
          },
          "name": {
            "description": "Name of the individual",
            "type": "string"
          },
          "phoneNumber": {
            "description": "Phone number of the individual",
            "type": "string"
          }
        },
        "required": [
          "facId",
          "spProductId",
          "name",
          "email"
        ],
        "type": "object"
      },
      "Owner": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string",
              "enum": [
                "Mr.",
                "Ms.",
                "Mrs."
              ],
              "example": "Mr.",
              "description": "Title."
            },
            "firstName": {
              "type": "string",
              "example": "jonny",
              "description": "First name."
            },
            "middleName": {
              "type": "string",
              "example": "eric",
              "description": "Middle name."
            },
            "lastName": {
              "type": "string",
              "example": "dooei",
              "description": "Last name."
            },
            "birthDate": {
              "type": "string",
              "format": "date",
              "example": "2000-08-01",
              "description": "Date of birth (YYYY-MM-DD)."
            },
            "phoneNumber": {
              "type": "string",
              "example": "2232322323",
              "description": "Phone number."
            },
            "streetNum": {
              "type": "string",
              "example": "79",
              "description": "Street number."
            },
            "streetName": {
              "type": "string",
              "example": "clarks",
              "description": "Street name."
            },
            "city": {
              "type": "string",
              "example": "ny",
              "description": "City name."
            },
            "state": {
              "type": "string",
              "enum": [
                "AK",
                "AL",
                "AR",
                "AZ",
                "CA",
                "CO",
                "CT",
                "DE",
                "FL",
                "GA",
                "HI",
                "IA",
                "ID",
                "IL",
                "IN",
                "KS",
                "KY",
                "LA",
                "MA",
                "ME",
                "MD",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NC",
                "ND",
                "NE",
                "NH",
                "NJ",
                "NM",
                "NV",
                "NY",
                "OH",
                "OK",
                "OR",
                "PA",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VA",
                "VT",
                "WA",
                "WI",
                "WV",
                "WY"
              ],
              "example": "NY",
              "description": "Two-letter US state code."
            },
            "postalCode": {
              "type": "string",
              "example": "23434",
              "description": "ZIP or postal code."
            },
            "ssn": {
              "type": "string",
              "example": "123123123",
              "description": "Social Security number, 9 digits."
            },
            "position": {
              "type": "string",
              "enum": [
                "OW",
                "CEO",
                "CFO",
                "COO",
                "PRESIDENT",
                "VICE PRESIDENT",
                "DIR",
                "TR",
                "SEC",
                "PA",
                "MEMBER LLC",
                "OTH",
                "SP"
              ],
              "description": "The position of the owner. Possible values are:\n- OW: Owner\n- CEO: Chief Executive Officer\n- CFO: Chief Financial Officer\n- COO: Chief Operating Officer\n- PRESIDENT: President\n- VICE PRESIDENT: Vice President\n- DIR: Director\n- TR: Treasurer\n- SEC: Secretary\n- PA: Partner\n- MEMBER LLC: Member of LLC\n- OTH: Other\n- SP: Sole Proprietorship\n",
              "example": "CEO"
            },
            "ownershipPercentage": {
              "type": "integer",
              "example": 100,
              "description": "Percentage of the business this owner holds (0-100)."
            },
            "email": {
              "type": "string",
              "format": "email",
              "example": "mail_m@asd.com",
              "description": "Email address."
            }
          }
        }
      },
      "Business": {
        "type": "object",
        "properties": {
          "legalName": {
            "type": "string",
            "example": "testInvite",
            "description": "Registered legal name of the business."
          },
          "dbaName": {
            "type": "string",
            "example": "testDBAInvite",
            "description": "The merchant's doing-business-as name. Appears on customer statements unless overridden."
          },
          "federalTaxId": {
            "type": "string",
            "example": "999999999",
            "description": "Federal tax ID, 9 digits."
          },
          "tinType": {
            "type": "string",
            "enum": [
              "SSN",
              "EIN",
              "Other"
            ],
            "example": "SSN",
            "description": "The type of Tax Identification Number (TIN):\n- SSN (Social Security Number)\n- EIN (Employer Identification Number)\n- Other\n"
          },
          "mccCode": {
            "type": "string",
            "example": "5812",
            "description": "Four-digit merchant category code (MCC) that classifies the business."
          },
          "phoneNumber": {
            "type": "string",
            "example": "2232322323",
            "description": "Phone number."
          },
          "address": {
            "type": "object",
            "properties": {
              "streetNum": {
                "type": "string",
                "example": "123",
                "description": "Street number."
              },
              "streetName": {
                "type": "string",
                "example": "main street",
                "description": "Street name."
              },
              "city": {
                "type": "string",
                "example": "ny",
                "description": "City name."
              },
              "state": {
                "type": "string",
                "example": "NY",
                "enum": [
                  "AK",
                  "AL",
                  "AR",
                  "AZ",
                  "CA",
                  "CO",
                  "CT",
                  "DE",
                  "FL",
                  "GA",
                  "HI",
                  "IA",
                  "ID",
                  "IL",
                  "IN",
                  "KS",
                  "KY",
                  "LA",
                  "MA",
                  "ME",
                  "MD",
                  "MI",
                  "MN",
                  "MS",
                  "MO",
                  "MT",
                  "NC",
                  "ND",
                  "NE",
                  "NH",
                  "NJ",
                  "NM",
                  "NV",
                  "NY",
                  "OH",
                  "OK",
                  "OR",
                  "PA",
                  "RI",
                  "SC",
                  "SD",
                  "TN",
                  "TX",
                  "UT",
                  "VA",
                  "VT",
                  "WA",
                  "WI",
                  "WV",
                  "WY"
                ],
                "description": "Two-letter US state code."
              },
              "postalCode": {
                "type": "string",
                "example": "22222",
                "description": "ZIP or postal code."
              }
            },
            "description": "Address details."
          },
          "websiteUrl": {
            "type": "string",
            "format": "uri",
            "example": "https://www.sarasa.com",
            "description": "Business website URL."
          },
          "ownershipType": {
            "type": "string",
            "enum": [
              "PublicCorporation",
              "Government",
              "PrivateCorporation",
              "SoleProprietorship",
              "LLC",
              "Partnership",
              "NonProfit",
              "Trust"
            ],
            "example": "PrivateCorporation",
            "description": "Legal structure of the business."
          },
          "businessEstablishedDate": {
            "format": "date-time",
            "example": "2023-11-02",
            "description": "Format: YYYY-MM-DD"
          },
          "expectedMonthlyVolume": {
            "type": "integer",
            "example": 200,
            "description": "Expected monthly processing volume, used in underwriting."
          }
        }
      },
      "Contact": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "example": "John",
            "description": "First name."
          },
          "middleName": {
            "type": "string",
            "example": "Michael",
            "description": "Middle name."
          },
          "lastName": {
            "type": "string",
            "example": "Doe",
            "description": "Last name."
          },
          "birthDate": {
            "type": "string",
            "format": "date",
            "example": "1990-01-15",
            "description": "Format: YYYY-MM-DD"
          },
          "position": {
            "type": "string",
            "example": "CEO",
            "description": "Role of the owner in the business."
          },
          "ssn": {
            "type": "string",
            "example": "123-45-6789",
            "description": "Social Security Number"
          },
          "phoneNumber": {
            "type": "string",
            "example": "5551234567",
            "description": "Phone number."
          },
          "email": {
            "type": "string",
            "format": "email",
            "example": "john.doe@example.com",
            "description": "Email address."
          }
        }
      },
      "ccRawTokenize": {
        "type": "object",
        "properties": {
          "subMerchantId": {
            "type": "string",
            "description": "Unique identifier of the submerchant."
          },
          "CardHolderName": {
            "type": "string",
            "description": "Name of the card holder. The maximum length of this field is 100 characters. This field only contains alphabetic characters, periods, hyphens, and apostrophes."
          },
          "CreditCardNumber": {
            "type": "string",
            "description": "The credit card number to tokenize"
          },
          "Cvv": {
            "type": "string",
            "description": "Card verification value (CVV/CVC)"
          },
          "ExpirationDate": {
            "type": "object",
            "properties": {
              "ExpirationMonth": {
                "type": "string",
                "description": "Two-digit expiration month (01-12)",
                "example": "01"
              },
              "ExpirationYear": {
                "type": "string",
                "description": "Two-digit expiration year",
                "example": "30"
              }
            },
            "required": [
              "ExpirationMonth",
              "ExpirationYear"
            ],
            "description": "Card expiration date."
          }
        },
        "required": [
          "subMerchantId",
          "CardHolderName",
          "CreditCardNumber",
          "Cvv",
          "ExpirationDate"
        ]
      },
      "getExchangeRates": {
        "type": "object",
        "properties": {
          "base": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "description": "Base currency the rates are quoted against. 3-letter ISO 4217 code, uppercase.",
            "example": "USD"
          },
          "symbols": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 3,
              "maxLength": 3,
              "description": "Target currency code. 3-letter ISO 4217 code, uppercase.",
              "example": "GBP"
            },
            "description": "Target currency codes to return rates for. Omit to return every supported currency."
          }
        },
        "required": [
          "base"
        ]
      },
      "convertCurrency": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "description": "Source currency to convert from. 3-letter ISO 4217 code, uppercase.",
            "example": "USD"
          },
          "to": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "description": "Target currency to convert to. 3-letter ISO 4217 code, uppercase.",
            "example": "GBP"
          },
          "amount": {
            "type": "number",
            "minimum": 0,
            "exclusiveMinimum": true,
            "description": "Amount to convert, expressed in the source currency. Must be greater than zero.",
            "example": 250
          }
        },
        "required": [
          "from",
          "to",
          "amount"
        ]
      },
      "getSupportedCurrencies": {
        "type": "object",
        "properties": {},
        "description": "This endpoint takes no parameters. Send an empty object."
      },
      "transactionReceipt": {
        "type": "object",
        "properties": {
          "transactionId": {
            "type": "string",
            "description": "Identifier of the transaction to build the receipt for.",
            "example": "b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e"
          },
          "subMerchantId": {
            "type": "string",
            "description": "Sub-merchant that owns the transaction. Only one sub-merchant per request.",
            "example": "jpt-sim-md-1"
          },
          "responseFormat": {
            "type": "string",
            "description": "Format of the returned receipt. Defaults to `json`, which is currently the only supported value.",
            "enum": [
              "json"
            ],
            "default": "json"
          }
        },
        "required": [
          "transactionId",
          "subMerchantId"
        ]
      },
      "bankAccountTokenizeRaw": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "subMerchantId": {
            "type": "string",
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9\\-_'.,@&:#%() ]+$",
            "example": "jpt-sim-md-1",
            "description": "Submerchant that owns the bank account. Must be active, belong to your product, and have bank account tokenization enabled."
          },
          "accountType": {
            "type": "string",
            "enum": [
              "checking",
              "savings"
            ],
            "example": "checking",
            "description": "Bank account type."
          },
          "accountHolderName": {
            "type": "string",
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9\\-_'.,@&:#%() ]+$",
            "example": "John Doe",
            "description": "Name on the bank account, up to 100 characters. The holder can be a person or a business. Allowed characters: letters, digits, spaces, and `- _ ' . , @ & : # % ( )`. Accents and look-alike characters are normalized before validation (for example, `José` becomes `Jose`)."
          },
          "accountNumber": {
            "type": "string",
            "minLength": 4,
            "maxLength": 17,
            "pattern": "^[0-9]+$",
            "example": "12312311",
            "description": "Bank account number, 4 to 17 digits only."
          },
          "routingNumber": {
            "type": "string",
            "pattern": "^[0-9]{9}$",
            "example": "122187238",
            "description": "9-digit ABA routing number. Must pass the ABA checksum."
          }
        },
        "required": [
          "subMerchantId",
          "accountType",
          "accountHolderName",
          "accountNumber",
          "routingNumber"
        ]
      }
    },
    "requestBodies": {
      "createPayout": {
        "description": "create a payouts if sumerchant is in dynamic payouts.",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/createPayout"
            },
            "examples": {
              "createPayout": {
                "$ref": "#/components/examples/createPayout"
              }
            }
          }
        }
      },
      "voidPayout": {
        "description": "voids a payout.",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/voidPayout"
            },
            "examples": {
              "voidPayout": {
                "$ref": "#/components/examples/voidPayout"
              }
            }
          }
        }
      },
      "ccSale": {
        "description": "API support various types of use. Required fields are defined by the most basic call. For other uses be sure to send the required information defined in the schema and examples.",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ccSale"
            },
            "examples": {
              "saleMostBasicCall": {
                "$ref": "#/components/examples/ccSaleMostBasicCall"
              },
              "ccSaleCommercialLevel2": {
                "$ref": "#/components/examples/ccSaleCommercialLevel2"
              },
              "ccSaleCommercialLevel3": {
                "$ref": "#/components/examples/ccSaleCommercialLevel3"
              },
              "ccSaleFullExample": {
                "$ref": "#/components/examples/ccSaleFullExample"
              }
            }
          }
        }
      },
      "ccAuth": {
        "description": "API support various types of use. Required fields are defined by the most basic call. For other uses be sure to send the required information defined in the schema and examples.",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ccAuth"
            },
            "examples": {
              "AuthorizationMostBasicCall": {
                "$ref": "#/components/examples/ccAuthMostBasicCall"
              },
              "AuthorizationFullExample": {
                "$ref": "#/components/examples/ccAuthFullExample"
              }
            }
          }
        }
      },
      "ccAvs": {
        "description": "submerchantId, token (tokenized cc number) and billing address are provided in order to check them.",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ccAvs"
            },
            "examples": {
              "Authorization": {
                "$ref": "#/components/examples/ccAvs"
              }
            }
          }
        }
      },
      "ccCapture": {
        "description": "***To test this endpoint you need to make an AUTHORIZATION request first***",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ccCapture"
            },
            "examples": {
              "Capture": {
                "$ref": "#/components/examples/ccCapture"
              }
            }
          }
        }
      },
      "ccRefund": {
        "description": "***To test this endpoint you need to make an SALE request first***",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ccRefund"
            },
            "examples": {
              "ccRefund": {
                "$ref": "#/components/examples/ccRefund"
              },
              "ccRefundTaxWithHold": {
                "$ref": "#/components/examples/ccRefundTaxWithHold"
              }
            }
          }
        }
      },
      "ccRollback": {
        "description": "***To test this endpoint you need to make an SALE request first***",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ccRollback"
            },
            "examples": {
              "Rollback": {
                "$ref": "#/components/examples/ccRollback"
              }
            }
          }
        }
      },
      "ccVoid": {
        "description": "***To test this endpoint you need to make an SALE request first***",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ccVoid"
            },
            "examples": {
              "Authorization": {
                "$ref": "#/components/examples/ccVoid"
              }
            }
          }
        }
      },
      "eCheckSale": {
        "description": "API support various types of use. Required fields are defined by the most basic call. For other uses be sure to send the required information defined in the schema and examples.",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/eCheckSale"
            },
            "examples": {
              "eCheckSale": {
                "$ref": "#/components/examples/eCheckSale"
              }
            }
          }
        }
      },
      "eCheckTokenize": {
        "description": "Raw bank account details to tokenize. The endpoint rejects any field not listed here.",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/eCheckTokenize"
            },
            "examples": {
              "eCheckTokenize": {
                "$ref": "#/components/examples/eCheckTokenize"
              }
            }
          }
        }
      },
      "eCheckCredit": {
        "description": "API support various types of use. Required fields are defined by the most basic call. For other uses be sure to send the required information defined in the schema and examples.",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/eCheckCredit"
            },
            "examples": {
              "eCheckCredit": {
                "$ref": "#/components/examples/eCheckCredit"
              }
            }
          }
        }
      },
      "eCheckRefund": {
        "description": "***To test this endpoint you need to make an eCheck Sale request first***",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/eCheckRefund"
            },
            "examples": {
              "Refund": {
                "$ref": "#/components/examples/eCheckRefund"
              }
            }
          }
        }
      },
      "eCheckVoid": {
        "description": "***To test this endpoint you need to make an eCheck Sale request first***",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/eCheckVoid"
            },
            "examples": {
              "eCheckVoid": {
                "$ref": "#/components/examples/eCheckVoid"
              }
            }
          }
        }
      },
      "eCheckRollback": {
        "description": "***To test this endpoint you need to make an operation request first***",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/eCheckRollback"
            },
            "examples": {
              "eCheckRollback": {
                "$ref": "#/components/examples/eCheckRollback"
              }
            }
          }
        }
      },
      "ccRawTokenize": {
        "description": "Tokenize raw credit card data. Submit card details to receive a secure token for future transactions.",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ccRawTokenize"
            },
            "examples": {
              "ccRawTokenize": {
                "$ref": "#/components/examples/ccRawTokenize"
              }
            }
          }
        }
      },
      "createCustomer": {
        "description": "Create a customer",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/createCustomer"
            },
            "examples": {
              "createCustomer": {
                "$ref": "#/components/examples/createCustomer"
              }
            }
          }
        }
      },
      "updateCustomer": {
        "description": "Update a customer",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/updateCustomer"
            },
            "examples": {
              "updateCustomer": {
                "$ref": "#/components/examples/updateCustomer"
              }
            }
          }
        }
      },
      "deleteCustomer": {
        "description": "Update a customer",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/deleteCustomer"
            },
            "examples": {
              "deleteCustomer": {
                "$ref": "#/components/examples/deleteCustomer"
              }
            }
          }
        }
      },
      "getExchangeRates": {
        "description": "Requests exchange rates for a base currency.",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/getExchangeRates"
            },
            "examples": {
              "getExchangeRates": {
                "$ref": "#/components/examples/getExchangeRates"
              }
            }
          }
        }
      },
      "convertCurrency": {
        "description": "Converts an amount between two currencies.",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/convertCurrency"
            },
            "examples": {
              "convertCurrency": {
                "$ref": "#/components/examples/convertCurrency"
              }
            }
          }
        }
      },
      "getSupportedCurrencies": {
        "description": "Requests the list of supported currency codes. The body is optional.",
        "required": false,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/getSupportedCurrencies"
            },
            "examples": {
              "getSupportedCurrencies": {
                "$ref": "#/components/examples/getSupportedCurrencies"
              }
            }
          }
        }
      },
      "transactionReceipt": {
        "description": "Identify the transaction and the sub-merchant that owns it. `responseFormat` is optional and defaults to `json`.",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/transactionReceipt"
            },
            "examples": {
              "transactionReceipt": {
                "$ref": "#/components/examples/transactionReceipt"
              }
            }
          }
        }
      },
      "bankAccountTokenizeRaw": {
        "description": "Raw bank account details to tokenize. The endpoint rejects any field not listed here.",
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/bankAccountTokenizeRaw"
            },
            "examples": {
              "bankAccountTokenizeRaw": {
                "$ref": "#/components/examples/bankAccountTokenizeRaw"
              }
            }
          }
        }
      }
    },
    "responses": {
      "healthCheck": {
        "description": "Health status of API endpoints",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "services": {
                      "type": "string",
                      "description": "Status of dependent services."
                    },
                    "database": {
                      "type": "string",
                      "description": "Database connectivity status."
                    },
                    "datetime": {
                      "type": "string",
                      "description": "Current server time (ISO 8601)."
                    }
                  },
                  "description": "The response payload."
                }
              }
            }
          }
        }
      },
      "createPayout": {
        "description": "Successfuly create a payout",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "subMerchantId": {
                      "type": "string",
                      "description": "Unique identifier of the submerchant."
                    },
                    "facId": {
                      "type": "string",
                      "description": "Facilitator identifier assigned by Jupico."
                    },
                    "spProductId": {
                      "type": "string",
                      "description": "Identifier of the Service Provider product the merchant belongs to."
                    },
                    "amount": {
                      "type": "number",
                      "description": "The amount of the transaction."
                    },
                    "type": {
                      "type": "string",
                      "description": "The type."
                    },
                    "beneficiary": {
                      "type": "string",
                      "description": "Name of the payout beneficiary."
                    },
                    "status": {
                      "type": "string",
                      "description": "Current status."
                    },
                    "batchPayoutId": {
                      "type": "string",
                      "description": "Identifier of the payout batch this instruction was grouped into."
                    },
                    "bankAccountToken": {
                      "type": "string",
                      "description": "Token of the bank account that receives the payout."
                    },
                    "mode": {
                      "type": "string",
                      "description": "Payout mode."
                    },
                    "payoutId": {
                      "type": "string",
                      "description": "Unique identifier of the payout instruction."
                    },
                    "accRoutingNum": {
                      "type": "number",
                      "description": "Routing number of the destination account."
                    },
                    "accountNumber": {
                      "type": "number",
                      "description": "Bank account number."
                    },
                    "accountType": {
                      "type": "string",
                      "description": "Bank account type, such as `checking`."
                    },
                    "sourceType": {
                      "type": "string",
                      "description": "Balance source the payout draws from."
                    }
                  },
                  "description": "The response payload."
                }
              }
            }
          }
        }
      },
      "voidPayout": {
        "description": "Successfuly voids a payout",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                }
              }
            }
          }
        }
      },
      "createOnboardingInvite": {
        "description": "Onboarding invite successfully created.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "facId": {
                      "type": "string",
                      "description": "Facilitator identifier assigned by Jupico."
                    },
                    "spProductId": {
                      "type": "string",
                      "description": "Identifier of the Service Provider product the merchant belongs to."
                    },
                    "inviteId": {
                      "type": "string",
                      "description": "Unique identifier of the onboarding invite."
                    },
                    "name": {
                      "type": "string",
                      "description": "Display name."
                    },
                    "email": {
                      "type": "string",
                      "description": "Email address."
                    },
                    "phoneNumber": {
                      "type": "string",
                      "description": "Phone number."
                    },
                    "reference": {
                      "type": "string",
                      "description": "Your own reference for this invite."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "URL of the hosted page for this object."
                    },
                    "notifications": {
                      "type": "object",
                      "properties": {
                        "email": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Whether this setting is enabled."
                            },
                            "sent": {
                              "type": "boolean",
                              "description": "Whether the notification was sent."
                            }
                          },
                          "description": "Email notification status."
                        },
                        "sms": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Whether this setting is enabled."
                            },
                            "sent": {
                              "type": "boolean",
                              "description": "Whether the notification was sent."
                            }
                          },
                          "description": "SMS notification status."
                        }
                      },
                      "description": "Delivery status of invite notifications."
                    },
                    "status": {
                      "type": "string",
                      "description": "Current status."
                    },
                    "isDeleted": {
                      "type": "boolean",
                      "description": "Whether the record is soft-deleted."
                    },
                    "identity": {
                      "type": "object",
                      "properties": {
                        "owners": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "title": {
                                "type": "string",
                                "description": "Salutation of the owner (`Mr.`, `Ms.`, `Mrs.`)."
                              },
                              "firstName": {
                                "type": "string",
                                "description": "First name."
                              },
                              "middleName": {
                                "type": "string",
                                "description": "Middle name."
                              },
                              "lastName": {
                                "type": "string",
                                "description": "Last name."
                              },
                              "birthDate": {
                                "type": "string",
                                "format": "date",
                                "description": "Date of birth (YYYY-MM-DD)."
                              },
                              "phoneNumber": {
                                "type": "string",
                                "description": "Phone number of the owner."
                              },
                              "streetNum": {
                                "type": "string",
                                "description": "Street number."
                              },
                              "streetName": {
                                "type": "string",
                                "description": "Street name."
                              },
                              "city": {
                                "type": "string",
                                "description": "City name."
                              },
                              "state": {
                                "type": "string",
                                "description": "Two-letter US state code."
                              },
                              "postalCode": {
                                "type": "string",
                                "description": "ZIP or postal code."
                              },
                              "ssnLast4": {
                                "type": "string",
                                "description": "Last 4 digits of the owner's SSN."
                              },
                              "ownershipPercentage": {
                                "type": "integer",
                                "description": "Percentage of the business this owner holds (0-100)."
                              },
                              "email": {
                                "type": "string",
                                "description": "Email address of the owner."
                              }
                            }
                          },
                          "description": "Business owners. Required for individual and business entity types."
                        },
                        "business": {
                          "type": "object",
                          "properties": {},
                          "description": "Business identity details."
                        },
                        "Contact": {
                          "type": "object",
                          "properties": {
                            "firstName": {
                              "type": "string",
                              "example": "John",
                              "description": "First name."
                            },
                            "middleName": {
                              "type": "string",
                              "example": "Michael",
                              "description": "Middle name."
                            },
                            "lastName": {
                              "type": "string",
                              "example": "Doe",
                              "description": "Last name."
                            },
                            "birthDate": {
                              "type": "string",
                              "format": "date",
                              "example": "1990-01-15",
                              "description": "Format: YYYY-MM-DD"
                            },
                            "position": {
                              "type": "string",
                              "example": "CEO",
                              "description": "Role of the owner in the business."
                            },
                            "ssn": {
                              "type": "string",
                              "example": "123-45-6789",
                              "description": "Social Security Number"
                            },
                            "phoneNumber": {
                              "type": "string",
                              "example": "5551234567",
                              "description": "Phone number."
                            },
                            "email": {
                              "type": "string",
                              "format": "email",
                              "example": "john.doe@example.com",
                              "description": "Email address."
                            }
                          },
                          "description": "Primary contact details."
                        }
                      },
                      "description": "Identity details for the business and its owners."
                    },
                    "feesTemplateId": {
                      "type": "string",
                      "description": "UUID of a fees template with predefined pricing. If omitted, the default template is used."
                    },
                    "fees": {
                      "type": "object",
                      "properties": {
                        "platform": {
                          "type": "object",
                          "properties": {
                            "interchange": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean",
                                  "description": "Whether this setting is enabled."
                                },
                                "billTo": {
                                  "type": "string",
                                  "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                }
                              },
                              "description": "Interchange pass-through fee settings."
                            },
                            "perTransaction": {
                              "type": "object",
                              "properties": {
                                "ccCnpSale": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present sale."
                                },
                                "ccCnpCapture": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present capture."
                                },
                                "ccCnpAuth": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present authorization."
                                },
                                "ccCnpVoid": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present void."
                                },
                                "ccCnpRefund": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present refund."
                                },
                                "ccCnpCredit": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present credit."
                                },
                                "ccCnpReversal": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present reversal."
                                },
                                "ccCnpChargeback": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each chargeback."
                                },
                                "ccCnpAvsOnly": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each AVS-only verification."
                                },
                                "ccCnpDeclined": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each declined card-not-present attempt."
                                },
                                "checkSale": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck sale."
                                },
                                "checkVerification": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck verification."
                                },
                                "checkVoid": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck void."
                                },
                                "checkRefund": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck refund."
                                },
                                "checkCredit": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck credit."
                                },
                                "checkReversal": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck reversal."
                                }
                              },
                              "description": "Event-based fees, one entry per transaction event type."
                            },
                            "perPeriod": {
                              "type": "array",
                              "items": {},
                              "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                            }
                          },
                          "description": "Fee configuration at the platform level."
                        },
                        "spProduct": {
                          "type": "object",
                          "properties": {
                            "perTransaction": {
                              "type": "object",
                              "properties": {
                                "ccCnpSale": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present sale."
                                },
                                "ccCnpCapture": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present capture."
                                },
                                "ccCnpAuth": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present authorization."
                                },
                                "ccCnpVoid": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present void."
                                },
                                "ccCnpRefund": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present refund."
                                },
                                "ccCnpCredit": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present credit."
                                },
                                "ccCnpReversal": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present reversal."
                                },
                                "ccCnpChargeback": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each chargeback."
                                },
                                "ccCnpAvsOnly": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each AVS-only verification."
                                },
                                "ccCnpDeclined": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each declined card-not-present attempt."
                                },
                                "checkSale": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck sale."
                                },
                                "checkVerification": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck verification."
                                },
                                "checkVoid": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck void."
                                },
                                "checkRefund": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck refund."
                                },
                                "checkCredit": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck credit."
                                },
                                "checkReversal": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck reversal."
                                }
                              },
                              "description": "Event-based fees, one entry per transaction event type."
                            },
                            "perPeriod": {
                              "type": "array",
                              "items": {},
                              "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                            }
                          },
                          "description": "Fee configuration at the Service Provider product level."
                        }
                      },
                      "description": "Fee configuration. Overrides values from the fees template."
                    },
                    "onboardingFlowTemplateId": {
                      "type": "string",
                      "description": "UUID of the onboarding flow template that controls which steps the merchant sees."
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Timestamp when this object expires (ISO 8601)."
                    },
                    "payoutBankAccounts": {
                      "type": "array",
                      "items": {},
                      "description": "Bank accounts where the merchant receives payouts."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Timestamp when the object was created (ISO 8601)."
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Timestamp when the object was last updated (ISO 8601)."
                    }
                  },
                  "description": "The response payload."
                }
              }
            }
          }
        }
      },
      "createSendOnboardingInvite": {
        "description": "Successfully fetched onboarding invites.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": true,
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "code": {
                  "type": "string",
                  "example": "0",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "message": {
                  "type": "string",
                  "example": "Invites Tech successfully created and sent",
                  "description": "Human-readable result message."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "notifications": {
                      "type": "object",
                      "properties": {
                        "email": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "example": true,
                              "description": "Whether this setting is enabled."
                            },
                            "sent": {
                              "type": "boolean",
                              "example": true,
                              "description": "Whether the notification was sent."
                            },
                            "sentAt": {
                              "type": "string",
                              "format": "date-time",
                              "example": "2025-02-06T18:59:39.643Z",
                              "description": "Timestamp when it was sent (ISO 8601)."
                            }
                          },
                          "description": "Email notification status."
                        },
                        "sms": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "example": false,
                              "description": "Whether this setting is enabled."
                            },
                            "sent": {
                              "type": "boolean",
                              "example": false,
                              "description": "Whether the notification was sent."
                            }
                          },
                          "description": "SMS notification status."
                        }
                      },
                      "description": "Delivery status of invite notifications."
                    },
                    "identity": {
                      "type": "object",
                      "properties": {
                        "owners": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "title": {
                                "type": "string",
                                "example": "Mr.",
                                "description": "Salutation of the owner (`Mr.`, `Ms.`, `Mrs.`)."
                              },
                              "firstName": {
                                "type": "string",
                                "example": "jonny",
                                "description": "First name."
                              },
                              "middleName": {
                                "type": "string",
                                "example": "eric",
                                "description": "Middle name."
                              },
                              "lastName": {
                                "type": "string",
                                "example": "dooei",
                                "description": "Last name."
                              },
                              "birthDate": {
                                "type": "string",
                                "format": "date",
                                "example": "2000-08-01",
                                "description": "Date of birth (YYYY-MM-DD)."
                              },
                              "phoneNumber": {
                                "type": "string",
                                "example": "2232322323",
                                "description": "Phone number of the owner."
                              },
                              "streetNum": {
                                "type": "string",
                                "example": "79",
                                "description": "Street number."
                              },
                              "streetName": {
                                "type": "string",
                                "example": "clarks",
                                "description": "Street name."
                              },
                              "city": {
                                "type": "string",
                                "example": "ny",
                                "description": "City name."
                              },
                              "state": {
                                "type": "string",
                                "example": "NY",
                                "description": "Two-letter US state code."
                              },
                              "postalCode": {
                                "type": "string",
                                "example": "23434",
                                "description": "ZIP or postal code."
                              },
                              "ssnLast4": {
                                "type": "string",
                                "example": "123123123",
                                "description": "Last 4 digits of the owner's SSN."
                              },
                              "ownershipPercentage": {
                                "type": "integer",
                                "example": 100,
                                "description": "Percentage of the business this owner holds (0-100)."
                              },
                              "email": {
                                "type": "string",
                                "example": "mail_m@asd.com",
                                "description": "Email address of the owner."
                              }
                            }
                          },
                          "description": "Business owners. Required for individual and business entity types."
                        },
                        "business": {
                          "type": "object",
                          "properties": {},
                          "description": "Business identity details."
                        },
                        "Contact": {
                          "type": "object",
                          "properties": {
                            "firstName": {
                              "type": "string",
                              "example": "John",
                              "description": "First name."
                            },
                            "middleName": {
                              "type": "string",
                              "example": "Michael",
                              "description": "Middle name."
                            },
                            "lastName": {
                              "type": "string",
                              "example": "Doe",
                              "description": "Last name."
                            },
                            "birthDate": {
                              "type": "string",
                              "format": "date",
                              "example": "1990-01-15",
                              "description": "Format: YYYY-MM-DD"
                            },
                            "position": {
                              "type": "string",
                              "example": "CEO",
                              "description": "Role of the owner in the business."
                            },
                            "ssn": {
                              "type": "string",
                              "example": "123-45-6789",
                              "description": "Social Security Number"
                            },
                            "phoneNumber": {
                              "type": "string",
                              "example": "5551234567",
                              "description": "Phone number."
                            },
                            "email": {
                              "type": "string",
                              "format": "email",
                              "example": "john.doe@example.com",
                              "description": "Email address."
                            }
                          },
                          "description": "Primary contact details."
                        }
                      },
                      "description": "Identity details for the business and its owners."
                    },
                    "fees": {
                      "type": "object",
                      "properties": {
                        "platform": {
                          "type": "object",
                          "properties": {
                            "interchange": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean",
                                  "example": false,
                                  "description": "Whether this setting is enabled."
                                },
                                "billTo": {
                                  "type": "string",
                                  "example": "submerchant",
                                  "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                }
                              },
                              "description": "Interchange pass-through fee settings."
                            },
                            "perTransaction": {
                              "type": "object",
                              "properties": {
                                "ccCnpSale": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 2.9,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.3,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present sale."
                                },
                                "ccCnpCapture": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 2.9,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.3,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present capture."
                                },
                                "ccCnpAuth": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present authorization."
                                },
                                "ccCnpVoid": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present void."
                                },
                                "ccCnpRefund": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present refund."
                                },
                                "ccCnpCredit": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present credit."
                                },
                                "ccCnpReversal": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present reversal."
                                },
                                "ccCnpChargeback": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 25,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each chargeback."
                                },
                                "ccCnpAvsOnly": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each AVS-only verification."
                                },
                                "ccCnpDeclined": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.5,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each declined card-not-present attempt."
                                },
                                "checkSale": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 2.9,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.3,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck sale."
                                },
                                "checkVerification": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck verification."
                                },
                                "checkVoid": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck void."
                                },
                                "checkRefund": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck refund."
                                },
                                "checkCredit": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck credit."
                                },
                                "checkReversal": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck reversal."
                                }
                              },
                              "description": "Event-based fees, one entry per transaction event type."
                            },
                            "perPeriod": {
                              "type": "array",
                              "items": {},
                              "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                            }
                          },
                          "description": "Fee configuration at the platform level."
                        },
                        "spProduct": {
                          "type": "object",
                          "properties": {
                            "perTransaction": {
                              "type": "object",
                              "properties": {
                                "ccCnpSale": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 2.9,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.3,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present sale."
                                },
                                "ccCnpCapture": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 2.9,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.3,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present capture."
                                },
                                "ccCnpAuth": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present authorization."
                                },
                                "ccCnpVoid": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present void."
                                },
                                "ccCnpRefund": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present refund."
                                },
                                "ccCnpCredit": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present credit."
                                },
                                "ccCnpReversal": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present reversal."
                                },
                                "ccCnpChargeback": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 25,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each chargeback."
                                },
                                "ccCnpAvsOnly": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each AVS-only verification."
                                },
                                "ccCnpDeclined": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.5,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each declined card-not-present attempt."
                                },
                                "checkSale": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 2.9,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.3,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck sale."
                                },
                                "checkVerification": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck verification."
                                },
                                "checkVoid": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck void."
                                },
                                "checkRefund": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck refund."
                                },
                                "checkCredit": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck credit."
                                },
                                "checkReversal": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck reversal."
                                }
                              },
                              "description": "Event-based fees, one entry per transaction event type."
                            },
                            "perPeriod": {
                              "type": "array",
                              "items": {},
                              "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                            }
                          },
                          "description": "Fee configuration at the Service Provider product level."
                        }
                      },
                      "description": "Fee configuration. Overrides values from the fees template."
                    },
                    "_id": {
                      "type": "string",
                      "example": "67a5069a7151ee56479a9366",
                      "description": "Internal document identifier."
                    },
                    "facId": {
                      "type": "string",
                      "example": "JPT",
                      "description": "Facilitator identifier assigned by Jupico."
                    },
                    "spProductId": {
                      "type": "string",
                      "example": "255",
                      "description": "Identifier of the Service Provider product the merchant belongs to."
                    },
                    "inviteId": {
                      "type": "string",
                      "example": "1dfaab8f-2927-4c58-8ba3-91aec2ec5a56",
                      "description": "Unique identifier of the onboarding invite."
                    },
                    "name": {
                      "type": "string",
                      "example": "Tech",
                      "description": "Display name."
                    },
                    "email": {
                      "type": "string",
                      "example": "test@gmail.com",
                      "description": "Email address."
                    },
                    "phoneNumber": {
                      "type": "string",
                      "example": "2995318324",
                      "description": "Phone number."
                    },
                    "reference": {
                      "type": "string",
                      "example": "1234",
                      "description": "Your own reference for this invite."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "example": "https://sandbox-payments-onboarding.jupico.com/jpt-sim-demo/get-started?invite=1dfaab8f-2927-4c58-8ba3-91aec2ec5a56",
                      "description": "URL of the hosted page for this object."
                    },
                    "status": {
                      "type": "string",
                      "example": "sent",
                      "description": "Current status."
                    },
                    "isDeleted": {
                      "type": "boolean",
                      "example": false,
                      "description": "Whether the record is soft-deleted."
                    },
                    "feesTemplateId": {
                      "type": "string",
                      "example": "415dd627-006f-4477-a2eb-47c6eb7a4534",
                      "description": "UUID of a fees template with predefined pricing. If omitted, the default template is used."
                    },
                    "onboardingFlowTemplateId": {
                      "type": "string",
                      "example": "7f10de6b-971c-4ad9-9f09-cdf03c5b303e",
                      "description": "UUID of the onboarding flow template that controls which steps the merchant sees."
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-03-06T18:59:39.643Z",
                      "description": "Timestamp when this object expires (ISO 8601)."
                    },
                    "payoutBankAccounts": {
                      "type": "array",
                      "items": {},
                      "description": "Bank accounts where the merchant receives payouts."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-02-06T18:59:38.944Z",
                      "description": "Timestamp when the object was created (ISO 8601)."
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-02-06T18:59:39.649Z",
                      "description": "Timestamp when the object was last updated (ISO 8601)."
                    },
                    "__v": {
                      "type": "integer",
                      "example": 0,
                      "description": "Internal document version. Ignore."
                    }
                  },
                  "description": "The response payload."
                }
              }
            }
          }
        }
      },
      "createManyOnboardingInvites": {
        "description": "Successfully fetched onboarding invites.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer",
                      "description": "Total number of records processed."
                    },
                    "succeeded": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer",
                          "description": "Number of records."
                        },
                        "results": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "inviteId": {
                                "type": "string",
                                "description": "Unique identifier of the onboarding invite."
                              },
                              "name": {
                                "type": "string",
                                "description": "Display name."
                              },
                              "email": {
                                "type": "string",
                                "description": "Email address."
                              }
                            }
                          },
                          "description": "The individual records."
                        }
                      },
                      "description": "The subset that succeeded, with count and results."
                    },
                    "failed": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer",
                          "description": "Number of records."
                        },
                        "results": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          },
                          "description": "The individual records."
                        }
                      },
                      "description": "The subset that failed, with count and results."
                    },
                    "dryRun": {
                      "type": "boolean",
                      "description": "When true, validates the request without creating invites."
                    }
                  },
                  "description": "The response payload."
                }
              }
            }
          }
        }
      },
      "updateOnboardingInvite": {
        "description": "Successfully updated onboarding invite.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "notifications": {
                      "type": "object",
                      "properties": {
                        "email": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Whether this setting is enabled."
                            },
                            "sent": {
                              "type": "boolean",
                              "description": "Whether the notification was sent."
                            }
                          },
                          "description": "Email notification status."
                        },
                        "sms": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Whether this setting is enabled."
                            },
                            "sent": {
                              "type": "boolean",
                              "description": "Whether the notification was sent."
                            }
                          },
                          "description": "SMS notification status."
                        }
                      },
                      "description": "Delivery status of invite notifications."
                    },
                    "identity": {
                      "type": "object",
                      "properties": {
                        "owners": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "title": {
                                "type": "string",
                                "description": "Salutation of the owner (`Mr.`, `Ms.`, `Mrs.`)."
                              },
                              "firstName": {
                                "type": "string",
                                "description": "First name."
                              },
                              "middleName": {
                                "type": "string",
                                "description": "Middle name."
                              },
                              "lastName": {
                                "type": "string",
                                "description": "Last name."
                              },
                              "birthDate": {
                                "type": "string",
                                "format": "date",
                                "description": "Date of birth (YYYY-MM-DD)."
                              },
                              "phoneNumber": {
                                "type": "string",
                                "description": "Phone number of the owner."
                              },
                              "streetNum": {
                                "type": "string",
                                "description": "Street number."
                              },
                              "streetName": {
                                "type": "string",
                                "description": "Street name."
                              },
                              "city": {
                                "type": "string",
                                "description": "City name."
                              },
                              "state": {
                                "type": "string",
                                "description": "Two-letter US state code."
                              },
                              "postalCode": {
                                "type": "string",
                                "description": "ZIP or postal code."
                              },
                              "ssnLast4": {
                                "type": "string",
                                "description": "Last 4 digits of the owner's SSN."
                              },
                              "ownershipPercentage": {
                                "type": "integer",
                                "description": "Percentage of the business this owner holds (0-100)."
                              },
                              "email": {
                                "type": "string",
                                "description": "Email address of the owner."
                              },
                              "position": {
                                "type": "string",
                                "description": "Role of the owner in the business."
                              }
                            }
                          },
                          "description": "Business owners. Required for individual and business entity types."
                        },
                        "business": {
                          "type": "object",
                          "properties": {
                            "address": {
                              "type": "object",
                              "properties": {
                                "streetNum": {
                                  "type": "string",
                                  "description": "Street number."
                                },
                                "streetName": {
                                  "type": "string",
                                  "description": "Street name."
                                },
                                "city": {
                                  "type": "string",
                                  "description": "City name."
                                },
                                "state": {
                                  "type": "string",
                                  "description": "Two-letter US state code."
                                },
                                "postalCode": {
                                  "type": "string",
                                  "description": "ZIP or postal code."
                                }
                              },
                              "description": "Registered business address."
                            },
                            "legalName": {
                              "type": "string",
                              "description": "Registered legal name of the business."
                            },
                            "dbaName": {
                              "type": "string",
                              "description": "The merchant's doing-business-as name. Appears on customer statements unless overridden."
                            },
                            "federalTaxId": {
                              "type": "string",
                              "description": "Federal tax ID, 9 digits."
                            },
                            "tinType": {
                              "type": "string",
                              "description": "Type of tax identification number: `SSN`, `EIN`, or `Other`."
                            },
                            "phoneNumber": {
                              "type": "string",
                              "description": "Business phone number."
                            },
                            "websiteUrl": {
                              "type": "string",
                              "format": "uri",
                              "description": "Business website URL."
                            },
                            "ownershipType": {
                              "type": "string",
                              "description": "Legal structure of the business."
                            },
                            "businessEstablishedDate": {
                              "type": "string",
                              "format": "date",
                              "description": "Date the business was established (YYYY-MM-DD)."
                            },
                            "expectedMonthlyVolume": {
                              "type": "integer",
                              "description": "Expected monthly processing volume, used in underwriting."
                            }
                          },
                          "description": "Business identity details."
                        },
                        "contact": {
                          "type": "object",
                          "properties": {
                            "firstName": {
                              "type": "string",
                              "example": "John",
                              "description": "First name."
                            },
                            "middleName": {
                              "type": "string",
                              "example": "Michael",
                              "description": "Middle name."
                            },
                            "lastName": {
                              "type": "string",
                              "example": "Doe",
                              "description": "Last name."
                            },
                            "birthDate": {
                              "type": "string",
                              "format": "date",
                              "example": "1990-01-15",
                              "description": "Format: YYYY-MM-DD"
                            },
                            "position": {
                              "type": "string",
                              "example": "CEO",
                              "description": "Role of the owner in the business."
                            },
                            "ssn": {
                              "type": "string",
                              "example": "123-45-6789",
                              "description": "Social Security Number"
                            },
                            "phoneNumber": {
                              "type": "string",
                              "example": "5551234567",
                              "description": "Phone number."
                            },
                            "email": {
                              "type": "string",
                              "format": "email",
                              "example": "john.doe@example.com",
                              "description": "Email address."
                            }
                          },
                          "description": "Primary contact for the business."
                        }
                      },
                      "description": "Identity details for the business and its owners."
                    },
                    "fees": {
                      "type": "object",
                      "properties": {
                        "platform": {
                          "type": "object",
                          "properties": {
                            "interchange": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean",
                                  "description": "Whether this setting is enabled."
                                },
                                "billTo": {
                                  "type": "string",
                                  "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                }
                              },
                              "description": "Interchange pass-through fee settings."
                            },
                            "perTransaction": {
                              "type": "object",
                              "properties": {
                                "ccCnpSale": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present sale."
                                },
                                "ccCnpCapture": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present capture."
                                },
                                "ccCnpAuth": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present authorization."
                                },
                                "ccCnpVoid": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present void."
                                },
                                "ccCnpRefund": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present refund."
                                },
                                "ccCnpCredit": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present credit."
                                },
                                "ccCnpReversal": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present reversal."
                                },
                                "ccCnpChargeback": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each chargeback."
                                },
                                "ccCnpAvsOnly": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each AVS-only verification."
                                },
                                "ccCnpDeclined": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each declined card-not-present attempt."
                                },
                                "checkSale": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck sale."
                                },
                                "checkVerification": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck verification."
                                },
                                "checkVoid": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck void."
                                },
                                "checkRefund": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck refund."
                                },
                                "checkCredit": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck credit."
                                },
                                "checkReversal": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck reversal."
                                }
                              },
                              "description": "Event-based fees, one entry per transaction event type."
                            }
                          },
                          "description": "Fee configuration at the platform level."
                        },
                        "spProduct": {
                          "type": "object",
                          "properties": {
                            "perTransaction": {
                              "type": "object",
                              "properties": {
                                "ccCnpSale": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present sale."
                                },
                                "ccCnpCapture": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present capture."
                                },
                                "ccCnpAuth": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present authorization."
                                },
                                "ccCnpVoid": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present void."
                                },
                                "ccCnpRefund": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present refund."
                                },
                                "ccCnpCredit": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present credit."
                                },
                                "ccCnpReversal": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present reversal."
                                },
                                "ccCnpChargeback": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each chargeback."
                                },
                                "ccCnpAvsOnly": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each AVS-only verification."
                                },
                                "ccCnpDeclined": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each declined card-not-present attempt."
                                },
                                "checkSale": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck sale."
                                },
                                "checkVerification": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck verification."
                                },
                                "checkVoid": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck void."
                                },
                                "checkRefund": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck refund."
                                },
                                "checkCredit": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck credit."
                                },
                                "checkReversal": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck reversal."
                                }
                              },
                              "description": "Event-based fees, one entry per transaction event type."
                            }
                          },
                          "description": "Fee configuration at the Service Provider product level."
                        }
                      },
                      "description": "Fee configuration. Overrides values from the fees template."
                    },
                    "facId": {
                      "type": "string",
                      "description": "Facilitator identifier assigned by Jupico."
                    },
                    "spProductId": {
                      "type": "string",
                      "description": "Identifier of the Service Provider product the merchant belongs to."
                    },
                    "inviteId": {
                      "type": "string",
                      "description": "Unique identifier of the onboarding invite."
                    },
                    "name": {
                      "type": "string",
                      "description": "Display name."
                    },
                    "email": {
                      "type": "string",
                      "description": "Email address."
                    },
                    "phoneNumber": {
                      "type": "string",
                      "description": "Phone number."
                    },
                    "reference": {
                      "type": "string",
                      "description": "Your own reference for this invite."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "URL of the hosted page for this object."
                    },
                    "status": {
                      "type": "string",
                      "description": "Current status."
                    },
                    "isDeleted": {
                      "type": "boolean",
                      "description": "Whether the record is soft-deleted."
                    },
                    "feesTemplateId": {
                      "type": "string",
                      "description": "UUID of a fees template with predefined pricing. If omitted, the default template is used."
                    },
                    "onboardingFlowTemplateId": {
                      "type": "string",
                      "description": "UUID of the onboarding flow template that controls which steps the merchant sees."
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Timestamp when this object expires (ISO 8601)."
                    },
                    "payoutBankAccounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "accountRouting": {
                            "type": "string",
                            "description": "9-digit ABA routing number."
                          },
                          "accountNumber": {
                            "type": "string",
                            "description": "Bank account number."
                          },
                          "accountType": {
                            "type": "string",
                            "description": "Bank account type, such as `checking`."
                          },
                          "nameOnAccount": {
                            "type": "string",
                            "description": "Name on the bank account."
                          }
                        }
                      },
                      "description": "Bank accounts where the merchant receives payouts."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Timestamp when the object was created (ISO 8601)."
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Timestamp when the object was last updated (ISO 8601)."
                    }
                  },
                  "description": "The response payload."
                }
              }
            }
          }
        }
      },
      "sendOnboardingInvites": {
        "description": "Onboarding invite successfully sent.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": true,
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "code": {
                  "type": "string",
                  "example": "0",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "message": {
                  "type": "string",
                  "example": "Invite has been sent",
                  "description": "Human-readable result message."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "notifications": {
                      "type": "object",
                      "properties": {
                        "email": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "example": true,
                              "description": "Whether this setting is enabled."
                            },
                            "sent": {
                              "type": "boolean",
                              "example": true,
                              "description": "Whether the notification was sent."
                            },
                            "sentAt": {
                              "type": "string",
                              "format": "date-time",
                              "example": "2025-02-07T13:24:53.838Z",
                              "description": "Timestamp when it was sent (ISO 8601)."
                            }
                          },
                          "description": "Email notification status."
                        },
                        "sms": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "example": false,
                              "description": "Whether this setting is enabled."
                            },
                            "sent": {
                              "type": "boolean",
                              "example": false,
                              "description": "Whether the notification was sent."
                            }
                          },
                          "description": "SMS notification status."
                        }
                      },
                      "description": "Delivery status of invite notifications."
                    },
                    "identity": {
                      "type": "object",
                      "properties": {
                        "owners": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "title": {
                                "type": "string",
                                "example": "Mr.",
                                "description": "Salutation of the owner (`Mr.`, `Ms.`, `Mrs.`)."
                              },
                              "firstName": {
                                "type": "string",
                                "example": "jonny",
                                "description": "First name."
                              },
                              "middleName": {
                                "type": "string",
                                "example": "eric",
                                "description": "Middle name."
                              },
                              "lastName": {
                                "type": "string",
                                "example": "dooei",
                                "description": "Last name."
                              },
                              "birthDate": {
                                "type": "string",
                                "format": "date",
                                "example": "2000-08-01",
                                "description": "Date of birth (YYYY-MM-DD)."
                              },
                              "phoneNumber": {
                                "type": "string",
                                "example": "2232322323",
                                "description": "Phone number of the owner."
                              },
                              "streetNum": {
                                "type": "string",
                                "example": "79",
                                "description": "Street number."
                              },
                              "streetName": {
                                "type": "string",
                                "example": "clarks",
                                "description": "Street name."
                              },
                              "city": {
                                "type": "string",
                                "example": "ny",
                                "description": "City name."
                              },
                              "state": {
                                "type": "string",
                                "example": "NY",
                                "description": "Two-letter US state code."
                              },
                              "postalCode": {
                                "type": "string",
                                "example": "23434",
                                "description": "ZIP or postal code."
                              },
                              "ssnLast4": {
                                "type": "string",
                                "example": "123123123",
                                "description": "Last 4 digits of the owner's SSN."
                              },
                              "ownershipPercentage": {
                                "type": "integer",
                                "example": 100,
                                "description": "Percentage of the business this owner holds (0-100)."
                              },
                              "email": {
                                "type": "string",
                                "example": "mail_m@asd.com",
                                "description": "Email address of the owner."
                              }
                            }
                          },
                          "description": "Business owners. Required for individual and business entity types."
                        },
                        "business": {
                          "type": "object",
                          "properties": {},
                          "description": "Business identity details."
                        },
                        "contact": {
                          "type": "object",
                          "properties": {
                            "firstName": {
                              "type": "string",
                              "example": "John",
                              "description": "First name."
                            },
                            "middleName": {
                              "type": "string",
                              "example": "Michael",
                              "description": "Middle name."
                            },
                            "lastName": {
                              "type": "string",
                              "example": "Doe",
                              "description": "Last name."
                            },
                            "birthDate": {
                              "type": "string",
                              "format": "date",
                              "example": "1990-01-15",
                              "description": "Format: YYYY-MM-DD"
                            },
                            "position": {
                              "type": "string",
                              "example": "CEO",
                              "description": "Role of the owner in the business."
                            },
                            "ssn": {
                              "type": "string",
                              "example": "123-45-6789",
                              "description": "Social Security Number"
                            },
                            "phoneNumber": {
                              "type": "string",
                              "example": "5551234567",
                              "description": "Phone number."
                            },
                            "email": {
                              "type": "string",
                              "format": "email",
                              "example": "john.doe@example.com",
                              "description": "Email address."
                            }
                          },
                          "description": "Primary contact for the business."
                        }
                      },
                      "description": "Identity details for the business and its owners."
                    },
                    "fees": {
                      "type": "object",
                      "properties": {
                        "platform": {
                          "type": "object",
                          "properties": {
                            "interchange": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean",
                                  "example": false,
                                  "description": "Whether this setting is enabled."
                                },
                                "billTo": {
                                  "type": "string",
                                  "example": "submerchant",
                                  "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                }
                              },
                              "description": "Interchange pass-through fee settings."
                            },
                            "perTransaction": {
                              "type": "object",
                              "properties": {
                                "ccCnpSale": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 2.9,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.3,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present sale."
                                },
                                "ccCnpCapture": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 2.9,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.3,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present capture."
                                },
                                "ccCnpAuth": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present authorization."
                                },
                                "ccCnpVoid": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present void."
                                },
                                "ccCnpRefund": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present refund."
                                },
                                "ccCnpCredit": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present credit."
                                },
                                "ccCnpReversal": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present reversal."
                                },
                                "ccCnpChargeback": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 25,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each chargeback."
                                },
                                "ccCnpAvsOnly": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each AVS-only verification."
                                },
                                "ccCnpDeclined": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.5,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each declined card-not-present attempt."
                                },
                                "checkSale": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 2.9,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.3,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck sale."
                                },
                                "checkVerification": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck verification."
                                },
                                "checkVoid": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck void."
                                },
                                "checkRefund": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck refund."
                                },
                                "checkCredit": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck credit."
                                },
                                "checkReversal": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    },
                                    "billTo": {
                                      "type": "string",
                                      "example": "submerchant",
                                      "description": "Which party is billed for this fee: `spProduct` (the Service Provider) or `submerchant` (the merchant)."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck reversal."
                                }
                              },
                              "description": "Event-based fees, one entry per transaction event type."
                            },
                            "perPeriod": {
                              "type": "array",
                              "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                            },
                            "items": {
                              "description": "Fee entries."
                            }
                          },
                          "description": "Fee configuration at the platform level."
                        },
                        "spProduct": {
                          "type": "object",
                          "properties": {
                            "perTransaction": {
                              "type": "object",
                              "properties": {
                                "ccCnpSale": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 2.9,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.3,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present sale."
                                },
                                "ccCnpCapture": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 2.9,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.3,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present capture."
                                },
                                "ccCnpAuth": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present authorization."
                                },
                                "ccCnpVoid": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present void."
                                },
                                "ccCnpRefund": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present refund."
                                },
                                "ccCnpCredit": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present credit."
                                },
                                "ccCnpReversal": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each card-not-present reversal."
                                },
                                "ccCnpChargeback": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 25,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each chargeback."
                                },
                                "ccCnpAvsOnly": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each AVS-only verification."
                                },
                                "ccCnpDeclined": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.5,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each declined card-not-present attempt."
                                },
                                "checkSale": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 2.9,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.3,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck sale."
                                },
                                "checkVerification": {
                                  "type": "object",
                                  "properties": {
                                    "discountRate": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Percentage fee charged on the event amount."
                                    },
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck verification."
                                },
                                "checkVoid": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck void."
                                },
                                "checkRefund": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck refund."
                                },
                                "checkCredit": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck credit."
                                },
                                "checkReversal": {
                                  "type": "object",
                                  "properties": {
                                    "fixed": {
                                      "type": "number",
                                      "example": 0.75,
                                      "description": "Fixed fee amount charged each time this event occurs."
                                    },
                                    "reverseFixed": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the fixed fee is returned when the underlying transaction is reversed."
                                    },
                                    "reverseDiscountRate": {
                                      "type": "boolean",
                                      "example": true,
                                      "description": "Whether the percentage fee is returned when the underlying transaction is reversed."
                                    }
                                  },
                                  "description": "Fee applied to each eCheck reversal."
                                }
                              },
                              "description": "Event-based fees, one entry per transaction event type."
                            },
                            "perPeriod": {
                              "type": "array",
                              "items": {},
                              "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                            }
                          },
                          "description": "Fee configuration at the Service Provider product level."
                        }
                      },
                      "description": "Fee configuration. Overrides values from the fees template."
                    },
                    "_id": {
                      "type": "string",
                      "example": "67a6098d7151ee56479d1bde",
                      "description": "Internal document identifier."
                    },
                    "facId": {
                      "type": "string",
                      "example": "JPT",
                      "description": "Facilitator identifier assigned by Jupico."
                    },
                    "spProductId": {
                      "type": "string",
                      "example": "255",
                      "description": "Identifier of the Service Provider product the merchant belongs to."
                    },
                    "inviteId": {
                      "type": "string",
                      "example": "25754e1d-62b4-479e-a4b9-acd9f57557ea",
                      "description": "Unique identifier of the onboarding invite."
                    },
                    "name": {
                      "type": "string",
                      "example": "Tech",
                      "description": "Display name."
                    },
                    "email": {
                      "type": "string",
                      "example": "test@gmail.com",
                      "description": "Email address."
                    },
                    "phoneNumber": {
                      "type": "string",
                      "example": "2995318324",
                      "description": "Phone number."
                    },
                    "reference": {
                      "type": "string",
                      "example": "1234",
                      "description": "Your own reference for this invite."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "example": "https://sandbox-payments-onboarding.jupico.com/jpt-sim-demo/get-started?invite=25754e1d-62b4-479e-a4b9-acd9f57557ea",
                      "description": "URL of the hosted page for this object."
                    },
                    "status": {
                      "type": "string",
                      "example": "sent",
                      "description": "Current status."
                    },
                    "isDeleted": {
                      "type": "boolean",
                      "example": false,
                      "description": "Whether the record is soft-deleted."
                    },
                    "feesTemplateId": {
                      "type": "string",
                      "example": "415dd627-006f-4477-a2eb-47c6eb7a4534",
                      "description": "UUID of a fees template with predefined pricing. If omitted, the default template is used."
                    },
                    "onboardingFlowTemplateId": {
                      "type": "string",
                      "example": "7f10de6b-971c-4ad9-9f09-cdf03c5b303e",
                      "description": "UUID of the onboarding flow template that controls which steps the merchant sees."
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-03-07T13:24:53.838Z",
                      "description": "Timestamp when this object expires (ISO 8601)."
                    },
                    "payoutBankAccounts": {
                      "type": "array",
                      "items": {},
                      "description": "Bank accounts where the merchant receives payouts."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-02-07T13:24:29.237Z",
                      "description": "Timestamp when the object was created (ISO 8601)."
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2025-02-07T13:24:53.840Z",
                      "description": "Timestamp when the object was last updated (ISO 8601)."
                    },
                    "__v": {
                      "type": "integer",
                      "example": 0,
                      "description": "Internal document version. Ignore."
                    }
                  },
                  "description": "The response payload."
                }
              }
            }
          }
        }
      },
      "cancelOnboardingInvite": {
        "description": "Onboarding invite successfully cancelled.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": true,
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "code": {
                  "type": "string",
                  "example": "0",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "message": {
                  "type": "string",
                  "example": "Invite deleted",
                  "description": "Human-readable result message."
                }
              }
            }
          }
        }
      },
      "ccSale": {
        "description": "Successful sale",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "Current status."
                    },
                    "transactionId": {
                      "type": "string",
                      "description": "Unique identifier of the original transaction."
                    },
                    "approvalNumber": {
                      "type": "string",
                      "description": "Approval code returned by the issuing bank."
                    },
                    "operation": {
                      "type": "string",
                      "description": "Transaction operation type (for example, sale, authorization, refund)."
                    },
                    "subMerchantId": {
                      "type": "string",
                      "description": "Unique identifier of the submerchant."
                    },
                    "amount": {
                      "type": "number",
                      "description": "The amount of the transaction."
                    },
                    "txDate": {
                      "type": "string",
                      "description": "Date and time of the transaction (ISO 8601)."
                    },
                    "referenceNumber": {
                      "type": "string",
                      "description": "Processor reference number for the transaction."
                    },
                    "referenceId": {
                      "type": "string",
                      "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
                    },
                    "taxAmount": {
                      "type": "number",
                      "description": "Sales tax portion of the amount."
                    },
                    "taxWithHold": {
                      "type": "boolean",
                      "description": "When true, the sales tax portion is withheld from the merchant's settlement until released."
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string",
                            "example": "Consulting services",
                            "description": "Description of the line item."
                          },
                          "quantity": {
                            "type": "number",
                            "example": 5,
                            "description": "Number of units."
                          },
                          "amount": {
                            "type": "number",
                            "example": 100,
                            "description": "Price per unit."
                          },
                          "taxRate": {
                            "type": "number",
                            "description": "Tax rate applied to this line item, as a percentage."
                          }
                        }
                      },
                      "description": "Line items included in the total amount."
                    },
                    "balanceAmount": {
                      "type": "number",
                      "description": "Remaining balance on the transaction after captures, refunds, and voids."
                    },
                    "parentId": {
                      "type": "string",
                      "description": "Identifier of the parent transaction (for example, the authorization behind a capture)."
                    },
                    "description": {
                      "type": "string",
                      "description": "Free-text description."
                    },
                    "dynamicFee": {
                      "type": "object",
                      "properties": {
                        "discountRatePerc": {
                          "type": "number",
                          "description": "Percentage portion of the platform fee, calculated from the transaction amount."
                        },
                        "fixed": {
                          "type": "number",
                          "description": "Fixed monetary portion of the platform fee, in the transaction currency."
                        }
                      },
                      "description": "Defines the platform fee that the service provider charges the merchant for the transaction. The fee is calculated using `fixed` and `discountRatePerc` and deducted from the merchant's transaction proceeds when payouts are calculated. It does not increase or otherwise modify the transaction amount submitted for processing."
                    },
                    "paymentMethod": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "The type."
                        },
                        "eCheck": {
                          "type": "object",
                          "description": "eCheck (ACH) acceptance settings."
                        },
                        "cc": {
                          "type": "object",
                          "properties": {
                            "card": {
                              "type": "object",
                              "properties": {
                                "cardHolderName": {
                                  "type": "string",
                                  "description": "Name of the cardholder."
                                },
                                "last4Digits": {
                                  "type": "string",
                                  "description": "Last 4 digits of the card number."
                                },
                                "expirationMonth": {
                                  "type": "string",
                                  "description": "Two-digit expiration month (01-12)."
                                },
                                "expirationYear": {
                                  "type": "string",
                                  "description": "Two-digit expiration year."
                                },
                                "logo": {
                                  "type": "string",
                                  "description": "Card brand logo identifier."
                                }
                              },
                              "description": "Card details."
                            },
                            "provider": {
                              "type": "string",
                              "description": "Payment provider that issued the token."
                            },
                            "cardHolderInitiated": {
                              "type": "boolean",
                              "description": "True when the cardholder actively initiates the payment; false for merchant-initiated transactions such as recurring charges."
                            },
                            "networkTransactionID": {
                              "type": "string",
                              "description": "Card network transaction identifier, used for merchant-initiated follow-on transactions."
                            },
                            "token": {
                              "type": "string",
                              "description": "The token value."
                            }
                          },
                          "description": "Card payment method details."
                        }
                      },
                      "description": "Details of the payment method used."
                    },
                    "billing": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Full name of the payer."
                        },
                        "email": {
                          "type": "string",
                          "description": "Email address of the payer."
                        },
                        "address": {
                          "type": "string",
                          "description": "Street address, including number."
                        },
                        "city": {
                          "type": "string",
                          "description": "City name."
                        },
                        "zipCode": {
                          "type": "string",
                          "description": "ZIP or postal code."
                        },
                        "state": {
                          "type": "string",
                          "description": "Two-letter US state code."
                        },
                        "country": {
                          "type": "string",
                          "description": "Two-letter ISO 3166-1 country code."
                        },
                        "phone": {
                          "type": "string",
                          "description": "Phone number of the payer."
                        }
                      },
                      "description": "Billing contact and address details for the payer."
                    },
                    "shipping": {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "description": "Street address, including number."
                        },
                        "city": {
                          "type": "string",
                          "description": "City name."
                        },
                        "zipCode": {
                          "type": "string",
                          "description": "ZIP or postal code."
                        },
                        "state": {
                          "type": "string",
                          "description": "Two-letter US state code."
                        },
                        "country": {
                          "type": "string",
                          "description": "Two-letter ISO 3166-1 country code."
                        },
                        "email": {
                          "type": "string",
                          "description": "Email address of the recipient."
                        },
                        "name": {
                          "type": "string",
                          "description": "Name of the recipient."
                        },
                        "phone": {
                          "type": "string",
                          "description": "Phone number of the recipient."
                        }
                      },
                      "description": "Shipping contact and address details for the order."
                    },
                    "validations": {
                      "type": "object",
                      "properties": {
                        "avs": {
                          "type": "object",
                          "properties": {
                            "addressNumber": {
                              "type": "string",
                              "description": "AVS result for the street number."
                            },
                            "addressPostalCode": {
                              "type": "string",
                              "description": "AVS result for the postal code."
                            }
                          },
                          "description": "Address Verification Service (AVS) results."
                        },
                        "cvv": {
                          "type": "object",
                          "properties": {
                            "cvcCheck": {
                              "type": "string",
                              "description": "Result of the card verification code check."
                            }
                          },
                          "description": "CVV check result."
                        }
                      },
                      "description": "Verification results returned by the issuer."
                    },
                    "paymentToken": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "Type of token supplied."
                        },
                        "token": {
                          "type": "object",
                          "properties": {
                            "provider": {
                              "type": "string",
                              "description": "Payment provider that issued the token (for example, `jupico`)."
                            },
                            "token": {
                              "type": "string",
                              "description": "The token value."
                            },
                            "cardHolderName": {
                              "type": "string",
                              "description": "Name of the cardholder."
                            },
                            "expirationMonth": {
                              "type": "string",
                              "description": "Two-digit expiration month (01-12)."
                            },
                            "expirationYear": {
                              "type": "string",
                              "description": "Two-digit expiration year."
                            },
                            "logo": {
                              "type": "string",
                              "description": "Card brand logo identifier."
                            },
                            "cardLogo": {
                              "type": "string",
                              "description": "Card brand logo identifier."
                            },
                            "last4Digits": {
                              "type": "string",
                              "description": "Last 4 digits of the card number."
                            },
                            "truncatedCardNumber": {
                              "type": "string",
                              "description": "Masked card number."
                            }
                          },
                          "description": "Token payload returned by tokenization."
                        }
                      },
                      "description": "The payment credential to charge: a one-time token from the web component or a stored Jupico token."
                    }
                  },
                  "description": "The response payload."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                }
              }
            }
          }
        }
      },
      "ccOperationResponse": {
        "description": "Successful cc operation",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "Current status."
                    },
                    "transactionId": {
                      "type": "string",
                      "description": "Unique identifier of the original transaction."
                    },
                    "operation": {
                      "type": "string",
                      "description": "Transaction operation type (for example, sale, authorization, refund)."
                    },
                    "subMerchantId": {
                      "type": "string",
                      "description": "Unique identifier of the submerchant."
                    },
                    "amount": {
                      "type": "number",
                      "description": "The amount of the transaction."
                    },
                    "balanceAmount": {
                      "type": "number",
                      "description": "Remaining balance on the transaction after captures, refunds, and voids."
                    },
                    "customerId": {
                      "type": "string",
                      "description": "Unique identifier of the customer."
                    },
                    "parentId": {
                      "type": "string",
                      "description": "Identifier of the parent transaction (for example, the authorization behind a capture)."
                    },
                    "referenceNumber": {
                      "type": "string",
                      "description": "Processor reference number for the transaction."
                    },
                    "referenceId": {
                      "type": "string",
                      "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
                    },
                    "taxAmount": {
                      "type": "number",
                      "description": "Sales tax portion of the amount."
                    },
                    "txDate": {
                      "type": "string",
                      "description": "Date and time of the transaction (ISO 8601)."
                    },
                    "description": {
                      "type": "string",
                      "description": "Free-text description."
                    },
                    "dynamicFee": {
                      "type": "object",
                      "properties": {
                        "discountRatePerc": {
                          "type": "number",
                          "description": "Percentage portion of the platform fee, calculated from the transaction amount."
                        },
                        "fixed": {
                          "type": "number",
                          "description": "Fixed monetary portion of the platform fee, in the transaction currency."
                        }
                      },
                      "description": "Defines the platform fee that the service provider charges the merchant for the transaction. The fee is calculated using `fixed` and `discountRatePerc` and deducted from the merchant's transaction proceeds when payouts are calculated. It does not increase or otherwise modify the transaction amount submitted for processing."
                    },
                    "paymentMethod": {
                      "type": "object",
                      "properties": {
                        "cc": {
                          "type": "object",
                          "properties": {
                            "card": {
                              "type": "object",
                              "properties": {
                                "last4Digits": {
                                  "type": "string",
                                  "description": "Last 4 digits of the card number."
                                },
                                "expirationYear": {
                                  "type": "string",
                                  "description": "Two-digit expiration year."
                                },
                                "expirationMonth": {
                                  "type": "string",
                                  "description": "Two-digit expiration month (01-12)."
                                },
                                "logo": {
                                  "type": "string",
                                  "description": "Card brand logo identifier."
                                }
                              },
                              "description": "Card details."
                            },
                            "cardHolderInitiated": {
                              "type": "boolean",
                              "description": "True when the cardholder actively initiates the payment; false for merchant-initiated transactions such as recurring charges."
                            },
                            "networkTransactionID": {
                              "type": "string",
                              "description": "Card network transaction identifier, used for merchant-initiated follow-on transactions."
                            },
                            "token": {
                              "type": "string",
                              "description": "The token value."
                            }
                          },
                          "description": "Card payment method details."
                        },
                        "eCheck": {
                          "type": "object",
                          "description": "eCheck (ACH) acceptance settings."
                        },
                        "type": {
                          "type": "string",
                          "description": "The type."
                        }
                      },
                      "description": "Details of the payment method used."
                    },
                    "billing": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Full name of the payer."
                        },
                        "email": {
                          "type": "string",
                          "description": "Email address of the payer."
                        },
                        "address": {
                          "type": "string",
                          "description": "Street address, including number."
                        },
                        "city": {
                          "type": "string",
                          "description": "City name."
                        },
                        "zipCode": {
                          "type": "string",
                          "description": "ZIP or postal code."
                        },
                        "state": {
                          "type": "string",
                          "description": "Two-letter US state code."
                        },
                        "country": {
                          "type": "string",
                          "description": "Two-letter ISO 3166-1 country code."
                        },
                        "phone": {
                          "type": "string",
                          "description": "Phone number of the payer."
                        }
                      },
                      "description": "Billing contact and address details for the payer."
                    },
                    "approvalNumber": {
                      "type": "string",
                      "description": "Approval code returned by the issuing bank."
                    },
                    "shipping": {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "description": "Street address, including number."
                        },
                        "city": {
                          "type": "string",
                          "description": "City name."
                        },
                        "zipCode": {
                          "type": "string",
                          "description": "ZIP or postal code."
                        },
                        "state": {
                          "type": "string",
                          "description": "Two-letter US state code."
                        },
                        "country": {
                          "type": "string",
                          "description": "Two-letter ISO 3166-1 country code."
                        },
                        "email": {
                          "type": "string",
                          "description": "Email address of the recipient."
                        },
                        "name": {
                          "type": "string",
                          "description": "Name of the recipient."
                        },
                        "phone": {
                          "type": "string",
                          "description": "Phone number of the recipient."
                        }
                      },
                      "description": "Shipping contact and address details for the order."
                    },
                    "validations": {
                      "type": "object",
                      "properties": {
                        "avs": {
                          "type": "object",
                          "properties": {
                            "addressNumber": {
                              "type": "string",
                              "description": "AVS result for the street number."
                            },
                            "addressPostalCode": {
                              "type": "string",
                              "description": "AVS result for the postal code."
                            }
                          },
                          "description": "Address Verification Service (AVS) results."
                        }
                      },
                      "description": "Verification results returned by the issuer."
                    }
                  },
                  "description": "The response payload."
                },
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                }
              }
            }
          }
        }
      },
      "ccAuth": {
        "description": "Successful authorization",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "Current status."
                    },
                    "transactionId": {
                      "type": "string",
                      "description": "Unique identifier of the original transaction."
                    },
                    "operation": {
                      "type": "string",
                      "description": "Transaction operation type (for example, sale, authorization, refund)."
                    },
                    "subMerchantId": {
                      "type": "string",
                      "description": "Unique identifier of the submerchant."
                    },
                    "amount": {
                      "type": "number",
                      "description": "The amount of the transaction."
                    },
                    "balanceAmount": {
                      "type": "number",
                      "description": "Remaining balance on the transaction after captures, refunds, and voids."
                    },
                    "parentId": {
                      "type": "string",
                      "description": "Identifier of the parent transaction (for example, the authorization behind a capture)."
                    },
                    "referenceNumber": {
                      "type": "string",
                      "description": "Processor reference number for the transaction."
                    },
                    "referenceId": {
                      "type": "string",
                      "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
                    },
                    "taxAmount": {
                      "type": "number",
                      "description": "Sales tax portion of the amount."
                    },
                    "txDate": {
                      "type": "string",
                      "description": "Date and time of the transaction (ISO 8601)."
                    },
                    "description": {
                      "type": "string",
                      "description": "Free-text description."
                    },
                    "dynamicFee": {
                      "type": "object",
                      "properties": {
                        "discountRatePerc": {
                          "type": "number",
                          "description": "Percentage portion of the platform fee, calculated from the transaction amount."
                        },
                        "fixed": {
                          "type": "number",
                          "description": "Fixed monetary portion of the platform fee, in the transaction currency."
                        }
                      },
                      "description": "Defines the platform fee that the service provider charges the merchant for the transaction. The fee is calculated using `fixed` and `discountRatePerc` and deducted from the merchant's transaction proceeds when payouts are calculated. It does not increase or otherwise modify the transaction amount submitted for processing."
                    },
                    "paymentMethod": {
                      "type": "object",
                      "properties": {
                        "cc": {
                          "type": "object",
                          "properties": {
                            "card": {
                              "type": "object",
                              "properties": {
                                "last4Digits": {
                                  "type": "string",
                                  "description": "Last 4 digits of the card number."
                                },
                                "expirationYear": {
                                  "type": "string",
                                  "description": "Two-digit expiration year."
                                },
                                "expirationMonth": {
                                  "type": "string",
                                  "description": "Two-digit expiration month (01-12)."
                                },
                                "logo": {
                                  "type": "string",
                                  "description": "Card brand logo identifier."
                                }
                              },
                              "description": "Card details."
                            },
                            "cardHolderInitiated": {
                              "type": "boolean",
                              "description": "True when the cardholder actively initiates the payment; false for merchant-initiated transactions such as recurring charges."
                            },
                            "networkTransactionID": {
                              "type": "string",
                              "description": "Card network transaction identifier, used for merchant-initiated follow-on transactions."
                            },
                            "token": {
                              "type": "string",
                              "description": "The token value."
                            }
                          },
                          "description": "Card payment method details."
                        },
                        "eCheck": {
                          "type": "object",
                          "description": "eCheck (ACH) acceptance settings."
                        },
                        "type": {
                          "type": "string",
                          "description": "The type."
                        }
                      },
                      "description": "Details of the payment method used."
                    },
                    "billing": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Full name of the payer."
                        },
                        "email": {
                          "type": "string",
                          "description": "Email address of the payer."
                        },
                        "address": {
                          "type": "string",
                          "description": "Street address, including number."
                        },
                        "city": {
                          "type": "string",
                          "description": "City name."
                        },
                        "zipCode": {
                          "type": "string",
                          "description": "ZIP or postal code."
                        },
                        "state": {
                          "type": "string",
                          "description": "Two-letter US state code."
                        },
                        "country": {
                          "type": "string",
                          "description": "Two-letter ISO 3166-1 country code."
                        },
                        "phone": {
                          "type": "string",
                          "description": "Phone number of the payer."
                        }
                      },
                      "description": "Billing contact and address details for the payer."
                    },
                    "approvalNumber": {
                      "type": "string",
                      "description": "Approval code returned by the issuing bank."
                    },
                    "shipping": {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "description": "Street address, including number."
                        },
                        "city": {
                          "type": "string",
                          "description": "City name."
                        },
                        "zipCode": {
                          "type": "string",
                          "description": "ZIP or postal code."
                        },
                        "state": {
                          "type": "string",
                          "description": "Two-letter US state code."
                        },
                        "country": {
                          "type": "string",
                          "description": "Two-letter ISO 3166-1 country code."
                        },
                        "email": {
                          "type": "string",
                          "description": "Email address of the recipient."
                        },
                        "name": {
                          "type": "string",
                          "description": "Name of the recipient."
                        },
                        "phone": {
                          "type": "string",
                          "description": "Phone number of the recipient."
                        }
                      },
                      "description": "Shipping contact and address details for the order."
                    },
                    "validations": {
                      "type": "object",
                      "properties": {
                        "avs": {
                          "type": "object",
                          "properties": {
                            "addressNumber": {
                              "type": "string",
                              "description": "AVS result for the street number."
                            },
                            "addressPostalCode": {
                              "type": "string",
                              "description": "AVS result for the postal code."
                            }
                          },
                          "description": "Address Verification Service (AVS) results."
                        },
                        "cvv": {
                          "type": "object",
                          "properties": {
                            "cvcCheck": {
                              "type": "string",
                              "description": "Result of the card verification code check."
                            }
                          },
                          "description": "CVV check result."
                        }
                      },
                      "description": "Verification results returned by the issuer."
                    },
                    "paymentToken": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "Type of token supplied."
                        },
                        "token": {
                          "type": "object",
                          "properties": {
                            "provider": {
                              "type": "string",
                              "description": "Payment provider that issued the token (for example, `jupico`)."
                            },
                            "token": {
                              "type": "string",
                              "description": "The token value."
                            },
                            "cardHolderName": {
                              "type": "string",
                              "description": "Name of the cardholder."
                            },
                            "expirationMonth": {
                              "type": "string",
                              "description": "Two-digit expiration month (01-12)."
                            },
                            "expirationYear": {
                              "type": "string",
                              "description": "Two-digit expiration year."
                            },
                            "logo": {
                              "type": "string",
                              "description": "Card brand logo identifier."
                            },
                            "cardLogo": {
                              "type": "string",
                              "description": "Card brand logo identifier."
                            },
                            "last4Digits": {
                              "type": "string",
                              "description": "Last 4 digits of the card number."
                            },
                            "truncatedCardNumber": {
                              "type": "string",
                              "description": "Masked card number."
                            }
                          },
                          "description": "Token payload returned by tokenization."
                        }
                      },
                      "description": "The payment credential to charge: a one-time token from the web component or a stored Jupico token."
                    }
                  },
                  "description": "The response payload."
                },
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                }
              }
            }
          }
        }
      },
      "ccAvs": {
        "description": "Successful fund capture",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "Current status."
                    },
                    "transactionId": {
                      "type": "string",
                      "description": "Unique identifier of the original transaction."
                    },
                    "operation": {
                      "type": "string",
                      "description": "Transaction operation type (for example, sale, authorization, refund)."
                    },
                    "subMerchantId": {
                      "type": "string",
                      "description": "Unique identifier of the submerchant."
                    },
                    "amount": {
                      "type": "number",
                      "description": "The amount of the transaction."
                    },
                    "balanceAmount": {
                      "type": "number",
                      "description": "Remaining balance on the transaction after captures, refunds, and voids."
                    },
                    "customerId": {
                      "type": "string",
                      "description": "Unique identifier of the customer."
                    },
                    "parentId": {
                      "type": "string",
                      "description": "Identifier of the parent transaction (for example, the authorization behind a capture)."
                    },
                    "referenceNumber": {
                      "type": "string",
                      "description": "Processor reference number for the transaction."
                    },
                    "referenceId": {
                      "type": "string",
                      "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
                    },
                    "taxAmount": {
                      "type": "number",
                      "description": "Sales tax portion of the amount."
                    },
                    "txDate": {
                      "type": "string",
                      "description": "Date and time of the transaction (ISO 8601)."
                    },
                    "description": {
                      "type": "string",
                      "description": "Free-text description."
                    },
                    "paymentMethod": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "The type."
                        },
                        "eCheck": {
                          "type": "object",
                          "description": "eCheck (ACH) acceptance settings."
                        },
                        "cc": {
                          "type": "object",
                          "properties": {
                            "card": {
                              "type": "object",
                              "properties": {
                                "last4Digits": {
                                  "type": "string",
                                  "description": "Last 4 digits of the card number."
                                },
                                "expirationYear": {
                                  "type": "string",
                                  "description": "Two-digit expiration year."
                                },
                                "expirationMonth": {
                                  "type": "string",
                                  "description": "Two-digit expiration month (01-12)."
                                },
                                "logo": {
                                  "type": "string",
                                  "description": "Card brand logo identifier."
                                }
                              },
                              "description": "Card details."
                            },
                            "networkTransactionID": {
                              "type": "string",
                              "description": "Card network transaction identifier, used for merchant-initiated follow-on transactions."
                            },
                            "commercialCardCustomerCode": {
                              "type": "string",
                              "description": "Customer code for commercial card (Level 2) processing."
                            },
                            "token": {
                              "type": "string",
                              "description": "The token value."
                            }
                          },
                          "description": "Card payment method details."
                        }
                      },
                      "description": "Details of the payment method used."
                    },
                    "approvalNumber": {
                      "type": "string",
                      "description": "Approval code returned by the issuing bank."
                    },
                    "shipping": {
                      "type": "string",
                      "description": "Shipping contact and address details for the order."
                    },
                    "billing": {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "description": "Street address, including number."
                        },
                        "city": {
                          "type": "string",
                          "description": "City name."
                        },
                        "zipCode": {
                          "type": "string",
                          "description": "ZIP or postal code."
                        },
                        "state": {
                          "type": "string",
                          "description": "Two-letter US state code."
                        },
                        "country": {
                          "type": "string",
                          "description": "Two-letter ISO 3166-1 country code."
                        },
                        "email": {
                          "type": "string",
                          "description": "Email address of the payer."
                        },
                        "name": {
                          "type": "string",
                          "description": "Full name of the payer."
                        },
                        "phone": {
                          "type": "string",
                          "description": "Phone number of the payer."
                        }
                      },
                      "description": "Billing contact and address details for the payer."
                    },
                    "success": {
                      "type": "boolean",
                      "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable result message."
                    },
                    "code": {
                      "type": "string",
                      "description": "Machine-readable result code. See the Error Codes reference."
                    }
                  },
                  "description": "The response payload."
                }
              }
            }
          }
        }
      },
      "ccCapture": {
        "description": "Successful fund capture",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "Current status."
                    },
                    "approvalNumber": {
                      "type": "string",
                      "description": "Approval code returned by the issuing bank."
                    },
                    "transactionId": {
                      "type": "string",
                      "description": "Identifier of the authorization to capture."
                    },
                    "operation": {
                      "type": "string",
                      "description": "Transaction operation type (for example, sale, authorization, refund)."
                    },
                    "subMerchantId": {
                      "type": "string",
                      "description": "Unique identifier of the submerchant."
                    },
                    "amount": {
                      "type": "number",
                      "description": "The amount of the transaction."
                    },
                    "txDate": {
                      "type": "string",
                      "description": "Date and time of the transaction (ISO 8601)."
                    },
                    "referenceNumber": {
                      "type": "string",
                      "description": "Processor reference number for the transaction."
                    },
                    "description": {
                      "type": "string",
                      "description": "Free-text description."
                    },
                    "billing": {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "description": "Street address, including number."
                        },
                        "city": {
                          "type": "string",
                          "description": "City name."
                        },
                        "zipCode": {
                          "type": "string",
                          "description": "ZIP or postal code."
                        },
                        "state": {
                          "type": "string",
                          "description": "Two-letter US state code."
                        },
                        "country": {
                          "type": "string",
                          "description": "Two-letter ISO 3166-1 country code."
                        },
                        "name": {
                          "type": "string",
                          "description": "Full name of the payer."
                        }
                      },
                      "description": "Billing contact and address details for the payer."
                    },
                    "paymentMethod": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "The type."
                        },
                        "eCheck": {
                          "type": "object",
                          "description": "eCheck (ACH) acceptance settings."
                        },
                        "cc": {
                          "type": "object",
                          "properties": {
                            "card": {
                              "type": "object",
                              "properties": {
                                "last4Digits": {
                                  "type": "string",
                                  "description": "Last 4 digits of the card number."
                                },
                                "expirationMonth": {
                                  "type": "string",
                                  "description": "Two-digit expiration month (01-12)."
                                },
                                "expirationYear": {
                                  "type": "string",
                                  "description": "Two-digit expiration year."
                                },
                                "logo": {
                                  "type": "string",
                                  "description": "Card brand logo identifier."
                                }
                              },
                              "description": "Card details."
                            },
                            "token": {
                              "type": "string",
                              "description": "The token value."
                            },
                            "cardHolderInitiated": {
                              "type": "boolean",
                              "description": "True when the cardholder actively initiates the payment; false for merchant-initiated transactions such as recurring charges."
                            }
                          },
                          "description": "Card payment method details."
                        }
                      },
                      "description": "Details of the payment method used."
                    },
                    "balanceAmount": {
                      "type": "number",
                      "description": "Remaining balance on the transaction after captures, refunds, and voids."
                    }
                  },
                  "description": "The response payload."
                },
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                }
              }
            }
          }
        }
      },
      "ccRefund": {
        "description": "Successful refund",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "Current status."
                    },
                    "transactionId": {
                      "type": "string",
                      "description": "Identifier of the settled transaction to refund."
                    },
                    "operation": {
                      "type": "string",
                      "description": "Transaction operation type (for example, sale, authorization, refund)."
                    },
                    "subMerchantId": {
                      "type": "string",
                      "description": "Unique identifier of the submerchant."
                    },
                    "amount": {
                      "type": "number",
                      "description": "The amount of the transaction."
                    },
                    "customerId": {
                      "type": "string",
                      "nullable": true,
                      "description": "Unique identifier of the customer."
                    },
                    "parentId": {
                      "type": "string",
                      "nullable": true,
                      "description": "Identifier of the parent transaction (for example, the authorization behind a capture)."
                    },
                    "txDate": {
                      "type": "string",
                      "description": "Date and time of the transaction (ISO 8601)."
                    },
                    "referenceNumber": {
                      "type": "string",
                      "description": "Processor reference number for the transaction."
                    },
                    "referenceId": {
                      "type": "string",
                      "nullable": true,
                      "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
                    },
                    "taxAmount": {
                      "type": "number",
                      "nullable": true,
                      "description": "Sales tax portion of the amount."
                    },
                    "description": {
                      "type": "string",
                      "description": "Free-text description."
                    },
                    "billing": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Full name of the payer."
                        },
                        "address": {
                          "type": "string",
                          "description": "Street address, including number."
                        },
                        "city": {
                          "type": "string",
                          "description": "City name."
                        },
                        "zipCode": {
                          "type": "string",
                          "description": "ZIP or postal code."
                        },
                        "state": {
                          "type": "string",
                          "description": "Two-letter US state code."
                        },
                        "country": {
                          "type": "string",
                          "description": "Two-letter ISO 3166-1 country code."
                        }
                      },
                      "description": "Billing contact and address details for the payer."
                    },
                    "shipping": {
                      "type": "object",
                      "description": "Shipping contact and address details for the order."
                    },
                    "paymentMethod": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "The type."
                        },
                        "eCheck": {
                          "type": "object",
                          "properties": {
                            "accountType": {
                              "type": "string",
                              "nullable": true,
                              "description": "Bank account type, such as `checking`."
                            },
                            "routingNumber": {
                              "type": "string",
                              "nullable": true,
                              "description": "9-digit ABA routing number."
                            },
                            "accountNumberLast4": {
                              "type": "string",
                              "nullable": true,
                              "description": "Last 4 digits of the bank account number."
                            },
                            "checkNumber": {
                              "type": "string",
                              "nullable": true,
                              "description": "Check number to record with this debit."
                            },
                            "checkType": {
                              "type": "string",
                              "nullable": true,
                              "description": "Type of check used for the debit."
                            }
                          },
                          "description": "eCheck (ACH) acceptance settings."
                        },
                        "cc": {
                          "type": "object",
                          "properties": {
                            "card": {
                              "type": "object",
                              "properties": {
                                "last4Digits": {
                                  "type": "string",
                                  "description": "Last 4 digits of the card number."
                                },
                                "expirationMonth": {
                                  "type": "string",
                                  "description": "Two-digit expiration month (01-12)."
                                },
                                "expirationYear": {
                                  "type": "string",
                                  "description": "Two-digit expiration year."
                                },
                                "logo": {
                                  "type": "string",
                                  "description": "Card brand logo identifier."
                                }
                              },
                              "description": "Card details."
                            },
                            "token": {
                              "type": "string",
                              "description": "The token value."
                            }
                          },
                          "description": "Card payment method details."
                        }
                      },
                      "description": "Details of the payment method used."
                    },
                    "ticketNumber": {
                      "type": "string",
                      "nullable": true,
                      "description": "Ticket or order number associated with the transaction."
                    },
                    "balanceAmount": {
                      "type": "number",
                      "description": "Remaining balance on the transaction after captures, refunds, and voids."
                    }
                  },
                  "description": "The response payload."
                },
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                }
              }
            }
          }
        }
      },
      "ccRollback": {
        "description": "Successful rollback",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                }
              }
            }
          }
        }
      },
      "ccVoid": {
        "description": "Successful void",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "Current status."
                    },
                    "transactionId": {
                      "type": "string",
                      "description": "Identifier of the transaction to void."
                    },
                    "operation": {
                      "type": "string",
                      "description": "Transaction operation type (for example, sale, authorization, refund)."
                    },
                    "subMerchantId": {
                      "type": "string",
                      "description": "Unique identifier of the submerchant."
                    },
                    "amount": {
                      "type": "number",
                      "description": "The amount of the transaction."
                    },
                    "customerId": {
                      "type": "string",
                      "nullable": true,
                      "description": "Unique identifier of the customer."
                    },
                    "parentId": {
                      "type": "string",
                      "nullable": true,
                      "description": "Identifier of the parent transaction (for example, the authorization behind a capture)."
                    },
                    "txDate": {
                      "type": "string",
                      "description": "Date and time of the transaction (ISO 8601)."
                    },
                    "referenceNumber": {
                      "type": "string",
                      "description": "Processor reference number for the transaction."
                    },
                    "referenceId": {
                      "type": "string",
                      "nullable": true,
                      "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
                    },
                    "taxAmount": {
                      "type": "number",
                      "nullable": true,
                      "description": "Sales tax portion of the amount."
                    },
                    "description": {
                      "type": "string",
                      "description": "Free-text description."
                    },
                    "billing": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Full name of the payer."
                        },
                        "address": {
                          "type": "string",
                          "description": "Street address, including number."
                        },
                        "city": {
                          "type": "string",
                          "description": "City name."
                        },
                        "zipCode": {
                          "type": "string",
                          "description": "ZIP or postal code."
                        },
                        "state": {
                          "type": "string",
                          "description": "Two-letter US state code."
                        },
                        "country": {
                          "type": "string",
                          "description": "Two-letter ISO 3166-1 country code."
                        }
                      },
                      "description": "Billing contact and address details for the payer."
                    },
                    "shipping": {
                      "type": "object",
                      "description": "Shipping contact and address details for the order."
                    },
                    "paymentMethod": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "The type."
                        },
                        "eCheck": {
                          "type": "object",
                          "properties": {
                            "accountType": {
                              "type": "string",
                              "nullable": true,
                              "description": "Bank account type, such as `checking`."
                            },
                            "routingNumber": {
                              "type": "string",
                              "nullable": true,
                              "description": "9-digit ABA routing number."
                            },
                            "accountNumberLast4": {
                              "type": "string",
                              "nullable": true,
                              "description": "Last 4 digits of the bank account number."
                            },
                            "checkNumber": {
                              "type": "string",
                              "nullable": true,
                              "description": "Check number to record with this debit."
                            },
                            "checkType": {
                              "type": "string",
                              "nullable": true,
                              "description": "Type of check used for the debit."
                            }
                          },
                          "description": "eCheck (ACH) acceptance settings."
                        },
                        "cc": {
                          "type": "object",
                          "properties": {
                            "card": {
                              "type": "object",
                              "properties": {
                                "last4Digits": {
                                  "type": "string",
                                  "description": "Last 4 digits of the card number."
                                },
                                "expirationMonth": {
                                  "type": "string",
                                  "description": "Two-digit expiration month (01-12)."
                                },
                                "expirationYear": {
                                  "type": "string",
                                  "description": "Two-digit expiration year."
                                },
                                "logo": {
                                  "type": "string",
                                  "description": "Card brand logo identifier."
                                }
                              },
                              "description": "Card details."
                            },
                            "token": {
                              "type": "string",
                              "description": "The token value."
                            }
                          },
                          "description": "Card payment method details."
                        }
                      },
                      "description": "Details of the payment method used."
                    },
                    "ticketNumber": {
                      "type": "string",
                      "nullable": true,
                      "description": "Ticket or order number associated with the transaction."
                    },
                    "balanceAmount": {
                      "type": "number",
                      "description": "Remaining balance on the transaction after captures, refunds, and voids."
                    }
                  },
                  "description": "The response payload."
                },
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                }
              }
            }
          }
        }
      },
      "eCheckOperationResponse": {
        "description": "Successful eCheck operation",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "Current status."
                    },
                    "transactionId": {
                      "type": "string",
                      "description": "Unique identifier of the original transaction."
                    },
                    "operation": {
                      "type": "string",
                      "description": "Transaction operation type (for example, sale, authorization, refund)."
                    },
                    "subMerchantId": {
                      "type": "string",
                      "description": "Unique identifier of the submerchant."
                    },
                    "amount": {
                      "type": "number",
                      "description": "The amount of the transaction."
                    },
                    "balanceAmount": {
                      "type": "number",
                      "description": "Remaining balance on the transaction after captures, refunds, and voids."
                    },
                    "customerId": {
                      "type": "string",
                      "description": "Unique identifier of the customer."
                    },
                    "parentId": {
                      "type": "string",
                      "description": "Identifier of the parent transaction (for example, the authorization behind a capture)."
                    },
                    "referenceNumber": {
                      "type": "string",
                      "description": "Processor reference number for the transaction."
                    },
                    "referenceId": {
                      "type": "string",
                      "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
                    },
                    "taxAmount": {
                      "type": "number",
                      "description": "Sales tax portion of the amount."
                    },
                    "txDate": {
                      "type": "string",
                      "description": "Date and time of the transaction (ISO 8601)."
                    },
                    "description": {
                      "type": "string",
                      "description": "Free-text description."
                    },
                    "dynamicFee": {
                      "type": "object",
                      "properties": {
                        "discountRatePerc": {
                          "type": "number",
                          "description": "Percentage portion of the platform fee, calculated from the transaction amount."
                        },
                        "fixed": {
                          "type": "number",
                          "description": "Fixed monetary portion of the platform fee, in the transaction currency."
                        }
                      },
                      "description": "Defines the platform fee that the service provider charges the merchant for the transaction. The fee is calculated using `fixed` and `discountRatePerc` and deducted from the merchant's transaction proceeds when payouts are calculated. It does not increase or otherwise modify the transaction amount submitted for processing."
                    },
                    "paymentMethod": {
                      "type": "object",
                      "properties": {
                        "cc": {
                          "type": "object",
                          "properties": {
                            "card": {
                              "type": "object",
                              "description": "Card details."
                            }
                          },
                          "description": "Card payment method details."
                        },
                        "eCheck": {
                          "type": "object",
                          "properties": {
                            "accountType": {
                              "type": "string",
                              "description": "Bank account type, such as `checking`."
                            },
                            "routingNumber": {
                              "type": "string",
                              "description": "9-digit ABA routing number."
                            },
                            "accountNumberLast4": {
                              "type": "string",
                              "description": "Last 4 digits of the bank account number."
                            },
                            "checkNumber": {
                              "type": "string",
                              "description": "Check number to record with this debit."
                            },
                            "checkType": {
                              "type": "string",
                              "description": "Type of check used for the debit."
                            },
                            "bankAccToken": {
                              "type": "string",
                              "description": "Token of the bank account."
                            }
                          },
                          "description": "eCheck (ACH) acceptance settings."
                        }
                      },
                      "description": "Details of the payment method used."
                    },
                    "billing": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Full name of the payer."
                        },
                        "email": {
                          "type": "string",
                          "description": "Email address of the payer."
                        },
                        "address": {
                          "type": "string",
                          "description": "Street address, including number."
                        },
                        "city": {
                          "type": "string",
                          "description": "City name."
                        },
                        "zipCode": {
                          "type": "string",
                          "description": "ZIP or postal code."
                        },
                        "state": {
                          "type": "string",
                          "description": "Two-letter US state code."
                        },
                        "country": {
                          "type": "string",
                          "description": "Two-letter ISO 3166-1 country code."
                        },
                        "phone": {
                          "type": "string",
                          "description": "Phone number of the payer."
                        }
                      },
                      "description": "Billing contact and address details for the payer."
                    },
                    "approvalNumber": {
                      "type": "string",
                      "description": "Approval code returned by the issuing bank."
                    },
                    "shipping": {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "description": "Street address, including number."
                        },
                        "city": {
                          "type": "string",
                          "description": "City name."
                        },
                        "zipCode": {
                          "type": "string",
                          "description": "ZIP or postal code."
                        },
                        "state": {
                          "type": "string",
                          "description": "Two-letter US state code."
                        },
                        "country": {
                          "type": "string",
                          "description": "Two-letter ISO 3166-1 country code."
                        },
                        "email": {
                          "type": "string",
                          "description": "Email address of the recipient."
                        },
                        "name": {
                          "type": "string",
                          "description": "Name of the recipient."
                        },
                        "phone": {
                          "type": "string",
                          "description": "Phone number of the recipient."
                        }
                      },
                      "description": "Shipping contact and address details for the order."
                    },
                    "paymentToken": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "Type of token supplied."
                        },
                        "token": {
                          "type": "object",
                          "properties": {
                            "provider": {
                              "type": "string",
                              "description": "Payment provider that issued the token (for example, `jupico`)."
                            },
                            "token": {
                              "type": "string",
                              "description": "The token value."
                            },
                            "accountType": {
                              "type": "string",
                              "description": "Bank account type, such as `checking`."
                            },
                            "routingLast4Digits": {
                              "type": "string",
                              "description": "Last 4 digits of the routing number."
                            },
                            "accountLast4Digits": {
                              "type": "string",
                              "description": "Last 4 digits of the bank account number."
                            },
                            "accountHolderName": {
                              "type": "string",
                              "description": "Name on the bank account."
                            }
                          },
                          "description": "Token payload returned by tokenization."
                        }
                      },
                      "description": "The payment credential to charge: a one-time token from the web component or a stored Jupico token."
                    }
                  },
                  "description": "The response payload."
                },
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                }
              }
            }
          }
        }
      },
      "eCheckTokenize": {
        "description": "Bank account tokenized.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": true,
                  "description": "Whether the request was processed successfully."
                },
                "code": {
                  "type": "string",
                  "example": "0",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "message": {
                  "type": "string",
                  "example": "Tokenization success",
                  "description": "Human-readable result message."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "paymentToken": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "echeck",
                          "description": "Payment method type. Always `echeck` for bank accounts."
                        },
                        "token": {
                          "type": "object",
                          "properties": {
                            "provider": {
                              "type": "string",
                              "example": "jupico",
                              "description": "Token provider. Always `jupico`."
                            },
                            "token": {
                              "type": "string",
                              "format": "uuid",
                              "example": "8b728fb4-976c-43c1-8402-04c23ac18861",
                              "description": "Permanent bank account token. Send it in `paymentToken.token.token` on eCheck sales."
                            },
                            "accountType": {
                              "type": "string",
                              "example": "checking",
                              "description": "Bank account type: `checking` or `savings`."
                            },
                            "routingLast4Digits": {
                              "type": "string",
                              "example": "7238",
                              "description": "Last 4 digits of the routing number."
                            },
                            "accountLast4Digits": {
                              "type": "string",
                              "example": "2311",
                              "description": "Last 4 digits of the bank account number."
                            },
                            "accountHolderName": {
                              "type": "string",
                              "example": "John Doe",
                              "description": "Name on the bank account, as stored when the token was first created."
                            },
                            "alias": {
                              "type": "string",
                              "description": "Friendly name stored with the token. Present only if the token was created with an `alias` through the deprecated endpoint."
                            }
                          },
                          "description": "The bank account token and its non-sensitive details."
                        }
                      },
                      "description": "Permanent payment token to use in place of the raw bank account details."
                    }
                  },
                  "description": "The response payload."
                }
              }
            },
            "example": {
              "success": true,
              "code": "0",
              "message": "Tokenization success",
              "data": {
                "paymentToken": {
                  "type": "echeck",
                  "token": {
                    "provider": "jupico",
                    "token": "8b728fb4-976c-43c1-8402-04c23ac18861",
                    "accountType": "savings",
                    "routingLast4Digits": "7238",
                    "accountLast4Digits": "2311",
                    "accountHolderName": "John Doe",
                    "alias": "Main savings"
                  }
                }
              }
            }
          }
        }
      },
      "ccRawTokenize": {
        "description": "Successful credit card tokenization",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "paymentToken": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "creditcard",
                          "description": "Type of token supplied."
                        },
                        "token": {
                          "type": "object",
                          "properties": {
                            "provider": {
                              "type": "string",
                              "description": "Payment provider that issued the token (for example, `jupico`)."
                            },
                            "token": {
                              "type": "string",
                              "description": "The token value."
                            },
                            "cardType": {
                              "type": "string",
                              "description": "Card brand (e.g., visa, mastercard)"
                            },
                            "last4Digits": {
                              "type": "string",
                              "description": "Last 4 digits of the card number"
                            },
                            "expirationMonth": {
                              "type": "string",
                              "description": "Two-digit expiration month (01-12)."
                            },
                            "expirationYear": {
                              "type": "string",
                              "description": "Two-digit expiration year."
                            },
                            "cardHolderName": {
                              "type": "string",
                              "description": "Name of the cardholder."
                            }
                          },
                          "description": "Token payload returned by tokenization."
                        }
                      },
                      "description": "The payment credential to charge: a one-time token from the web component or a stored Jupico token."
                    }
                  },
                  "description": "The response payload."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                }
              }
            }
          }
        }
      },
      "transactionQuery": {
        "description": "Successful eCheckSale",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "review": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean",
                            "description": "Whether this setting is enabled."
                          },
                          "logs": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Event log entries."
                          }
                        },
                        "description": "Risk review details for the transaction."
                      },
                      "billing": {
                        "type": "object",
                        "properties": {
                          "address": {
                            "type": "string",
                            "description": "Street address, including number."
                          },
                          "city": {
                            "type": "string",
                            "description": "City name."
                          },
                          "zipCode": {
                            "type": "string",
                            "description": "ZIP or postal code."
                          },
                          "state": {
                            "type": "string",
                            "description": "Two-letter US state code."
                          },
                          "country": {
                            "type": "string",
                            "description": "Two-letter ISO 3166-1 country code."
                          },
                          "email": {
                            "type": "string",
                            "description": "Email address of the payer."
                          },
                          "name": {
                            "type": "string",
                            "description": "Full name of the payer."
                          },
                          "phone": {
                            "type": "string",
                            "description": "Phone number of the payer."
                          }
                        },
                        "description": "Billing contact and address details for the payer."
                      },
                      "shipping": {
                        "type": "object",
                        "properties": {
                          "address": {
                            "type": "string",
                            "description": "Street address, including number."
                          },
                          "city": {
                            "type": "string",
                            "description": "City name."
                          },
                          "zipCode": {
                            "type": "string",
                            "description": "ZIP or postal code."
                          },
                          "state": {
                            "type": "string",
                            "description": "Two-letter US state code."
                          },
                          "country": {
                            "type": "string",
                            "description": "Two-letter ISO 3166-1 country code."
                          },
                          "email": {
                            "type": "string",
                            "description": "Email address of the recipient."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the recipient."
                          },
                          "phone": {
                            "type": "string",
                            "description": "Phone number of the recipient."
                          }
                        },
                        "description": "Shipping contact and address details for the order."
                      },
                      "processing": {
                        "type": "object",
                        "properties": {
                          "fees": {
                            "type": "object",
                            "properties": {
                              "applied": {
                                "type": "boolean",
                                "description": "Whether the fee was applied."
                              }
                            },
                            "description": "Fee configuration. Overrides values from the fees template."
                          },
                          "chargebacks": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Chargebacks linked to this transaction."
                          },
                          "logs": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "status": {
                                  "type": "string",
                                  "description": "Current status."
                                },
                                "createdAt": {
                                  "type": "string",
                                  "description": "Timestamp when the object was created (ISO 8601)."
                                }
                              }
                            },
                            "description": "Event log entries."
                          },
                          "status": {
                            "type": "string",
                            "description": "Current status."
                          },
                          "updatedAt": {
                            "type": "string",
                            "description": "Timestamp when the object was last updated (ISO 8601)."
                          }
                        },
                        "description": "Processing details, including fees and batch information."
                      },
                      "paymentMethod": {
                        "type": "object",
                        "properties": {
                          "cc": {
                            "type": "object",
                            "properties": {
                              "card": {
                                "type": "object",
                                "properties": {
                                  "last4Digits": {
                                    "type": "string",
                                    "description": "Last 4 digits of the card number."
                                  },
                                  "expirationYear": {
                                    "type": "string",
                                    "description": "Two-digit expiration year."
                                  },
                                  "expirationMonth": {
                                    "type": "string",
                                    "description": "Two-digit expiration month (01-12)."
                                  },
                                  "logo": {
                                    "type": "string",
                                    "description": "Card brand logo identifier."
                                  }
                                },
                                "description": "Card details."
                              }
                            },
                            "description": "Card payment method details."
                          },
                          "eCheck": {
                            "type": "object",
                            "properties": {
                              "accountType": {
                                "type": "string",
                                "description": "Bank account type, such as `checking`."
                              },
                              "routingNumber": {
                                "type": "string",
                                "description": "9-digit ABA routing number."
                              },
                              "accountNumberLast4": {
                                "type": "string",
                                "description": "Last 4 digits of the bank account number."
                              },
                              "checkNumber": {
                                "type": "string",
                                "description": "Check number to record with this debit."
                              },
                              "checkType": {
                                "type": "string",
                                "description": "Type of check used for the debit."
                              },
                              "bankAccToken": {
                                "type": "string",
                                "description": "Token of the bank account."
                              }
                            },
                            "description": "eCheck (ACH) acceptance settings."
                          }
                        },
                        "description": "Details of the payment method used."
                      },
                      "amount": {
                        "type": "number",
                        "description": "The amount of the transaction."
                      },
                      "balanceAmount": {
                        "type": "number",
                        "description": "Remaining balance on the transaction after captures, refunds, and voids."
                      },
                      "voided": {
                        "type": "boolean",
                        "description": "Whether the transaction has been voided."
                      },
                      "taxAmount": {
                        "type": "number",
                        "description": "Sales tax portion of the amount."
                      },
                      "status": {
                        "type": "string",
                        "description": "Current status."
                      },
                      "transactionId": {
                        "type": "string",
                        "description": "Unique identifier of the original transaction."
                      },
                      "operation": {
                        "type": "string",
                        "description": "Transaction operation type (for example, sale, authorization, refund)."
                      },
                      "subMerchantId": {
                        "type": "string",
                        "description": "Unique identifier of the submerchant."
                      },
                      "customerId": {
                        "type": "string",
                        "description": "Unique identifier of the customer."
                      },
                      "parentId": {
                        "type": "string",
                        "description": "Identifier of the parent transaction (for example, the authorization behind a capture)."
                      },
                      "referenceNumber": {
                        "type": "string",
                        "description": "Processor reference number for the transaction."
                      },
                      "txDate": {
                        "type": "string",
                        "description": "Date and time of the transaction (ISO 8601)."
                      },
                      "description": {
                        "type": "string",
                        "description": "Free-text description."
                      },
                      "approvalNumber": {
                        "type": "number",
                        "description": "Approval code returned by the issuing bank."
                      },
                      "createdAt": {
                        "type": "string",
                        "description": "Timestamp when the object was created (ISO 8601)."
                      },
                      "feeId": {
                        "type": "string",
                        "description": "Identifier of the fee record for this transaction."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "count": {
                  "type": "number",
                  "description": "Number of records."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "criteria": {
                      "type": "object",
                      "properties": {
                        "transactionId": {
                          "type": "number",
                          "description": "Unique identifier of the original transaction."
                        }
                      },
                      "description": "Filter criteria applied, keyed by field path."
                    },
                    "options": {
                      "type": "object",
                      "description": "Query options: pagination, sorting, and field projection."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "transactionPath": {
        "description": "Successful Timeline",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "balance": {
                      "type": "number",
                      "description": "Current balance."
                    },
                    "transactions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "review": {
                            "type": "object",
                            "description": "Risk review details for the transaction."
                          },
                          "billing": {
                            "type": "object",
                            "description": "Billing contact and address details for the payer."
                          },
                          "shipping": {
                            "type": "object",
                            "description": "Shipping contact and address details for the order."
                          },
                          "processing": {
                            "type": "object",
                            "description": "Processing details, including fees and batch information."
                          },
                          "paymentMethod": {
                            "type": "object",
                            "description": "Details of the payment method used."
                          },
                          "amount": {
                            "type": "number",
                            "description": "The amount of the transaction."
                          },
                          "balanceAmount": {
                            "type": "number",
                            "description": "Remaining balance on the transaction after captures, refunds, and voids."
                          },
                          "voided": {
                            "type": "boolean",
                            "description": "Whether the transaction has been voided."
                          },
                          "taxAmount": {
                            "type": "number",
                            "description": "Sales tax portion of the amount."
                          },
                          "status": {
                            "type": "string",
                            "description": "Current status."
                          },
                          "transactionId": {
                            "type": "string",
                            "description": "Unique identifier of the original transaction."
                          },
                          "operation": {
                            "type": "string",
                            "description": "Transaction operation type (for example, sale, authorization, refund)."
                          },
                          "subMerchantId": {
                            "type": "string",
                            "description": "Unique identifier of the submerchant."
                          },
                          "customerId": {
                            "type": "string",
                            "description": "Unique identifier of the customer."
                          },
                          "parentId": {
                            "type": "string",
                            "description": "Identifier of the parent transaction (for example, the authorization behind a capture)."
                          },
                          "referenceNumber": {
                            "type": "string",
                            "description": "Processor reference number for the transaction."
                          },
                          "referenceId": {
                            "type": "string",
                            "description": "Your own reference for this transaction. Returned in responses and query results for reconciliation."
                          },
                          "txDate": {
                            "type": "string",
                            "description": "Date and time of the transaction (ISO 8601)."
                          },
                          "description": {
                            "type": "string",
                            "description": "Free-text description."
                          },
                          "approvalNumber": {
                            "type": "string",
                            "description": "Approval code returned by the issuing bank."
                          },
                          "dynamicFee": {
                            "type": "object",
                            "description": "Defines the platform fee that the service provider charges the merchant for the transaction. The fee is calculated using `fixed` and `discountRatePerc` and deducted from the merchant's transaction proceeds when payouts are calculated. It does not increase or otherwise modify the transaction amount submitted for processing."
                          },
                          "createdAt": {
                            "type": "string",
                            "description": "Timestamp when the object was created (ISO 8601)."
                          },
                          "feeId": {
                            "type": "string",
                            "description": "Identifier of the fee record for this transaction."
                          },
                          "children": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Follow-on transactions (captures, refunds, voids) linked to this one."
                          }
                        }
                      },
                      "description": "Transactions in the timeline."
                    }
                  },
                  "description": "The response payload."
                }
              }
            }
          }
        }
      },
      "createCustomer": {
        "description": "Successful eCheckSale",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "billingAddress": {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "description": "Address details."
                        },
                        "city": {
                          "type": "string",
                          "description": "City name."
                        },
                        "state": {
                          "type": "string",
                          "description": "Two-letter US state code."
                        },
                        "zipCode": {
                          "type": "string",
                          "description": "ZIP or postal code."
                        }
                      },
                      "description": "Billing address of the customer."
                    },
                    "email": {
                      "type": "string",
                      "description": "Email address."
                    },
                    "phone": {
                      "type": "string",
                      "description": "Phone number."
                    },
                    "isDeleted": {
                      "type": "boolean",
                      "description": "Whether the record is soft-deleted."
                    },
                    "_id": {
                      "type": "string",
                      "description": "Internal document identifier."
                    },
                    "subMerchantId": {
                      "type": "string",
                      "description": "Unique identifier of the submerchant."
                    },
                    "name": {
                      "type": "string",
                      "description": "Display name."
                    },
                    "creditCards": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "truncatedCardNumber": {
                            "type": "string",
                            "description": "Masked card number."
                          },
                          "cardHolderName": {
                            "type": "string",
                            "description": "Name of the cardholder."
                          },
                          "expirationDate": {
                            "type": "string",
                            "description": "Card expiration date."
                          },
                          "token": {
                            "type": "string",
                            "description": "The token value."
                          },
                          "tokenID": {
                            "type": "string",
                            "description": "Stored token identifier."
                          },
                          "cardLogo": {
                            "type": "string",
                            "description": "Card brand logo identifier."
                          },
                          "tokenProvider": {
                            "type": "string",
                            "description": "Provider of the stored token."
                          },
                          "tokenNewlyGenerated": {
                            "type": "string",
                            "description": "Whether the token was newly generated on this request."
                          },
                          "servicesId": {
                            "type": "string",
                            "description": "Identifier of the token at the tokenization service."
                          },
                          "status": {
                            "type": "string",
                            "description": "Current status."
                          },
                          "isDefault": {
                            "type": "boolean",
                            "description": "Whether this is the customer's default payment method."
                          },
                          "isDeleted": {
                            "type": "boolean",
                            "description": "Whether the record is soft-deleted."
                          },
                          "createdAt": {
                            "type": "string",
                            "description": "Timestamp when the object was created (ISO 8601)."
                          }
                        }
                      },
                      "description": "Cards stored for the customer."
                    },
                    "bankAccounts": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "Bank accounts stored for the customer."
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "Timestamp when the object was created (ISO 8601)."
                    },
                    "__v": {
                      "type": "number",
                      "description": "Internal document version. Ignore."
                    }
                  },
                  "description": "The response payload."
                }
              }
            }
          }
        }
      },
      "updateCustomer": {
        "description": "Successful eCheckSale",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "billingAddress": {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "description": "Address details."
                        },
                        "city": {
                          "type": "string",
                          "description": "City name."
                        },
                        "state": {
                          "type": "string",
                          "description": "Two-letter US state code."
                        },
                        "zipCode": {
                          "type": "string",
                          "description": "ZIP or postal code."
                        }
                      },
                      "description": "Billing address of the customer."
                    },
                    "email": {
                      "type": "string",
                      "description": "Email address."
                    },
                    "phone": {
                      "type": "string",
                      "description": "Phone number."
                    },
                    "isDeleted": {
                      "type": "boolean",
                      "description": "Whether the record is soft-deleted."
                    },
                    "_id": {
                      "type": "string",
                      "description": "Internal document identifier."
                    },
                    "subMerchantId": {
                      "type": "string",
                      "description": "Unique identifier of the submerchant."
                    },
                    "name": {
                      "type": "string",
                      "description": "Display name."
                    },
                    "creditCards": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "truncatedCardNumber": {
                            "type": "string",
                            "description": "Masked card number."
                          },
                          "cardHolderName": {
                            "type": "string",
                            "description": "Name of the cardholder."
                          },
                          "expirationDate": {
                            "type": "string",
                            "description": "Card expiration date."
                          },
                          "token": {
                            "type": "string",
                            "description": "The token value."
                          },
                          "tokenID": {
                            "type": "string",
                            "description": "Stored token identifier."
                          },
                          "cardLogo": {
                            "type": "string",
                            "description": "Card brand logo identifier."
                          },
                          "tokenProvider": {
                            "type": "string",
                            "description": "Provider of the stored token."
                          },
                          "tokenNewlyGenerated": {
                            "type": "string",
                            "description": "Whether the token was newly generated on this request."
                          },
                          "servicesId": {
                            "type": "string",
                            "description": "Identifier of the token at the tokenization service."
                          },
                          "status": {
                            "type": "string",
                            "description": "Current status."
                          },
                          "isDefault": {
                            "type": "boolean",
                            "description": "Whether this is the customer's default payment method."
                          },
                          "isDeleted": {
                            "type": "boolean",
                            "description": "Whether the record is soft-deleted."
                          },
                          "createdAt": {
                            "type": "string",
                            "description": "Timestamp when the object was created (ISO 8601)."
                          }
                        }
                      },
                      "description": "Cards stored for the customer."
                    },
                    "bankAccounts": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "Bank accounts stored for the customer."
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "Timestamp when the object was created (ISO 8601)."
                    },
                    "__v": {
                      "type": "number",
                      "description": "Internal document version. Ignore."
                    }
                  },
                  "description": "The response payload."
                }
              }
            }
          }
        }
      },
      "findOneCustomer": {
        "description": "Successful eCheckSale",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "billingAddress": {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "description": "Address details."
                        },
                        "city": {
                          "type": "string",
                          "description": "City name."
                        },
                        "state": {
                          "type": "string",
                          "description": "Two-letter US state code."
                        },
                        "zipCode": {
                          "type": "string",
                          "description": "ZIP or postal code."
                        }
                      },
                      "description": "Billing address of the customer."
                    },
                    "email": {
                      "type": "string",
                      "description": "Email address."
                    },
                    "phone": {
                      "type": "string",
                      "description": "Phone number."
                    },
                    "isDeleted": {
                      "type": "boolean",
                      "description": "Whether the record is soft-deleted."
                    },
                    "_id": {
                      "type": "string",
                      "description": "Internal document identifier."
                    },
                    "subMerchantId": {
                      "type": "string",
                      "description": "Unique identifier of the submerchant."
                    },
                    "name": {
                      "type": "string",
                      "description": "Display name."
                    },
                    "creditCards": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "truncatedCardNumber": {
                            "type": "string",
                            "description": "Masked card number."
                          },
                          "cardHolderName": {
                            "type": "string",
                            "description": "Name of the cardholder."
                          },
                          "expirationDate": {
                            "type": "string",
                            "description": "Card expiration date."
                          },
                          "token": {
                            "type": "string",
                            "description": "The token value."
                          },
                          "tokenID": {
                            "type": "string",
                            "description": "Stored token identifier."
                          },
                          "cardLogo": {
                            "type": "string",
                            "description": "Card brand logo identifier."
                          },
                          "tokenProvider": {
                            "type": "string",
                            "description": "Provider of the stored token."
                          },
                          "tokenNewlyGenerated": {
                            "type": "string",
                            "description": "Whether the token was newly generated on this request."
                          },
                          "servicesId": {
                            "type": "string",
                            "description": "Identifier of the token at the tokenization service."
                          },
                          "status": {
                            "type": "string",
                            "description": "Current status."
                          },
                          "isDefault": {
                            "type": "boolean",
                            "description": "Whether this is the customer's default payment method."
                          },
                          "isDeleted": {
                            "type": "boolean",
                            "description": "Whether the record is soft-deleted."
                          },
                          "createdAt": {
                            "type": "string",
                            "description": "Timestamp when the object was created (ISO 8601)."
                          }
                        }
                      },
                      "description": "Cards stored for the customer."
                    },
                    "bankAccounts": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "Bank accounts stored for the customer."
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "Timestamp when the object was created (ISO 8601)."
                    },
                    "__v": {
                      "type": "number",
                      "description": "Internal document version. Ignore."
                    }
                  },
                  "description": "The response payload."
                }
              }
            }
          }
        }
      },
      "findAllCustomers": {
        "description": "Successful eCheckSale",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "billingAddress": {
                        "type": "object",
                        "properties": {
                          "address": {
                            "type": "string",
                            "description": "Address details."
                          },
                          "city": {
                            "type": "string",
                            "description": "City name."
                          },
                          "state": {
                            "type": "string",
                            "description": "Two-letter US state code."
                          },
                          "zipCode": {
                            "type": "string",
                            "description": "ZIP or postal code."
                          }
                        },
                        "description": "Billing address of the customer."
                      },
                      "email": {
                        "type": "string",
                        "description": "Email address."
                      },
                      "phone": {
                        "type": "string",
                        "description": "Phone number."
                      },
                      "isDeleted": {
                        "type": "boolean",
                        "description": "Whether the record is soft-deleted."
                      },
                      "_id": {
                        "type": "string",
                        "description": "Internal document identifier."
                      },
                      "subMerchantId": {
                        "type": "string",
                        "description": "Unique identifier of the submerchant."
                      },
                      "name": {
                        "type": "string",
                        "description": "Display name."
                      },
                      "creditCards": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "truncatedCardNumber": {
                              "type": "string",
                              "description": "Masked card number."
                            },
                            "cardHolderName": {
                              "type": "string",
                              "description": "Name of the cardholder."
                            },
                            "expirationDate": {
                              "type": "string",
                              "description": "Card expiration date."
                            },
                            "token": {
                              "type": "string",
                              "description": "The token value."
                            },
                            "tokenID": {
                              "type": "string",
                              "description": "Stored token identifier."
                            },
                            "cardLogo": {
                              "type": "string",
                              "description": "Card brand logo identifier."
                            },
                            "tokenProvider": {
                              "type": "string",
                              "description": "Provider of the stored token."
                            },
                            "tokenNewlyGenerated": {
                              "type": "string",
                              "description": "Whether the token was newly generated on this request."
                            },
                            "servicesId": {
                              "type": "string",
                              "description": "Identifier of the token at the tokenization service."
                            },
                            "status": {
                              "type": "string",
                              "description": "Current status."
                            },
                            "isDefault": {
                              "type": "boolean",
                              "description": "Whether this is the customer's default payment method."
                            },
                            "isDeleted": {
                              "type": "boolean",
                              "description": "Whether the record is soft-deleted."
                            },
                            "createdAt": {
                              "type": "string",
                              "description": "Timestamp when the object was created (ISO 8601)."
                            }
                          }
                        },
                        "description": "Cards stored for the customer."
                      },
                      "bankAccounts": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "Bank accounts stored for the customer."
                      },
                      "createdAt": {
                        "type": "string",
                        "description": "Timestamp when the object was created (ISO 8601)."
                      },
                      "__v": {
                        "type": "number",
                        "description": "Internal document version. Ignore."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "count": {
                  "type": "number",
                  "description": "Number of records."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "criteria": {
                      "type": "object",
                      "properties": {
                        "isDeleted": {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "items": {
                                "type": "boolean"
                              },
                              "description": "Matches any value in the list."
                            }
                          },
                          "description": "Whether the record is soft-deleted."
                        }
                      },
                      "description": "Filter criteria applied, keyed by field path."
                    },
                    "options": {
                      "type": "object",
                      "description": "Query options: pagination, sorting, and field projection."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findAllMerchants": {
        "description": "Successful eCheckSale",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "billingAddress": {
                        "type": "object",
                        "properties": {
                          "address": {
                            "type": "string",
                            "description": "Address details."
                          },
                          "city": {
                            "type": "string",
                            "description": "City name."
                          },
                          "state": {
                            "type": "string",
                            "description": "Two-letter US state code."
                          },
                          "zipCode": {
                            "type": "string",
                            "description": "ZIP or postal code."
                          }
                        },
                        "description": "Billing address of the customer."
                      },
                      "email": {
                        "type": "string",
                        "description": "Email address."
                      },
                      "phone": {
                        "type": "string",
                        "description": "Phone number."
                      },
                      "isDeleted": {
                        "type": "boolean",
                        "description": "Whether the record is soft-deleted."
                      },
                      "_id": {
                        "type": "string",
                        "description": "Internal document identifier."
                      },
                      "subMerchantId": {
                        "type": "string",
                        "description": "Unique identifier of the submerchant."
                      },
                      "name": {
                        "type": "string",
                        "description": "Display name."
                      },
                      "creditCards": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "truncatedCardNumber": {
                              "type": "string",
                              "description": "Masked card number."
                            },
                            "cardHolderName": {
                              "type": "string",
                              "description": "Name of the cardholder."
                            },
                            "expirationDate": {
                              "type": "string",
                              "description": "Card expiration date."
                            },
                            "token": {
                              "type": "string",
                              "description": "The token value."
                            },
                            "tokenID": {
                              "type": "string",
                              "description": "Stored token identifier."
                            },
                            "cardLogo": {
                              "type": "string",
                              "description": "Card brand logo identifier."
                            },
                            "tokenProvider": {
                              "type": "string",
                              "description": "Provider of the stored token."
                            },
                            "tokenNewlyGenerated": {
                              "type": "string",
                              "description": "Whether the token was newly generated on this request."
                            },
                            "servicesId": {
                              "type": "string",
                              "description": "Identifier of the token at the tokenization service."
                            },
                            "status": {
                              "type": "string",
                              "description": "Current status."
                            },
                            "isDefault": {
                              "type": "boolean",
                              "description": "Whether this is the customer's default payment method."
                            },
                            "isDeleted": {
                              "type": "boolean",
                              "description": "Whether the record is soft-deleted."
                            },
                            "createdAt": {
                              "type": "string",
                              "description": "Timestamp when the object was created (ISO 8601)."
                            }
                          }
                        },
                        "description": "Cards stored for the customer."
                      },
                      "bankAccounts": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "Bank accounts stored for the customer."
                      },
                      "createdAt": {
                        "type": "string",
                        "description": "Timestamp when the object was created (ISO 8601)."
                      },
                      "__v": {
                        "type": "number",
                        "description": "Internal document version. Ignore."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "count": {
                  "type": "number",
                  "description": "Number of records."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "criteria": {
                      "type": "object",
                      "properties": {
                        "isDeleted": {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "items": {
                                "type": "boolean"
                              },
                              "description": "Matches any value in the list."
                            }
                          },
                          "description": "Whether the record is soft-deleted."
                        }
                      },
                      "description": "Filter criteria applied, keyed by field path."
                    },
                    "options": {
                      "type": "object",
                      "properties": {
                        "fields": {
                          "type": "object",
                          "properties": {
                            "_id": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "createdAt": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "updatedAt": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "name": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "email": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "mobileNumber": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "account": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "spProductId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "subMerchantId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "identity": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "status": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "processor.wpId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "accountNumber": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "identity.business.websiteUrl": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "identity.business.legalName": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "identity.business.dbaName": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "identity.business.address": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            }
                          },
                          "description": "Field projection: keys map to 1 (include) or 0 (exclude)."
                        }
                      },
                      "description": "Query options: pagination, sorting, and field projection."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findAllMerchantsBankaccounts": {
        "description": "Successful eCheckSale",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": true,
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "example": "succeeded",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "example": "0",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "subMerchantId": {
                        "type": "string",
                        "example": 874767775,
                        "description": "Unique identifier of the submerchant."
                      },
                      "payoutBankAccounts": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "accountRouting": {
                              "type": "string",
                              "example": 1533,
                              "description": "9-digit ABA routing number."
                            },
                            "accountNumber": {
                              "type": "string",
                              "example": 6789,
                              "description": "Bank account number."
                            },
                            "accountType": {
                              "type": "string",
                              "example": "checking",
                              "description": "Bank account type, such as `checking`."
                            },
                            "nameOnAccount": {
                              "type": "string",
                              "example": "Justina",
                              "description": "Name on the bank account."
                            },
                            "status": {
                              "type": "string",
                              "example": "active",
                              "description": "Current status."
                            },
                            "isPreferred": {
                              "type": "boolean",
                              "example": true,
                              "description": "Whether this is the preferred account for payouts."
                            },
                            "isDeleted": {
                              "type": "boolean",
                              "example": false,
                              "description": "Whether the record is soft-deleted."
                            },
                            "bankAccountToken": {
                              "type": "string",
                              "example": "20a0cbb78f1afcc13eec5d0b7be72463:b53c8238398a7ff05436b4eaeae9def43810f23d4d0e5c9a0a867fbc0da762f3",
                              "description": "Token of the bank account that receives the payout."
                            }
                          }
                        },
                        "description": "Bank accounts where the merchant receives payouts."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "criteria": {
                      "type": "object",
                      "properties": {
                        "spProductId": {
                          "type": "string",
                          "example": 255,
                          "description": "Identifier of the Service Provider product the merchant belongs to."
                        }
                      },
                      "description": "Filter criteria applied, keyed by field path."
                    },
                    "options": {
                      "type": "object",
                      "properties": {
                        "limit": {
                          "type": "integer",
                          "example": 1000,
                          "description": "Maximum number of records returned."
                        },
                        "projection": {
                          "type": "object",
                          "properties": {
                            "_id": {
                              "type": "integer",
                              "example": 1,
                              "description": "Internal document identifier."
                            }
                          },
                          "description": "Field projection applied to results."
                        }
                      },
                      "description": "Query options: pagination, sorting, and field projection."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findAllTransactions": {
        "description": "findAllTransactions",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "review": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean",
                            "description": "Whether this setting is enabled."
                          },
                          "logs": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Event log entries."
                          }
                        },
                        "description": "Risk review details for the transaction."
                      },
                      "processing": {
                        "type": "object",
                        "properties": {
                          "fees": {
                            "type": "object",
                            "properties": {
                              "applied": {
                                "type": "boolean",
                                "description": "Whether the fee was applied."
                              }
                            },
                            "description": "Fee configuration. Overrides values from the fees template."
                          },
                          "chargebacks": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Chargebacks linked to this transaction."
                          },
                          "logs": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "status": {
                                  "type": "string",
                                  "description": "Current status."
                                },
                                "createdAt": {
                                  "type": "string",
                                  "description": "Timestamp when the object was created (ISO 8601)."
                                }
                              }
                            },
                            "description": "Event log entries."
                          },
                          "status": {
                            "type": "string",
                            "description": "Current status."
                          },
                          "updatedAt": {
                            "type": "string",
                            "description": "Timestamp when the object was last updated (ISO 8601)."
                          }
                        },
                        "description": "Processing details, including fees and batch information."
                      },
                      "paymentMethod": {
                        "type": "object",
                        "properties": {
                          "cc": {
                            "type": "object",
                            "properties": {
                              "card": {
                                "type": "object",
                                "properties": {
                                  "last4Digits": {
                                    "type": "string",
                                    "description": "Last 4 digits of the card number."
                                  },
                                  "expirationYear": {
                                    "type": "string",
                                    "description": "Two-digit expiration year."
                                  },
                                  "expirationMonth": {
                                    "type": "string",
                                    "description": "Two-digit expiration month (01-12)."
                                  },
                                  "logo": {
                                    "type": "string",
                                    "description": "Card brand logo identifier."
                                  }
                                },
                                "description": "Card details."
                              }
                            },
                            "description": "Card payment method details."
                          },
                          "eCheck": {
                            "type": "object",
                            "properties": {
                              "accountType": {
                                "type": "string",
                                "description": "Bank account type, such as `checking`."
                              },
                              "routingNumber": {
                                "type": "string",
                                "description": "9-digit ABA routing number."
                              },
                              "accountNumberLast4": {
                                "type": "string",
                                "description": "Last 4 digits of the bank account number."
                              },
                              "checkNumber": {
                                "type": "string",
                                "description": "Check number to record with this debit."
                              },
                              "checkType": {
                                "type": "string",
                                "description": "Type of check used for the debit."
                              }
                            },
                            "description": "eCheck (ACH) acceptance settings."
                          },
                          "type": {
                            "type": "string",
                            "description": "The type."
                          }
                        },
                        "description": "Details of the payment method used."
                      },
                      "amount": {
                        "type": "number",
                        "description": "The amount of the transaction."
                      },
                      "balanceAmount": {
                        "type": "number",
                        "description": "Remaining balance on the transaction after captures, refunds, and voids."
                      },
                      "voided": {
                        "type": "boolean",
                        "description": "Whether the transaction has been voided."
                      },
                      "taxAmount": {
                        "type": "number",
                        "description": "Sales tax portion of the amount."
                      },
                      "status": {
                        "type": "string",
                        "description": "Current status."
                      },
                      "transactionId": {
                        "type": "string",
                        "description": "Unique identifier of the original transaction."
                      },
                      "operation": {
                        "type": "string",
                        "description": "Transaction operation type (for example, sale, authorization, refund)."
                      },
                      "subMerchantId": {
                        "type": "string",
                        "description": "Unique identifier of the submerchant."
                      },
                      "customerId": {
                        "type": "string",
                        "description": "Unique identifier of the customer."
                      },
                      "parentId": {
                        "type": "string",
                        "description": "Identifier of the parent transaction (for example, the authorization behind a capture)."
                      },
                      "referenceNumber": {
                        "type": "string",
                        "description": "Processor reference number for the transaction."
                      },
                      "txDate": {
                        "type": "string",
                        "description": "Date and time of the transaction (ISO 8601)."
                      },
                      "description": {
                        "type": "string",
                        "description": "Free-text description."
                      },
                      "approvalNumber": {
                        "type": "number",
                        "description": "Approval code returned by the issuing bank."
                      },
                      "createdAt": {
                        "type": "string",
                        "description": "Timestamp when the object was created (ISO 8601)."
                      },
                      "feeId": {
                        "type": "string",
                        "description": "Identifier of the fee record for this transaction."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "count": {
                  "type": "number",
                  "description": "Number of records."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "criteria": {
                      "type": "object",
                      "properties": {
                        "isDeleted": {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "items": {
                                "type": "boolean"
                              },
                              "description": "Matches any value in the list."
                            }
                          },
                          "description": "Whether the record is soft-deleted."
                        }
                      },
                      "description": "Filter criteria applied, keyed by field path."
                    },
                    "options": {
                      "type": "object",
                      "properties": {
                        "fields": {
                          "type": "object",
                          "properties": {
                            "_id": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "processing": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "amount": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "balanceAmount": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "voided": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "token": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "approvalNumber": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "paymentMethod": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "taxAmount": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "status": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "transactionId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "operation": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "subMerchantId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "customerId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "parentId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "dynamicFee": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "feeId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "referenceNumber": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "ticketNumber": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "txDate": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "description": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "billing": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "shipping": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "createdAt": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "review": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            }
                          },
                          "description": "Field projection: keys map to 1 (include) or 0 (exclude)."
                        }
                      },
                      "description": "Query options: pagination, sorting, and field projection."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findAllFees": {
        "description": "findAllTransactions",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "_id": {
                        "type": "string",
                        "description": "Internal document identifier."
                      },
                      "review": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean",
                            "description": "Whether this setting is enabled."
                          },
                          "logs": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Event log entries."
                          }
                        },
                        "description": "Risk review details for the transaction."
                      },
                      "platformFee": {
                        "type": "number",
                        "description": "Portion of the fee billed at the platform level."
                      },
                      "spProductFee": {
                        "type": "number",
                        "description": "Portion of the fee billed at the Service Provider product level."
                      },
                      "batchPayoutId": {
                        "type": "string",
                        "description": "Identifier of the payout batch this instruction was grouped into."
                      },
                      "status": {
                        "type": "string",
                        "description": "Current status."
                      },
                      "transaction": {
                        "type": "object",
                        "properties": {
                          "transactionId": {
                            "type": "string",
                            "description": "Unique identifier of the original transaction."
                          },
                          "dynamicFee": {
                            "type": "boolean",
                            "description": "Whether a `dynamicFee` was applied to this transaction when payouts were calculated."
                          },
                          "platformFixedFee": {
                            "type": "number",
                            "description": "Fixed fee applied at the platform level."
                          },
                          "platformDiscountRate": {
                            "type": "number",
                            "description": "Percentage rate applied at the platform level."
                          },
                          "platformReturnRate": {
                            "type": "number",
                            "description": "Return rate applied at the platform level."
                          },
                          "platformReverseFixed": {
                            "type": "number",
                            "description": "Reversed fixed fee at the platform level."
                          },
                          "platformReverseDiscountRate": {
                            "type": "number",
                            "description": "Reversed percentage fee at the platform level."
                          },
                          "platformParentFixedFee": {
                            "type": "number",
                            "description": "Fixed fee inherited from the parent transaction at the platform level."
                          },
                          "spProductParentFixedFee": {
                            "type": "number",
                            "description": "Fixed fee inherited from the parent transaction at the Service Provider product level."
                          },
                          "spProductFixedFee": {
                            "type": "number",
                            "description": "Fixed fee applied at the Service Provider product level."
                          },
                          "spProductDiscountRate": {
                            "type": "number",
                            "description": "Percentage rate applied at the Service Provider product level."
                          },
                          "spProductReturnRate": {
                            "type": "number",
                            "description": "Return rate applied at the Service Provider product level."
                          },
                          "spProductReverseFixed": {
                            "type": "number",
                            "description": "Reversed fixed fee at the Service Provider product level."
                          },
                          "spProductReverseDiscountRate": {
                            "type": "number",
                            "description": "Reversed percentage fee at the Service Provider product level."
                          },
                          "txAmount": {
                            "type": "number",
                            "description": "Amount of the underlying transaction."
                          },
                          "txBalanceAmount": {
                            "type": "number",
                            "description": "Remaining balance of the underlying transaction."
                          },
                          "referenceNumber": {
                            "type": "string",
                            "description": "Processor reference number for the transaction."
                          },
                          "txOperation": {
                            "type": "string",
                            "description": "Operation type of the underlying transaction."
                          }
                        },
                        "description": "Details of the underlying transaction."
                      },
                      "txDate": {
                        "type": "string",
                        "description": "Date and time of the transaction (ISO 8601)."
                      },
                      "fee": {
                        "type": "number",
                        "description": "Total fee amount."
                      },
                      "type": {
                        "type": "string",
                        "description": "The type."
                      },
                      "subMerchantId": {
                        "type": "string",
                        "description": "Unique identifier of the submerchant."
                      },
                      "spProductId": {
                        "type": "string",
                        "description": "Identifier of the Service Provider product the merchant belongs to."
                      },
                      "createdAt": {
                        "type": "string",
                        "description": "Timestamp when the object was created (ISO 8601)."
                      },
                      "updatedAt": {
                        "type": "string",
                        "description": "Timestamp when the object was last updated (ISO 8601)."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "count": {
                  "type": "number",
                  "description": "Number of records."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "criteria": {
                      "type": "object",
                      "properties": {
                        "isDeleted": {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "items": {
                                "type": "boolean"
                              },
                              "description": "Matches any value in the list."
                            }
                          },
                          "description": "Whether the record is soft-deleted."
                        }
                      },
                      "description": "Filter criteria applied, keyed by field path."
                    },
                    "options": {
                      "type": "object",
                      "properties": {
                        "fields": {
                          "type": "object",
                          "properties": {
                            "_id": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "transaction": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "schedule": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "chargeback": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "platformFee": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "spProductFee": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "batchPayoutId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "status": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "txDate": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "fee": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "type": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "subMerchantId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "spProductId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "createdAt": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "updatedAt": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "review": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            }
                          },
                          "description": "Field projection: keys map to 1 (include) or 0 (exclude)."
                        }
                      },
                      "description": "Query options: pagination, sorting, and field projection."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findAllPayoutInstructions": {
        "description": "findAllPayoutInstructions",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "_id": {
                        "type": "string",
                        "description": "Internal document identifier."
                      },
                      "review": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean",
                            "description": "Whether this setting is enabled."
                          },
                          "logs": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Event log entries."
                          }
                        },
                        "description": "Risk review details for the transaction."
                      },
                      "beneficiary": {
                        "type": "string",
                        "description": "Name of the payout beneficiary."
                      },
                      "status": {
                        "type": "string",
                        "description": "Current status of the payout instruction:\n\n- `pending` — created and awaiting approval. This is the only status in which a payout can be voided.\n- `ack` — approved for sending.\n- `processing` — being sent.\n- `on-hold` — held for review.\n- `sent` — sent to the bank. This is the final success status: it means Jupico handed the payout to the bank, not that the bank confirmed the funds reached the beneficiary's account. There is no separate \"arrived\" status; funds typically land within a few business days.\n- `voided` — cancelled before it was sent.",
                        "enum": [
                          "pending",
                          "ack",
                          "processing",
                          "on-hold",
                          "sent",
                          "voided"
                        ],
                        "example": "sent"
                      },
                      "feesIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Identifiers of fee records included."
                      },
                      "subMerchantId": {
                        "type": "string",
                        "description": "Unique identifier of the submerchant."
                      },
                      "spProductId": {
                        "type": "string",
                        "description": "Identifier of the Service Provider product the merchant belongs to."
                      },
                      "amount": {
                        "type": "number",
                        "description": "The amount of the transaction."
                      },
                      "createdAt": {
                        "type": "string",
                        "description": "Timestamp when the object was created (ISO 8601)."
                      },
                      "batchPayoutId": {
                        "type": "string",
                        "description": "Identifier of the payout batch this instruction was grouped into."
                      },
                      "type": {
                        "type": "string",
                        "description": "The type."
                      },
                      "accountNumber": {
                        "type": "string",
                        "description": "Bank account number."
                      },
                      "accountType": {
                        "type": "string",
                        "description": "Bank account type, such as `checking`."
                      },
                      "countScheduled": {
                        "type": "number",
                        "description": "Number of scheduled payouts included."
                      },
                      "countTransactions": {
                        "type": "number",
                        "description": "Number of transactions included."
                      },
                      "updatedAt": {
                        "type": "string",
                        "description": "Timestamp when the object was last updated (ISO 8601)."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "count": {
                  "type": "number",
                  "description": "Number of records."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "criteria": {
                      "type": "object",
                      "properties": {
                        "isDeleted": {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "items": {
                                "type": "boolean"
                              },
                              "description": "Matches any value in the list."
                            }
                          },
                          "description": "Whether the record is soft-deleted."
                        }
                      },
                      "description": "Filter criteria applied, keyed by field path."
                    },
                    "options": {
                      "type": "object",
                      "properties": {
                        "fields": {
                          "type": "object",
                          "properties": {
                            "_id": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "transaction": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "schedule": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "chargeback": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "platformFee": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "spProductFee": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "batchPayoutId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "status": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "txDate": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "fee": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "type": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "subMerchantId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "spProductId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "createdAt": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "updatedAt": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "review": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            }
                          },
                          "description": "Field projection: keys map to 1 (include) or 0 (exclude)."
                        }
                      },
                      "description": "Query options: pagination, sorting, and field projection."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findBalance": {
        "description": "findBalance",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "number",
                      "description": "The submerchant's total balance currently available to pay out."
                    }
                  },
                  "description": "The response payload."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "criteria": {
                      "type": "object",
                      "description": "Filter criteria applied, keyed by field path."
                    },
                    "options": {
                      "type": "object",
                      "description": "Query options: pagination, sorting, and field projection."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findBalanceCreditCard": {
        "description": "findBalanceCreditCard",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "number",
                      "description": "The amount of the transaction."
                    }
                  },
                  "description": "The response payload."
                }
              }
            }
          }
        }
      },
      "findBalanceEcheck": {
        "description": "findBalanceCreditCard",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "number",
                      "description": "The amount of the transaction."
                    }
                  },
                  "description": "The response payload."
                }
              }
            }
          }
        }
      },
      "findSettlementsServiceProvider": {
        "description": "findSettlementsServiceProvider",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": true,
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "example": "succeeded",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "example": "0",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "_id": {
                        "type": "string",
                        "example": "67c24dd60621becf9a41813e",
                        "description": "Internal document identifier."
                      },
                      "subMerchantId": {
                        "type": "string",
                        "example": "jpt-sim-md-1",
                        "description": "Unique identifier of the submerchant."
                      },
                      "spProductId": {
                        "type": "string",
                        "example": "255",
                        "description": "Identifier of the Service Provider product the merchant belongs to."
                      },
                      "facId": {
                        "type": "string",
                        "example": "JPT",
                        "description": "Facilitator identifier assigned by Jupico."
                      },
                      "totalSales": {
                        "type": "number",
                        "format": "float",
                        "example": 47090,
                        "description": "Gross sales in the settlement."
                      },
                      "refunds": {
                        "type": "number",
                        "format": "float",
                        "example": 0,
                        "description": "Refund amount."
                      },
                      "chargebacks": {
                        "type": "number",
                        "format": "float",
                        "example": 0,
                        "description": "Chargebacks linked to this transaction."
                      },
                      "taxHolding": {
                        "type": "number",
                        "format": "float",
                        "example": 0,
                        "description": "Tax amount withheld."
                      },
                      "netSales": {
                        "type": "number",
                        "format": "float",
                        "example": 45706.67,
                        "description": "Sales minus refunds and chargebacks."
                      },
                      "feesIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Identifiers of fee records included."
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time",
                        "example": "2025-02-28T23:59:18.385Z",
                        "description": "Timestamp when the object was created (ISO 8601)."
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "example": "2025-02-28T23:59:18.385Z",
                        "description": "Timestamp when the object was last updated (ISO 8601)."
                      },
                      "platformFee": {
                        "type": "number",
                        "format": "float",
                        "example": 1312.01,
                        "description": "Portion of the fee billed at the platform level."
                      },
                      "spProductFee": {
                        "type": "number",
                        "format": "float",
                        "example": 71.32,
                        "description": "Portion of the fee billed at the Service Provider product level."
                      },
                      "interchangeFee": {
                        "type": "number",
                        "format": "float",
                        "example": 0,
                        "description": "Interchange fee amount passed through."
                      },
                      "totalFees": {
                        "type": "number",
                        "format": "float",
                        "example": 1383.33,
                        "description": "Total fees deducted."
                      },
                      "netSpProduct": {
                        "type": "number",
                        "format": "float",
                        "example": 71.32,
                        "description": "Net amount payable to the Service Provider product."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "totals": {
                  "type": "object",
                  "properties": {
                    "_id": {
                      "type": "string",
                      "nullable": true,
                      "example": null,
                      "description": "Internal document identifier."
                    },
                    "count": {
                      "type": "integer",
                      "example": 23,
                      "description": "Number of records."
                    },
                    "totalSales": {
                      "type": "number",
                      "format": "float",
                      "example": 85318.68,
                      "description": "Gross sales in the settlement."
                    },
                    "totalRefunds": {
                      "type": "number",
                      "format": "float",
                      "example": 0,
                      "description": "Total refunds in the settlement."
                    },
                    "netSales": {
                      "type": "number",
                      "format": "float",
                      "example": 82725.1,
                      "description": "Sales minus refunds and chargebacks."
                    },
                    "totalChargebacks": {
                      "type": "number",
                      "format": "float",
                      "example": 0,
                      "description": "Total chargebacks in the settlement."
                    },
                    "taxHolding": {
                      "type": "number",
                      "format": "float",
                      "example": 0,
                      "description": "Tax amount withheld."
                    },
                    "feesIdsLength": {
                      "type": "integer",
                      "example": 324,
                      "description": "Number of fee records in the settlement."
                    },
                    "platform": {
                      "type": "number",
                      "format": "float",
                      "example": 2445.85,
                      "description": "Total fees at the platform level."
                    },
                    "spProduct": {
                      "type": "number",
                      "format": "float",
                      "example": 147.73,
                      "description": "Total fees at the Service Provider product level."
                    },
                    "interchange": {
                      "type": "number",
                      "format": "float",
                      "example": 0,
                      "description": "Interchange pass-through fee settings."
                    },
                    "totalFees": {
                      "type": "number",
                      "format": "float",
                      "example": 2593.58,
                      "description": "Total fees deducted."
                    },
                    "netSpProduct": {
                      "type": "number",
                      "format": "float",
                      "example": 147.73,
                      "description": "Net amount payable to the Service Provider product."
                    }
                  },
                  "description": "Aggregate totals across all returned records."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "options": {
                      "type": "object",
                      "properties": {
                        "limit": {
                          "type": "integer",
                          "example": 1000,
                          "description": "Maximum number of records returned."
                        }
                      },
                      "description": "Query options: pagination, sorting, and field projection."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findSettlementsSubmerchant": {
        "description": "findSettlementsSubmerchant",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": true,
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "example": "succeeded",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "example": "0",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "_id": {
                        "type": "string",
                        "example": "67c24dd60621becf9a41813e",
                        "description": "Internal document identifier."
                      },
                      "subMerchantId": {
                        "type": "string",
                        "example": "jpt-sim-md-1",
                        "description": "Unique identifier of the submerchant."
                      },
                      "spProductId": {
                        "type": "string",
                        "example": "255",
                        "description": "Identifier of the Service Provider product the merchant belongs to."
                      },
                      "facId": {
                        "type": "string",
                        "example": "JPT",
                        "description": "Facilitator identifier assigned by Jupico."
                      },
                      "totalSales": {
                        "type": "number",
                        "example": 47090,
                        "description": "Gross sales in the settlement."
                      },
                      "refunds": {
                        "type": "number",
                        "example": 0,
                        "description": "Refund amount."
                      },
                      "chargebacks": {
                        "type": "number",
                        "example": 0,
                        "description": "Chargebacks linked to this transaction."
                      },
                      "taxHolding": {
                        "type": "number",
                        "example": 0,
                        "description": "Tax amount withheld."
                      },
                      "netSales": {
                        "type": "number",
                        "example": 45706.67,
                        "description": "Sales minus refunds and chargebacks."
                      },
                      "feesIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "example": [
                          "67c1b0bd7ce3b3d57560d48d",
                          "67c1b0bd7ce3b3d57560d491"
                        ],
                        "description": "Identifiers of fee records included."
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time",
                        "example": "2025-02-28T23:59:18.385Z",
                        "description": "Timestamp when the object was created (ISO 8601)."
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "example": "2025-02-28T23:59:18.385Z",
                        "description": "Timestamp when the object was last updated (ISO 8601)."
                      },
                      "platformFee": {
                        "type": "number",
                        "example": 1312.01,
                        "description": "Portion of the fee billed at the platform level."
                      },
                      "spProductFee": {
                        "type": "number",
                        "example": 71.32,
                        "description": "Portion of the fee billed at the Service Provider product level."
                      },
                      "interchangeFee": {
                        "type": "number",
                        "example": 0,
                        "description": "Interchange fee amount passed through."
                      },
                      "totalFees": {
                        "type": "number",
                        "example": 1383.33,
                        "description": "Total fees deducted."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "totals": {
                  "type": "object",
                  "properties": {
                    "_id": {
                      "type": "string",
                      "nullable": true,
                      "example": null,
                      "description": "Internal document identifier."
                    },
                    "count": {
                      "type": "number",
                      "example": 23,
                      "description": "Number of records."
                    },
                    "totalSales": {
                      "type": "number",
                      "example": 85318.68,
                      "description": "Gross sales in the settlement."
                    },
                    "totalRefunds": {
                      "type": "number",
                      "example": 0,
                      "description": "Total refunds in the settlement."
                    },
                    "netSales": {
                      "type": "number",
                      "example": 82725.1,
                      "description": "Sales minus refunds and chargebacks."
                    },
                    "totalChargebacks": {
                      "type": "number",
                      "example": 0,
                      "description": "Total chargebacks in the settlement."
                    },
                    "taxHolding": {
                      "type": "number",
                      "example": 0,
                      "description": "Tax amount withheld."
                    },
                    "feesIdsLength": {
                      "type": "number",
                      "example": 324,
                      "description": "Number of fee records in the settlement."
                    },
                    "platform": {
                      "type": "number",
                      "example": 2445.85,
                      "description": "Total fees at the platform level."
                    },
                    "spProduct": {
                      "type": "number",
                      "example": 147.73,
                      "description": "Total fees at the Service Provider product level."
                    },
                    "interchange": {
                      "type": "number",
                      "example": 0,
                      "description": "Interchange pass-through fee settings."
                    },
                    "totalFees": {
                      "type": "number",
                      "example": 2593.58,
                      "description": "Total fees deducted."
                    }
                  },
                  "description": "Aggregate totals across all returned records."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "options": {
                      "type": "object",
                      "properties": {
                        "limit": {
                          "type": "number",
                          "example": 1000,
                          "description": "Maximum number of records returned."
                        }
                      },
                      "description": "Query options: pagination, sorting, and field projection."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findDisputes": {
        "description": "findDisputes",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  },
                  "description": "The response payload."
                },
                "count": {
                  "type": "number",
                  "description": "Number of records."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "criteria": {
                      "type": "object",
                      "description": "Filter criteria applied, keyed by field path."
                    },
                    "options": {
                      "type": "object",
                      "properties": {
                        "fields": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "submerchantId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "chartsLines": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "spProductId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "disputeId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "disputeAmount": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "createdAt": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "recordNumber": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "transactionId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "originalAmount": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "chargebackUsageCode": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "adjustmentType": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "adjustmentTypeDesc": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "originalTxDate": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "originalTxTime": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "transactionType": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "transactionTypeDesc": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "networkId": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "cardNumber": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "entryMode": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "entryModeDesc": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "merchantStoreNumber": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "currencyCode": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "departmentNumber": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "merchantCategoryCode": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "adjustmentReasonCode": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "draftActionCode": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "draftActionCodeDesc": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "draftActionCodeDate": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "actionCode": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "chargebackActionCodeDesc": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "respondByDate": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "chargebackReferenceNumber": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "transactionDispositionQualifier": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "acquirerReferenceNumber": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            },
                            "merchantChain": {
                              "type": "number",
                              "description": "Set to 1 to include this field in results, or 0 to exclude it."
                            }
                          },
                          "description": "Field projection: keys map to 1 (include) or 0 (exclude)."
                        }
                      },
                      "description": "Query options: pagination, sorting, and field projection."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findDisputesChartLines": {
        "description": "findDisputesChartLines",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": true,
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "example": "succeeded",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "example": "0",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "spProductId": {
                        "type": "string",
                        "example": "255",
                        "description": "Identifier of the Service Provider product the merchant belongs to."
                      },
                      "facId": {
                        "type": "string",
                        "example": "JPT",
                        "description": "Facilitator identifier assigned by Jupico."
                      },
                      "transactionId": {
                        "type": "string",
                        "example": "b164e6e2-791c-4831-aefd-003de4d71085",
                        "description": "Unique identifier of the original transaction."
                      },
                      "txReceivedDate": {
                        "type": "string",
                        "example": "210606",
                        "description": "Date the dispute record was received (network format)."
                      },
                      "txType": {
                        "type": "string",
                        "example": "41",
                        "description": "Transaction type code from the network."
                      },
                      "disputeAmount": {
                        "type": "string",
                        "example": "0000020773",
                        "description": "Amount in dispute."
                      },
                      "disputeAmountPretty": {
                        "type": "string",
                        "example": "207.73",
                        "description": "Dispute amount formatted for display."
                      },
                      "networkId": {
                        "type": "string",
                        "example": "VISA",
                        "description": "Card network identifier."
                      },
                      "draftRetrievalNumber": {
                        "type": "string",
                        "example": "231268787",
                        "description": "Draft retrieval reference number."
                      },
                      "recordNumber": {
                        "type": "string",
                        "example": "112710461802",
                        "description": "Record number within the dispute file."
                      },
                      "originalTxDate": {
                        "type": "string",
                        "example": "10414",
                        "description": "Date of the original transaction (network format)."
                      },
                      "originalTxTime": {
                        "type": "string",
                        "example": "732004",
                        "description": "Time of the original transaction (network format)."
                      },
                      "merchantChainNumberFromOriginalTx": {
                        "type": "string",
                        "example": "6416Y",
                        "description": "Merchant chain number from the original transaction."
                      },
                      "divisionNumberFromOriginalTx": {
                        "type": "string",
                        "example": "000",
                        "description": "Merchant division number from the original transaction."
                      },
                      "totalSegments": {
                        "type": "string",
                        "example": "2",
                        "description": "Number of segments in the dispute record."
                      },
                      "terminalId": {
                        "type": "string",
                        "example": "01",
                        "description": "Terminal ID from the original transaction."
                      },
                      "registerNumber": {
                        "type": "string",
                        "example": "0000",
                        "description": "Register number from the original transaction."
                      },
                      "chargebackUsageCode": {
                        "type": "string",
                        "example": "C",
                        "description": "Chargeback usage code (first or subsequent presentment)."
                      },
                      "adjustmentType": {
                        "type": "string",
                        "example": "HBK2",
                        "description": "Adjustment type code."
                      },
                      "draftActionCode": {
                        "type": "string",
                        "example": "",
                        "description": "Draft action code."
                      },
                      "draftActionCodeDate": {
                        "type": "string",
                        "example": "",
                        "description": "Date of the draft action (network format)."
                      },
                      "documentIndicator": {
                        "type": "string",
                        "example": "1",
                        "description": "Indicates whether supporting documentation exists."
                      },
                      "primaryAccountNumber": {
                        "type": "string",
                        "example": "53506XXXXXX6148   M",
                        "description": "Masked primary account number (PAN)."
                      },
                      "chargebackActionCode": {
                        "type": "string",
                        "example": "ACP2",
                        "description": "Chargeback action code."
                      },
                      "chargebackActionCodeDate": {
                        "type": "string",
                        "example": "106060",
                        "description": "Date of the chargeback action (network format)."
                      },
                      "departmentNumber": {
                        "type": "string",
                        "example": "00008",
                        "description": "Department number from the original transaction."
                      },
                      "issuerCurrencyCode": {
                        "type": "string",
                        "example": "405",
                        "description": "Currency code used by the issuer."
                      },
                      "merchantCategoryCode": {
                        "type": "string",
                        "example": "812V",
                        "description": "Merchant category code (MCC) of the original transaction."
                      },
                      "adjustmentReasonCode": {
                        "type": "string",
                        "example": "04  0",
                        "description": "Adjustment reason code from the network."
                      },
                      "chargebackReferenceCode": {
                        "type": "string",
                        "example": "020870072561",
                        "description": "Chargeback reference assigned by the network."
                      },
                      "dispositionQualifier": {
                        "type": "string",
                        "example": "022",
                        "description": "Disposition qualifier code."
                      },
                      "aRN": {
                        "type": "string",
                        "example": "44450011043004499215196",
                        "description": "Acquirer reference number (ARN) for the disputed transaction."
                      },
                      "merchantChain": {
                        "type": "string",
                        "example": "416Y",
                        "description": "Merchant chain number."
                      },
                      "merchantDivisionNumber": {
                        "type": "string",
                        "example": "0",
                        "description": "Merchant division number."
                      },
                      "feeAmount": {
                        "type": "string",
                        "example": "0.00",
                        "description": "Fee amount."
                      },
                      "salesPersonNumber": {
                        "type": "string",
                        "example": "000000000",
                        "description": "Salesperson number from the original transaction."
                      },
                      "entryMode": {
                        "type": "string",
                        "example": "1",
                        "description": "Card entry mode of the original transaction."
                      },
                      "authorizationSource": {
                        "type": "string",
                        "example": "7",
                        "description": "Authorization source code from the original transaction."
                      },
                      "previousDraftAction": {
                        "type": "string",
                        "example": "",
                        "description": "Previous draft action code."
                      },
                      "electronicCommerce": {
                        "type": "string",
                        "example": "",
                        "description": "E-commerce indicator from the original transaction."
                      },
                      "userDataField1": {
                        "type": "string",
                        "example": "",
                        "description": "Network user data field."
                      },
                      "userDataField2": {
                        "type": "string",
                        "example": "",
                        "description": "Network user data field."
                      },
                      "userDataField3": {
                        "type": "string",
                        "example": "",
                        "description": "Network user data field."
                      },
                      "userDataField4": {
                        "type": "string",
                        "example": "",
                        "description": "Network user data field."
                      },
                      "commentsFromIssuer": {
                        "type": "string",
                        "example": "",
                        "description": "Comments from the issuing bank."
                      },
                      "commentsToIssuer": {
                        "type": "string",
                        "example": "",
                        "description": "Comments sent to the issuing bank."
                      },
                      "commentToMerchant": {
                        "type": "string",
                        "example": "",
                        "description": "Comment addressed to the merchant."
                      },
                      "commentsFromMerchant": {
                        "type": "string",
                        "example": "",
                        "description": "Comments submitted by the merchant."
                      },
                      "merchantStoreNumber": {
                        "type": "string",
                        "example": "000000092",
                        "description": "Merchant store number."
                      },
                      "updatedAt": {
                        "type": "string",
                        "example": "2024-04-19T00:14:51.690Z",
                        "description": "Timestamp when the object was last updated (ISO 8601)."
                      },
                      "createdAt": {
                        "type": "string",
                        "example": "2023-04-28T16:46:36.516Z",
                        "description": "Timestamp when the object was created (ISO 8601)."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "totals": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer",
                      "example": 2,
                      "description": "Number of records."
                    }
                  },
                  "description": "Aggregate totals across all returned records."
                },
                "count": {
                  "type": "integer",
                  "example": 2,
                  "description": "Number of records."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "criteria": {
                      "type": "object",
                      "example": {},
                      "description": "Filter criteria applied, keyed by field path."
                    },
                    "options": {
                      "type": "object",
                      "properties": {
                        "limit": {
                          "type": "integer",
                          "example": 1000,
                          "description": "Maximum number of records returned."
                        },
                        "projection": {
                          "type": "object",
                          "properties": {
                            "_id": {
                              "type": "integer",
                              "example": 0,
                              "description": "Internal document identifier."
                            },
                            "spProductId": {
                              "type": "integer",
                              "example": 1,
                              "description": "Identifier of the Service Provider product the merchant belongs to."
                            },
                            "facId": {
                              "type": "integer",
                              "example": 1,
                              "description": "Facilitator identifier assigned by Jupico."
                            },
                            "transactionId": {
                              "type": "integer",
                              "example": 1,
                              "description": "Unique identifier of the original transaction."
                            },
                            "txReceivedDate": {
                              "type": "integer",
                              "example": 1,
                              "description": "Date the dispute record was received (network format)."
                            },
                            "txType": {
                              "type": "integer",
                              "example": 1,
                              "description": "Transaction type code from the network."
                            },
                            "disputeAmount": {
                              "type": "integer",
                              "example": 1,
                              "description": "Amount in dispute."
                            },
                            "disputeAmountPretty": {
                              "type": "integer",
                              "example": 1,
                              "description": "Dispute amount formatted for display."
                            },
                            "networkId": {
                              "type": "integer",
                              "example": 1,
                              "description": "Card network identifier."
                            },
                            "draftRetrievalNumber": {
                              "type": "integer",
                              "example": 1,
                              "description": "Draft retrieval reference number."
                            },
                            "recordNumber": {
                              "type": "integer",
                              "example": 1,
                              "description": "Record number within the dispute file."
                            },
                            "originalTxDate": {
                              "type": "integer",
                              "example": 1,
                              "description": "Date of the original transaction (network format)."
                            },
                            "originalTxTime": {
                              "type": "integer",
                              "example": 1,
                              "description": "Time of the original transaction (network format)."
                            },
                            "merchantChainNumberFromOriginalTx": {
                              "type": "integer",
                              "example": 1,
                              "description": "Merchant chain number from the original transaction."
                            },
                            "divisionNumberFromOriginalTx": {
                              "type": "integer",
                              "example": 1,
                              "description": "Merchant division number from the original transaction."
                            },
                            "totalSegments": {
                              "type": "integer",
                              "example": 1,
                              "description": "Number of segments in the dispute record."
                            },
                            "terminalId": {
                              "type": "integer",
                              "example": 1,
                              "description": "Terminal ID from the original transaction."
                            },
                            "registerNumber": {
                              "type": "integer",
                              "example": 1,
                              "description": "Register number from the original transaction."
                            },
                            "chargebackUsageCode": {
                              "type": "integer",
                              "example": 1,
                              "description": "Chargeback usage code (first or subsequent presentment)."
                            },
                            "adjustmentType": {
                              "type": "integer",
                              "example": 1,
                              "description": "Adjustment type code."
                            },
                            "draftActionCode": {
                              "type": "integer",
                              "example": 1,
                              "description": "Draft action code."
                            },
                            "draftActionCodeDate": {
                              "type": "integer",
                              "example": 1,
                              "description": "Date of the draft action (network format)."
                            },
                            "documentIndicator": {
                              "type": "integer",
                              "example": 1,
                              "description": "Indicates whether supporting documentation exists."
                            },
                            "primaryAccountNumber": {
                              "type": "integer",
                              "example": 1,
                              "description": "Masked primary account number (PAN)."
                            },
                            "chargebackActionCode": {
                              "type": "integer",
                              "example": 1,
                              "description": "Chargeback action code."
                            },
                            "chargebackActionCodeDate": {
                              "type": "integer",
                              "example": 1,
                              "description": "Date of the chargeback action (network format)."
                            },
                            "departmentNumber": {
                              "type": "integer",
                              "example": 1,
                              "description": "Department number from the original transaction."
                            },
                            "issuerCurrencyCode": {
                              "type": "integer",
                              "example": 1,
                              "description": "Currency code used by the issuer."
                            },
                            "merchantCategoryCode": {
                              "type": "integer",
                              "example": 1,
                              "description": "Merchant category code (MCC) of the original transaction."
                            },
                            "adjustmentReasonCode": {
                              "type": "integer",
                              "example": 1,
                              "description": "Adjustment reason code from the network."
                            },
                            "chargebackReferenceCode": {
                              "type": "integer",
                              "example": 1,
                              "description": "Chargeback reference assigned by the network."
                            },
                            "dispositionQualifier": {
                              "type": "integer",
                              "example": 1,
                              "description": "Disposition qualifier code."
                            },
                            "aRN": {
                              "type": "integer",
                              "example": 1,
                              "description": "Acquirer reference number (ARN) for the disputed transaction."
                            },
                            "merchantChain": {
                              "type": "integer",
                              "example": 1,
                              "description": "Merchant chain number."
                            },
                            "merchantDivisionNumber": {
                              "type": "integer",
                              "example": 1,
                              "description": "Merchant division number."
                            },
                            "feeAmount": {
                              "type": "integer",
                              "example": 1,
                              "description": "Fee amount."
                            },
                            "salesPersonNumber": {
                              "type": "integer",
                              "example": 1,
                              "description": "Salesperson number from the original transaction."
                            },
                            "entryMode": {
                              "type": "integer",
                              "example": 1,
                              "description": "Card entry mode of the original transaction."
                            },
                            "authorizationSource": {
                              "type": "integer",
                              "example": 1,
                              "description": "Authorization source code from the original transaction."
                            },
                            "previousDraftAction": {
                              "type": "integer",
                              "example": 1,
                              "description": "Previous draft action code."
                            },
                            "electronicCommerce": {
                              "type": "integer",
                              "example": 1,
                              "description": "E-commerce indicator from the original transaction."
                            },
                            "userDataField1": {
                              "type": "integer",
                              "example": 1,
                              "description": "Network user data field."
                            },
                            "userDataField2": {
                              "type": "integer",
                              "example": 1,
                              "description": "Network user data field."
                            },
                            "userDataField3": {
                              "type": "integer",
                              "example": 1,
                              "description": "Network user data field."
                            },
                            "userDataField4": {
                              "type": "integer",
                              "example": 1,
                              "description": "Network user data field."
                            },
                            "commentsFromIssuer": {
                              "type": "integer",
                              "example": 1,
                              "description": "Comments from the issuing bank."
                            },
                            "commentsToIssuer": {
                              "type": "integer",
                              "example": 1,
                              "description": "Comments sent to the issuing bank."
                            },
                            "commentToMerchant": {
                              "type": "integer",
                              "example": 1,
                              "description": "Comment addressed to the merchant."
                            },
                            "commentsFromMerchant": {
                              "type": "integer",
                              "example": 1,
                              "description": "Comments submitted by the merchant."
                            },
                            "merchantStoreNumber": {
                              "type": "integer",
                              "example": 1,
                              "description": "Merchant store number."
                            },
                            "updatedAt": {
                              "type": "integer",
                              "example": 1,
                              "description": "Timestamp when the object was last updated (ISO 8601)."
                            },
                            "createdAt": {
                              "type": "integer",
                              "example": 1,
                              "description": "Timestamp when the object was created (ISO 8601)."
                            }
                          },
                          "description": "Field projection applied to results."
                        }
                      },
                      "description": "Query options: pagination, sorting, and field projection."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findHosted": {
        "description": "findHosted",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "facId": {
                        "type": "string",
                        "description": "Facilitator identifier assigned by Jupico."
                      },
                      "subMerchantId": {
                        "type": "string",
                        "description": "Unique identifier of the submerchant."
                      },
                      "spProductId": {
                        "type": "string",
                        "description": "Identifier of the Service Provider product the merchant belongs to."
                      },
                      "id": {
                        "type": "string",
                        "description": "Unique identifier."
                      },
                      "amount": {
                        "type": "number",
                        "description": "The amount of the transaction."
                      },
                      "status": {
                        "type": "string",
                        "description": "Current status."
                      },
                      "type": {
                        "type": "string",
                        "description": "The type."
                      },
                      "description": {
                        "type": "string",
                        "description": "Free-text description."
                      },
                      "collectAddress": {
                        "type": "boolean",
                        "description": "Whether the billing address is collected."
                      },
                      "collectShippingAddress": {
                        "type": "boolean",
                        "description": "Collect the customer's shipping address during checkout."
                      },
                      "collectPhoneNumber": {
                        "type": "boolean",
                        "description": "Collect the customer's phone number during checkout."
                      },
                      "collectEmail": {
                        "type": "boolean",
                        "description": "Collect the customer's email address during checkout."
                      },
                      "email": {
                        "type": "string",
                        "nullable": true,
                        "description": "Email address."
                      },
                      "notes": {
                        "type": "string",
                        "nullable": true,
                        "description": "Free-text notes displayed on the hosted page."
                      },
                      "paymentMethods": {
                        "type": "object",
                        "properties": {
                          "defaultMethod": {
                            "type": "string",
                            "nullable": true,
                            "description": "Payment method selected by default: `creditCard`, `eCheck`, `applePay`, or `googlePay`."
                          },
                          "creditCard": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "Whether this setting is enabled."
                              },
                              "cards": {
                                "type": "array",
                                "items": {
                                  "type": "object"
                                },
                                "description": "Card brands accepted."
                              }
                            },
                            "description": "Credit card acceptance settings for the hosted page."
                          },
                          "eCheck": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "Whether this setting is enabled."
                              },
                              "accounts": {
                                "type": "array",
                                "items": {
                                  "type": "object"
                                },
                                "description": "Bank account types accepted."
                              }
                            },
                            "description": "eCheck (ACH) acceptance settings for the hosted page."
                          },
                          "applePay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Apple Pay acceptance settings for the hosted page."
                          },
                          "googlePay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "Whether this setting is enabled."
                              }
                            },
                            "description": "Google Pay acceptance settings for the hosted page."
                          }
                        },
                        "description": "Payment methods offered on the hosted page."
                      },
                      "cartItems": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "Line items displayed at checkout."
                      },
                      "totalModifiers": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "Adjustments applied to the total, such as discounts or additional fees."
                      },
                      "totalAmount": {
                        "type": "number",
                        "description": "The total amount."
                      },
                      "url": {
                        "type": "string",
                        "description": "URL of the hosted page for this object."
                      },
                      "redirect": {
                        "type": "object",
                        "properties": {
                          "success": {
                            "type": "object",
                            "properties": {
                              "url": {
                                "type": "string",
                                "description": "URL of the hosted page for this object."
                              }
                            },
                            "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                          },
                          "cancel": {
                            "type": "object",
                            "properties": {
                              "url": {
                                "type": "string",
                                "description": "URL of the hosted page for this object."
                              }
                            },
                            "description": "Cancel redirect settings."
                          }
                        },
                        "description": "URLs the customer is redirected to during the flow."
                      },
                      "transaction": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "nullable": true,
                            "description": "Unique identifier."
                          },
                          "paymentMethod": {
                            "type": "string",
                            "nullable": true,
                            "description": "Details of the payment method used."
                          },
                          "executedAt": {
                            "type": "string",
                            "nullable": true,
                            "description": "Timestamp when it was executed (ISO 8601)."
                          },
                          "amount": {
                            "type": "number",
                            "nullable": true,
                            "description": "The amount of the transaction."
                          }
                        },
                        "description": "Details of the underlying transaction."
                      },
                      "expiresInMinutes": {
                        "type": "number",
                        "description": "Minutes until the session expires."
                      },
                      "expiresAt": {
                        "type": "string",
                        "nullable": true,
                        "description": "Timestamp when this object expires (ISO 8601)."
                      },
                      "cancelledAt": {
                        "type": "string",
                        "nullable": true,
                        "description": "Timestamp when it was cancelled (ISO 8601)."
                      },
                      "deactivatedAt": {
                        "type": "string",
                        "nullable": true,
                        "description": "Timestamp when it was deactivated (ISO 8601)."
                      },
                      "customization": {
                        "type": "object",
                        "properties": {
                          "branding": {
                            "type": "object",
                            "properties": {
                              "primaryColor": {
                                "type": "string",
                                "description": "Primary color (hex)."
                              },
                              "secondaryColor": {
                                "type": "string",
                                "description": "Secondary color (hex)."
                              },
                              "backgroundColor": {
                                "type": "string",
                                "description": "Background color (hex)."
                              },
                              "contrastColor": {
                                "type": "string",
                                "description": "Contrast color (hex)."
                              },
                              "textColor": {
                                "type": "string",
                                "description": "Text color (hex)."
                              }
                            },
                            "description": "Brand colors and logo for the hosted page."
                          },
                          "callToActionLabel": {
                            "type": "string",
                            "description": "Label of the pay button."
                          },
                          "statusPages": {
                            "type": "object",
                            "properties": {
                              "success": {
                                "type": "object",
                                "properties": {
                                  "title": {
                                    "type": "string",
                                    "nullable": true,
                                    "description": "Title."
                                  },
                                  "description": {
                                    "type": "string",
                                    "nullable": true,
                                    "description": "Free-text description."
                                  }
                                },
                                "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                              },
                              "cancel": {
                                "type": "object",
                                "properties": {
                                  "title": {
                                    "type": "string",
                                    "nullable": true,
                                    "description": "Title."
                                  },
                                  "description": {
                                    "type": "string",
                                    "nullable": true,
                                    "description": "Free-text description."
                                  }
                                },
                                "description": "Cancel redirect settings."
                              }
                            },
                            "description": "Custom content for success and failure pages."
                          },
                          "fields": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "Field projection: keys map to 1 (include) or 0 (exclude)."
                          }
                        },
                        "description": "Visual customization of the hosted page."
                      },
                      "params": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "Additional parameters for the hosted page."
                      },
                      "planId": {
                        "type": "string",
                        "nullable": true,
                        "description": "Unique identifier of the subscription plan."
                      },
                      "subscriptionId": {
                        "type": "string",
                        "nullable": true,
                        "description": "Unique identifier of the subscription."
                      },
                      "createdAt": {
                        "type": "string",
                        "description": "Timestamp when the object was created (ISO 8601)."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "count": {
                  "type": "number",
                  "description": "Number of records."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "criteria": {
                      "type": "object",
                      "description": "Filter criteria applied, keyed by field path."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findCheckouts": {
        "description": "Find Checkouts",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "count": {
                  "type": "number",
                  "description": "Number of records."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "spProductId": {
                        "type": "string",
                        "description": "Identifier of the Service Provider product the merchant belongs to."
                      },
                      "subMerchantId": {
                        "type": "string",
                        "description": "Unique identifier of the submerchant."
                      },
                      "checkoutId": {
                        "type": "string",
                        "description": "Unique identifier of the checkout session."
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "number",
                              "description": "Price per unit."
                            },
                            "quantity": {
                              "type": "number",
                              "description": "Number of units."
                            },
                            "description": {
                              "type": "string",
                              "description": "Description of the line item."
                            }
                          }
                        },
                        "description": "Line items included in the total amount."
                      },
                      "totalModifiers": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "number",
                              "description": "The amount of the transaction."
                            },
                            "description": {
                              "type": "string",
                              "description": "Free-text description."
                            },
                            "type": {
                              "type": "string",
                              "description": "The type."
                            }
                          }
                        },
                        "description": "Adjustments applied to the total, such as discounts or additional fees."
                      },
                      "totalAmount": {
                        "type": "number",
                        "description": "The total amount."
                      },
                      "description": {
                        "type": "string",
                        "description": "Free-text description."
                      },
                      "status": {
                        "type": "string",
                        "description": "Current status."
                      },
                      "createdAt": {
                        "type": "string",
                        "description": "Timestamp when the object was created (ISO 8601)."
                      },
                      "updatedAt": {
                        "type": "string",
                        "description": "Timestamp when the object was last updated (ISO 8601)."
                      },
                      "hostedSession": {
                        "type": "object",
                        "properties": {
                          "hostedSessionId": {
                            "type": "string",
                            "description": "Identifier of the hosted session."
                          },
                          "url": {
                            "type": "string",
                            "description": "URL of the hosted page for this object."
                          }
                        },
                        "description": "Configuration for the hosted payment page."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "criteria": {
                      "type": "object",
                      "description": "Filter criteria applied, keyed by field path."
                    },
                    "options": {
                      "type": "object",
                      "description": "Query options: pagination, sorting, and field projection."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findPaymentLinks": {
        "description": "Find PaymentLinks",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "count": {
                  "type": "number",
                  "description": "Number of records."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "spProductId": {
                        "type": "string",
                        "description": "Identifier of the Service Provider product the merchant belongs to."
                      },
                      "subMerchantId": {
                        "type": "string",
                        "description": "Unique identifier of the submerchant."
                      },
                      "paymentLinkId": {
                        "type": "string",
                        "description": "Unique identifier of the payment link."
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "number",
                              "description": "Price per unit."
                            },
                            "quantity": {
                              "type": "number",
                              "description": "Number of units."
                            },
                            "description": {
                              "type": "string",
                              "description": "Description of the line item."
                            }
                          }
                        },
                        "description": "Line items included in the total amount."
                      },
                      "totalModifiers": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "number",
                              "description": "The amount of the transaction."
                            },
                            "description": {
                              "type": "string",
                              "description": "Free-text description."
                            },
                            "type": {
                              "type": "string",
                              "description": "The type."
                            }
                          }
                        },
                        "description": "Adjustments applied to the total, such as discounts or additional fees."
                      },
                      "totalAmount": {
                        "type": "number",
                        "description": "The total amount."
                      },
                      "description": {
                        "type": "string",
                        "description": "Free-text description."
                      },
                      "receipt": {
                        "type": "object",
                        "description": "Email receipt settings for the payment link. Receipts are off by default. A receipt is sent only when `hostedSession.functions.collectEmail.enabled` is `true` and the payer enters an email address on the hosted page.",
                        "properties": {
                          "enabled": {
                            "type": "boolean",
                            "default": false,
                            "example": true,
                            "description": "Whether the payer is emailed a receipt after they pay."
                          }
                        }
                      },
                      "status": {
                        "type": "string",
                        "description": "Current status."
                      },
                      "createdAt": {
                        "type": "string",
                        "description": "Timestamp when the object was created (ISO 8601)."
                      },
                      "updatedAt": {
                        "type": "string",
                        "description": "Timestamp when the object was last updated (ISO 8601)."
                      },
                      "hostedSession": {
                        "type": "object",
                        "properties": {
                          "hostedSessionId": {
                            "type": "string",
                            "description": "Identifier of the hosted session."
                          },
                          "url": {
                            "type": "string",
                            "description": "URL of the hosted page for this object."
                          }
                        },
                        "description": "Configuration for the hosted payment page."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "criteria": {
                      "type": "object",
                      "description": "Filter criteria applied, keyed by field path."
                    },
                    "options": {
                      "type": "object",
                      "description": "Query options: pagination, sorting, and field projection."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findOnboardingInvites": {
        "description": "Find Onboarding invites",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "count": {
                  "type": "number",
                  "description": "Number of records."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "spProductId": {
                        "type": "string",
                        "description": "Identifier of the Service Provider product the merchant belongs to."
                      },
                      "inviteId": {
                        "type": "string",
                        "description": "Unique identifier of the onboarding invite."
                      },
                      "name": {
                        "type": "string",
                        "description": "Display name."
                      },
                      "email": {
                        "type": "string",
                        "description": "Email address."
                      },
                      "phoneNumber": {
                        "type": "string",
                        "description": "Phone number."
                      },
                      "reference": {
                        "type": "string",
                        "description": "Your own reference for this invite."
                      },
                      "url": {
                        "type": "string",
                        "description": "URL of the hosted page for this object."
                      },
                      "notifications": {
                        "type": "object",
                        "properties": {
                          "email": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "Whether this setting is enabled."
                              },
                              "sent": {
                                "type": "boolean",
                                "description": "Whether the notification was sent."
                              }
                            },
                            "description": "Email notification status."
                          },
                          "sms": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "Whether this setting is enabled."
                              },
                              "sent": {
                                "type": "boolean",
                                "description": "Whether the notification was sent."
                              }
                            },
                            "description": "SMS notification status."
                          }
                        },
                        "description": "Delivery status of invite notifications."
                      },
                      "status": {
                        "type": "string",
                        "description": "Current status."
                      },
                      "feesTemplateId": {
                        "type": "string",
                        "description": "UUID of a fees template with predefined pricing. If omitted, the default template is used."
                      },
                      "onboardingFlowTemplateId": {
                        "type": "string",
                        "example": "",
                        "description": "UUID of the onboarding flow template that controls which steps the merchant sees."
                      },
                      "expiresAt": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Timestamp when this object expires (ISO 8601)."
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Timestamp when the object was created (ISO 8601)."
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Timestamp when the object was last updated (ISO 8601)."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "criteria": {
                      "type": "object",
                      "description": "Filter criteria applied, keyed by field path."
                    },
                    "options": {
                      "type": "object",
                      "description": "Query options: pagination, sorting, and field projection."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findInvoices": {
        "description": "Find Invoices",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "count": {
                  "type": "number",
                  "description": "Number of records."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "spProductId": {
                        "type": "string",
                        "description": "Identifier of the Service Provider product the merchant belongs to."
                      },
                      "subMerchantId": {
                        "type": "string",
                        "description": "Unique identifier of the submerchant."
                      },
                      "customerId": {
                        "type": "string",
                        "description": "Unique identifier of the customer."
                      },
                      "invoiceId": {
                        "type": "string",
                        "description": "Unique identifier of the invoice."
                      },
                      "invoiceNumber": {
                        "type": "string",
                        "description": "Invoice number displayed to the customer."
                      },
                      "date": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Invoice issue date (ISO 8601)."
                      },
                      "paymentTerm": {
                        "type": "string",
                        "description": "Payment terms shown on the invoice (for example, `Due Upon Receipt`)."
                      },
                      "dueDate": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Date payment is due (ISO 8601)."
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "description": {
                              "type": "string",
                              "description": "Description of the line item."
                            },
                            "quantity": {
                              "type": "number",
                              "description": "Number of units."
                            },
                            "amount": {
                              "type": "number",
                              "description": "Price per unit."
                            },
                            "_id": {
                              "type": "string",
                              "description": "Internal document identifier."
                            }
                          }
                        },
                        "description": "Line items included in the total amount."
                      },
                      "totalAmount": {
                        "type": "number",
                        "description": "The total amount."
                      },
                      "status": {
                        "type": "string",
                        "description": "Current status."
                      },
                      "isSent": {
                        "type": "boolean",
                        "description": "Whether the invoice has been sent."
                      },
                      "isViewed": {
                        "type": "boolean",
                        "description": "Whether the customer viewed the invoice."
                      },
                      "logs": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "message": {
                              "type": "string",
                              "description": "Human-readable result message."
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time",
                              "description": "Timestamp when the object was created (ISO 8601)."
                            },
                            "metadata": {
                              "type": "object",
                              "properties": {
                                "transactionId": {
                                  "type": "string",
                                  "description": "Unique identifier of the original transaction."
                                }
                              },
                              "description": "Key-value pairs you can attach for your own use. Returned with the object and searchable via the Query API as `metadata.<key>`."
                            }
                          }
                        },
                        "description": "Event log entries."
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Timestamp when the object was created (ISO 8601)."
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Timestamp when the object was last updated (ISO 8601)."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "criteria": {
                      "type": "object",
                      "description": "Filter criteria applied, keyed by field path."
                    },
                    "options": {
                      "type": "object",
                      "description": "Query options: pagination, sorting, and field projection."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findAllQuerySubscriptions": {
        "description": "Find Subscriptions",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "_id": {
                        "type": "string",
                        "description": "Internal document identifier."
                      },
                      "facId": {
                        "type": "string",
                        "description": "Facilitator identifier assigned by Jupico."
                      },
                      "spProductId": {
                        "type": "string",
                        "description": "Identifier of the Service Provider product the merchant belongs to."
                      },
                      "subMerchantId": {
                        "type": "string",
                        "description": "Unique identifier of the submerchant."
                      },
                      "subscriptionId": {
                        "type": "string",
                        "description": "Unique identifier of the subscription."
                      },
                      "planId": {
                        "type": "string",
                        "description": "Unique identifier of the subscription plan."
                      },
                      "schedules": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "scheduleId": {
                              "type": "string",
                              "description": "Identifier of the plan schedule the subscription uses."
                            },
                            "order": {
                              "type": "integer",
                              "description": "Display order, starting at 1."
                            },
                            "label": {
                              "type": "string",
                              "description": "Display label for this schedule."
                            },
                            "invoiceDescription": {
                              "type": "string",
                              "description": "Description shown on invoices generated by this schedule."
                            },
                            "frequency": {
                              "type": "string",
                              "description": "Billing frequency."
                            },
                            "cyclesQty": {
                              "type": "integer",
                              "description": "Number of billing cycles before the schedule ends."
                            },
                            "executionDays": {
                              "type": "array",
                              "items": {
                                "type": "integer"
                              },
                              "description": "Days on which scheduled charges execute."
                            },
                            "discount": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean",
                                  "description": "Whether this setting is enabled."
                                },
                                "percentage": {
                                  "type": "integer",
                                  "description": "Discount percentage."
                                }
                              },
                              "description": "Discount applied to the schedule."
                            },
                            "pricingModel": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "description": "The type."
                                },
                                "free": {
                                  "type": "object",
                                  "properties": {
                                    "daysQty": {
                                      "type": "integer",
                                      "description": "Number of free days before billing begins."
                                    }
                                  },
                                  "description": "Free trial configuration."
                                },
                                "flat": {
                                  "type": "object",
                                  "properties": {
                                    "price": {
                                      "type": "integer",
                                      "description": "Price charged each billing cycle."
                                    }
                                  },
                                  "description": "Flat pricing: a fixed price per billing cycle."
                                }
                              },
                              "description": "Pricing model configuration for this schedule."
                            },
                            "enabled": {
                              "type": "boolean",
                              "description": "Whether this setting is enabled."
                            }
                          }
                        },
                        "description": "Billing schedules for the plan."
                      },
                      "executions": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "executionId": {
                              "type": "string",
                              "description": "Identifier of the billing execution."
                            },
                            "date": {
                              "type": "string",
                              "format": "date-time",
                              "description": "Invoice issue date (ISO 8601)."
                            },
                            "amount": {
                              "type": "integer",
                              "description": "The amount of the transaction."
                            },
                            "pricingModel": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "description": "The type."
                                },
                                "free": {
                                  "type": "object",
                                  "properties": {
                                    "daysQty": {
                                      "type": "integer",
                                      "description": "Number of free days before billing begins."
                                    }
                                  },
                                  "description": "Free trial configuration."
                                },
                                "flat": {
                                  "type": "object",
                                  "properties": {
                                    "price": {
                                      "type": "integer",
                                      "description": "Price charged each billing cycle."
                                    }
                                  },
                                  "description": "Flat pricing: a fixed price per billing cycle."
                                }
                              },
                              "description": "Pricing model configuration for this schedule."
                            },
                            "scheduleId": {
                              "type": "string",
                              "description": "Identifier of the plan schedule the subscription uses."
                            },
                            "transactionId": {
                              "type": "string",
                              "description": "Unique identifier of the original transaction."
                            },
                            "invoiceId": {
                              "type": "string",
                              "description": "Unique identifier of the invoice."
                            },
                            "status": {
                              "type": "string",
                              "description": "Current status."
                            }
                          }
                        },
                        "description": "Billing executions for this subscription."
                      },
                      "startDate": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Optional first payment date (YYYY-MM-DD). If omitted, payments start immediately."
                      },
                      "status": {
                        "type": "string",
                        "description": "Current status."
                      },
                      "customerId": {
                        "type": "string",
                        "description": "Unique identifier of the customer."
                      },
                      "token": {
                        "type": "string",
                        "description": "The token value."
                      },
                      "nextExecution": {
                        "type": "object",
                        "properties": {
                          "executionId": {
                            "type": "string",
                            "description": "Identifier of the billing execution."
                          },
                          "date": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Invoice issue date (ISO 8601)."
                          },
                          "amount": {
                            "type": "integer",
                            "description": "The amount of the transaction."
                          },
                          "pricingModel": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "description": "The type."
                              },
                              "free": {
                                "type": "object",
                                "properties": {
                                  "daysQty": {
                                    "type": "integer",
                                    "description": "Number of free days before billing begins."
                                  }
                                },
                                "description": "Free trial configuration."
                              },
                              "flat": {
                                "type": "object",
                                "properties": {
                                  "price": {
                                    "type": "integer",
                                    "description": "Price charged each billing cycle."
                                  }
                                },
                                "description": "Flat pricing: a fixed price per billing cycle."
                              }
                            },
                            "description": "Pricing model configuration for this schedule."
                          },
                          "scheduleId": {
                            "type": "string",
                            "description": "Identifier of the plan schedule the subscription uses."
                          },
                          "transactionId": {
                            "type": "string",
                            "description": "Unique identifier of the original transaction."
                          },
                          "invoiceId": {
                            "type": "string",
                            "description": "Unique identifier of the invoice."
                          },
                          "status": {
                            "type": "string",
                            "description": "Current status."
                          }
                        },
                        "description": "Next scheduled billing execution."
                      },
                      "creditCard": {
                        "type": "object",
                        "properties": {
                          "_id": {
                            "type": "string",
                            "description": "Internal document identifier."
                          },
                          "facId": {
                            "type": "string",
                            "description": "Facilitator identifier assigned by Jupico."
                          },
                          "subMerchantId": {
                            "type": "string",
                            "description": "Unique identifier of the submerchant."
                          },
                          "token": {
                            "type": "string",
                            "description": "The token value."
                          },
                          "cardHolderName": {
                            "type": "string",
                            "description": "Name of the cardholder."
                          },
                          "expirationMonth": {
                            "type": "string",
                            "description": "Two-digit expiration month (01-12)."
                          },
                          "expirationYear": {
                            "type": "string",
                            "description": "Two-digit expiration year."
                          },
                          "cardLogo": {
                            "type": "string",
                            "description": "Card brand logo identifier."
                          },
                          "truncatedCardNumber": {
                            "type": "string",
                            "description": "Masked card number."
                          }
                        },
                        "description": "Credit card acceptance settings."
                      }
                    }
                  },
                  "description": "The response payload."
                }
              }
            }
          }
        }
      },
      "queryInstallments": {
        "description": "Find Installments",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "installmentId": {
                        "type": "string",
                        "description": "Unique identifier of the installment plan."
                      },
                      "subMerchantId": {
                        "type": "string",
                        "description": "Unique identifier of the submerchant."
                      },
                      "customerId": {
                        "type": "string",
                        "description": "Unique identifier of the customer."
                      },
                      "status": {
                        "type": "string",
                        "description": "Current status."
                      },
                      "totalAmount": {
                        "type": "number",
                        "description": "The total amount."
                      },
                      "deposit": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "number",
                            "description": "Deposit amount. Use 0 for no deposit."
                          }
                        },
                        "description": "Optional deposit charged at creation time."
                      },
                      "payments": {
                        "type": "object",
                        "properties": {
                          "startDate": {
                            "type": "string",
                            "nullable": true,
                            "description": "Optional first payment date (YYYY-MM-DD). If omitted, payments start immediately."
                          },
                          "frequency": {
                            "type": "string",
                            "description": "How often installment payments are charged."
                          },
                          "amount": {
                            "type": "number",
                            "description": "Amount charged per installment payment."
                          },
                          "qty": {
                            "type": "integer",
                            "description": "Number of installment payments."
                          }
                        },
                        "description": "Recurring payment schedule configuration."
                      },
                      "executions": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "executionId": {
                              "type": "string",
                              "description": "Identifier of the billing execution."
                            },
                            "date": {
                              "type": "string",
                              "format": "date-time",
                              "description": "Invoice issue date (ISO 8601)."
                            },
                            "amount": {
                              "type": "number",
                              "description": "The amount of the transaction."
                            },
                            "transactionId": {
                              "type": "string",
                              "description": "Unique identifier of the original transaction."
                            },
                            "status": {
                              "type": "string",
                              "description": "Current status."
                            }
                          }
                        },
                        "description": "Billing executions for this subscription."
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Timestamp when the object was created (ISO 8601)."
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true,
                        "description": "Timestamp when the object was last updated (ISO 8601)."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "count": {
                  "type": "number",
                  "description": "Number of records."
                },
                "query": {
                  "type": "object",
                  "properties": {
                    "criteria": {
                      "type": "object",
                      "description": "Filter criteria applied, keyed by field path."
                    }
                  },
                  "description": "Echo of the query envelope that produced this result."
                }
              }
            }
          }
        }
      },
      "findAllPlans": {
        "description": "Find Plans",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "_id": {
                        "type": "string",
                        "description": "Internal document identifier."
                      },
                      "facId": {
                        "type": "string",
                        "description": "Facilitator identifier assigned by Jupico."
                      },
                      "spProductId": {
                        "type": "string",
                        "description": "Identifier of the Service Provider product the merchant belongs to."
                      },
                      "subMerchantId": {
                        "type": "string",
                        "description": "Unique identifier of the submerchant."
                      },
                      "planId": {
                        "type": "string",
                        "description": "Unique identifier of the subscription plan."
                      },
                      "hostedSession": {
                        "type": "object",
                        "properties": {
                          "hostedSessionId": {
                            "type": "string",
                            "description": "Identifier of the hosted session."
                          },
                          "url": {
                            "type": "string",
                            "description": "URL of the hosted page for this object."
                          }
                        },
                        "description": "Configuration for the hosted payment page."
                      },
                      "name": {
                        "type": "string",
                        "description": "Display name."
                      },
                      "description": {
                        "type": "string",
                        "description": "Free-text description."
                      },
                      "schedules": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "scheduleId": {
                              "type": "string",
                              "description": "Identifier of the plan schedule the subscription uses."
                            },
                            "order": {
                              "type": "integer",
                              "description": "Display order, starting at 1."
                            },
                            "label": {
                              "type": "string",
                              "description": "Display label for this schedule."
                            },
                            "invoiceDescription": {
                              "type": "string",
                              "description": "Description shown on invoices generated by this schedule."
                            },
                            "frequency": {
                              "type": "string",
                              "description": "Billing frequency."
                            },
                            "cyclesQty": {
                              "type": "integer",
                              "description": "Number of billing cycles before the schedule ends."
                            },
                            "executionDays": {
                              "type": "array",
                              "items": {
                                "type": "integer"
                              },
                              "description": "Days on which scheduled charges execute."
                            },
                            "unit": {
                              "type": "string",
                              "description": "Unit label for usage-based pricing."
                            },
                            "discount": {
                              "type": "object",
                              "properties": {
                                "percentage": {
                                  "type": "integer",
                                  "description": "Discount percentage."
                                }
                              },
                              "description": "Discount applied to the schedule."
                            },
                            "pricingModel": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "description": "The type."
                                },
                                "free": {
                                  "type": "object",
                                  "properties": {
                                    "daysQty": {
                                      "type": "integer",
                                      "description": "Number of free days before billing begins."
                                    }
                                  },
                                  "description": "Free trial configuration."
                                },
                                "flat": {
                                  "type": "object",
                                  "properties": {
                                    "price": {
                                      "type": "number",
                                      "description": "Price charged each billing cycle."
                                    }
                                  },
                                  "description": "Flat pricing: a fixed price per billing cycle."
                                },
                                "flatTiered": {
                                  "type": "object",
                                  "properties": {
                                    "tiers": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "tierId": {
                                            "type": "string",
                                            "description": "Identifier of the tier."
                                          },
                                          "name": {
                                            "type": "string",
                                            "description": "Display name of the tier."
                                          },
                                          "description": {
                                            "type": "string",
                                            "description": "Description of the tier shown to the customer."
                                          },
                                          "price": {
                                            "type": "number",
                                            "description": "Price of the tier per billing cycle."
                                          },
                                          "featuresSettings": {
                                            "type": "object",
                                            "properties": {
                                              "label": {
                                                "type": "string",
                                                "description": "Heading displayed above the feature list."
                                              },
                                              "features": {
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "name": {
                                                      "type": "string",
                                                      "description": "Display name."
                                                    },
                                                    "description": {
                                                      "type": "string",
                                                      "description": "Free-text description."
                                                    }
                                                  }
                                                },
                                                "description": "Feature list displayed for this tier."
                                              }
                                            },
                                            "description": "Display settings for the tier's feature list."
                                          }
                                        }
                                      },
                                      "description": "Available tiers for this schedule."
                                    }
                                  },
                                  "description": "Flat pricing with selectable tiers."
                                },
                                "perModule": {
                                  "type": "object",
                                  "properties": {
                                    "modules": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "moduleId": {
                                            "type": "string",
                                            "description": "Identifier of the module."
                                          },
                                          "name": {
                                            "type": "string",
                                            "description": "Display name."
                                          },
                                          "description": {
                                            "type": "string",
                                            "description": "Free-text description."
                                          },
                                          "price": {
                                            "type": "number",
                                            "description": "Price per billing cycle."
                                          }
                                        }
                                      },
                                      "description": "Modules available for subscription."
                                    }
                                  },
                                  "description": "Per-module pricing: the customer subscribes to individual modules."
                                },
                                "perUsageQuantity": {
                                  "type": "object",
                                  "properties": {
                                    "unitPrice": {
                                      "type": "number",
                                      "description": "Price per unit of usage."
                                    }
                                  },
                                  "description": "Usage-based pricing with a single per-unit price."
                                },
                                "perUsageVolume": {
                                  "type": "object",
                                  "properties": {
                                    "steps": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "stepId": {
                                            "type": "string",
                                            "description": "Identifier of the volume step."
                                          },
                                          "startQty": {
                                            "type": "integer",
                                            "description": "First unit quantity this step applies to."
                                          },
                                          "endQty": {
                                            "type": "integer",
                                            "description": "Last unit quantity this step applies to."
                                          },
                                          "unitPrice": {
                                            "type": "number",
                                            "description": "Price per unit within this volume step."
                                          }
                                        }
                                      },
                                      "description": "Volume pricing steps."
                                    }
                                  },
                                  "description": "Usage-based pricing where the unit price depends on total volume."
                                },
                                "perUsageTiered": {
                                  "type": "object",
                                  "properties": {
                                    "tiers": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "tierId": {
                                            "type": "string",
                                            "description": "Identifier of the tier."
                                          },
                                          "name": {
                                            "type": "string",
                                            "description": "Display name of the tier."
                                          },
                                          "description": {
                                            "type": "string",
                                            "description": "Description of the tier shown to the customer."
                                          },
                                          "unitPrice": {
                                            "type": "number",
                                            "description": "Price per unit."
                                          },
                                          "quantitySettings": {
                                            "type": "object",
                                            "properties": {
                                              "tiers": {
                                                "type": "array",
                                                "items": {
                                                  "type": "integer"
                                                },
                                                "description": "Available tiers for this schedule."
                                              }
                                            },
                                            "description": "Quantity settings for the pricing model."
                                          }
                                        }
                                      },
                                      "description": "Available tiers for this schedule."
                                    }
                                  },
                                  "description": "Usage-based pricing with tiered rates per volume step."
                                }
                              },
                              "description": "Pricing model configuration for this schedule."
                            }
                          }
                        },
                        "description": "Billing schedules for the plan."
                      },
                      "status": {
                        "type": "string",
                        "description": "Current status."
                      },
                      "subscribersQuantity": {
                        "type": "integer",
                        "description": "Number of active subscribers on this plan."
                      },
                      "subMerchantDbaName": {
                        "type": "string",
                        "description": "DBA name of the submerchant that owns the plan."
                      }
                    }
                  },
                  "description": "The response payload."
                }
              }
            }
          }
        }
      },
      "findPlanById": {
        "description": "Find Plan By Id",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "plan": {
                      "type": "object",
                      "properties": {
                        "_id": {
                          "type": "string",
                          "description": "Internal document identifier."
                        },
                        "facId": {
                          "type": "string",
                          "description": "Facilitator identifier assigned by Jupico."
                        },
                        "spProductId": {
                          "type": "string",
                          "description": "Identifier of the Service Provider product the merchant belongs to."
                        },
                        "subMerchantId": {
                          "type": "string",
                          "description": "Unique identifier of the submerchant."
                        },
                        "planId": {
                          "type": "string",
                          "description": "Unique identifier of the subscription plan."
                        },
                        "hostedSession": {
                          "type": "object",
                          "properties": {
                            "hostedSessionId": {
                              "type": "string",
                              "description": "Identifier of the hosted session."
                            },
                            "url": {
                              "type": "string",
                              "description": "URL of the hosted page for this object."
                            }
                          },
                          "description": "Configuration for the hosted payment page."
                        },
                        "name": {
                          "type": "string",
                          "description": "Display name."
                        },
                        "description": {
                          "type": "string",
                          "description": "Free-text description."
                        },
                        "title": {
                          "type": "string",
                          "description": "Title."
                        },
                        "subTitle": {
                          "type": "string",
                          "description": "Subtitle displayed under the plan title."
                        },
                        "schedules": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "scheduleId": {
                                "type": "string",
                                "description": "Identifier of the plan schedule the subscription uses."
                              },
                              "order": {
                                "type": "integer",
                                "description": "Display order, starting at 1."
                              },
                              "label": {
                                "type": "string",
                                "description": "Display label for this schedule."
                              },
                              "invoiceDescription": {
                                "type": "string",
                                "description": "Description shown on invoices generated by this schedule."
                              },
                              "frequency": {
                                "type": "string",
                                "description": "Billing frequency."
                              },
                              "cyclesQty": {
                                "type": "integer",
                                "description": "Number of billing cycles before the schedule ends."
                              },
                              "executionDays": {
                                "type": "array",
                                "items": {
                                  "type": "integer"
                                },
                                "description": "Days on which scheduled charges execute."
                              },
                              "unit": {
                                "type": "string",
                                "description": "Unit label for usage-based pricing."
                              },
                              "discount": {
                                "type": "object",
                                "properties": {
                                  "percentage": {
                                    "type": "integer",
                                    "description": "Discount percentage."
                                  }
                                },
                                "description": "Discount applied to the schedule."
                              },
                              "pricingModel": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "description": "The type."
                                  },
                                  "free": {
                                    "type": "object",
                                    "properties": {
                                      "daysQty": {
                                        "type": "integer",
                                        "description": "Number of free days before billing begins."
                                      }
                                    },
                                    "description": "Free trial configuration."
                                  }
                                },
                                "description": "Pricing model configuration for this schedule."
                              },
                              "enabled": {
                                "type": "boolean",
                                "description": "Whether this setting is enabled."
                              }
                            }
                          },
                          "description": "Billing schedules for the plan."
                        },
                        "cancelOptions": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Cancellation options offered to subscribers."
                        },
                        "status": {
                          "type": "string",
                          "description": "Current status."
                        },
                        "isDeleted": {
                          "type": "boolean",
                          "description": "Whether the record is soft-deleted."
                        },
                        "__v": {
                          "type": "integer",
                          "description": "Internal document version. Ignore."
                        },
                        "createdAt": {
                          "type": "string",
                          "description": "Timestamp when the object was created (ISO 8601)."
                        },
                        "updatedAt": {
                          "type": "string",
                          "description": "Timestamp when the object was last updated (ISO 8601)."
                        }
                      },
                      "description": "The plan object."
                    },
                    "subMerchant": {
                      "type": "object",
                      "properties": {
                        "_id": {
                          "type": "string",
                          "description": "Internal document identifier."
                        },
                        "facId": {
                          "type": "string",
                          "description": "Facilitator identifier assigned by Jupico."
                        },
                        "spProductId": {
                          "type": "string",
                          "description": "Identifier of the Service Provider product the merchant belongs to."
                        },
                        "subMerchantId": {
                          "type": "string",
                          "description": "Unique identifier of the submerchant."
                        },
                        "status": {
                          "type": "string",
                          "description": "Current status."
                        },
                        "blockDuplicates": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Whether this setting is enabled."
                            }
                          },
                          "description": "Duplicate-transaction blocking settings."
                        },
                        "transactionAmountLimit": {
                          "type": "integer",
                          "description": "Maximum amount per card transaction."
                        },
                        "eCheckAmountLimit": {
                          "type": "integer",
                          "description": "Maximum amount per eCheck transaction."
                        },
                        "fees": {
                          "type": "object",
                          "properties": {
                            "platform": {
                              "type": "object",
                              "properties": {
                                "perTransaction": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "object",
                                    "properties": {
                                      "discountRate": {
                                        "type": "number"
                                      },
                                      "fixed": {
                                        "type": "number"
                                      },
                                      "reverseFixed": {
                                        "type": "boolean"
                                      }
                                    }
                                  },
                                  "description": "Event-based fees, one entry per transaction event type."
                                },
                                "perPeriod": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "period": {
                                        "type": "string",
                                        "example": "daily",
                                        "description": "Billing period for this recurring fee."
                                      },
                                      "fixed": {
                                        "type": "number",
                                        "example": 3,
                                        "description": "Fixed fee amount charged each time this event occurs."
                                      },
                                      "since": {
                                        "type": "string",
                                        "format": "date-time",
                                        "example": "2025-08-01T03:00:00.000Z",
                                        "description": "Start of the window during which this fee applies (ISO 8601)."
                                      },
                                      "until": {
                                        "type": "string",
                                        "format": "date-time",
                                        "example": "2025-08-23T03:00:00.000Z",
                                        "description": "End of the window during which this fee applies (ISO 8601)."
                                      },
                                      "status": {
                                        "type": "string",
                                        "example": "enabled",
                                        "description": "Whether this recurring fee is currently active."
                                      },
                                      "isTriggerFirstTx": {
                                        "type": "boolean",
                                        "example": false,
                                        "description": "When true, the recurring fee starts only after the merchant processes their first transaction."
                                      },
                                      "isProrated": {
                                        "type": "boolean",
                                        "example": true,
                                        "description": "Whether the first billing period is prorated."
                                      }
                                    }
                                  },
                                  "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                                }
                              },
                              "description": "Fee configuration at the platform level."
                            },
                            "spProduct": {
                              "type": "object",
                              "properties": {
                                "perTransaction": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "object",
                                    "properties": {
                                      "discountRate": {
                                        "type": "number"
                                      },
                                      "fixed": {
                                        "type": "number"
                                      },
                                      "reverseFixed": {
                                        "type": "boolean"
                                      }
                                    }
                                  },
                                  "description": "Event-based fees, one entry per transaction event type."
                                },
                                "perPeriod": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "Recurring fees charged on a fixed schedule, such as monthly service fees."
                                },
                                "perIncident": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "Fees charged per incident."
                                }
                              },
                              "description": "Fee configuration at the Service Provider product level."
                            }
                          },
                          "description": "Fee configuration. Overrides values from the fees template."
                        },
                        "reserve": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Whether this setting is enabled."
                            },
                            "cap": {
                              "type": "integer",
                              "description": "Reserve cap amount."
                            },
                            "percentage": {
                              "type": "integer",
                              "description": "Discount percentage."
                            }
                          },
                          "description": "Reserve configuration."
                        },
                        "payout": {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "description": "Payout mode."
                            },
                            "frequency": {
                              "type": "string",
                              "description": "Billing frequency."
                            },
                            "executionDays": {
                              "type": "array",
                              "items": {
                                "type": "integer"
                              },
                              "description": "Days on which scheduled charges execute."
                            }
                          },
                          "description": "Payout configuration."
                        },
                        "subMerchantApplicationId": {
                          "type": "string",
                          "description": "Identifier of the merchant application."
                        },
                        "payoutBankAccounts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "accountRouting": {
                                "type": "string",
                                "description": "9-digit ABA routing number."
                              },
                              "accountNumber": {
                                "type": "string",
                                "description": "Bank account number."
                              },
                              "accountType": {
                                "type": "string",
                                "description": "Bank account type, such as `checking`."
                              },
                              "entityType": {
                                "type": "string",
                                "description": "Entity type of the account holder."
                              },
                              "nameOnAccount": {
                                "type": "string",
                                "description": "Name on the bank account."
                              },
                              "status": {
                                "type": "string",
                                "description": "Current status."
                              },
                              "isPreferred": {
                                "type": "boolean",
                                "description": "Whether this is the preferred account for payouts."
                              },
                              "processor": {
                                "type": "object",
                                "properties": {
                                  "stripe": {
                                    "type": "object",
                                    "properties": {
                                      "status": {
                                        "type": "string",
                                        "description": "Current status."
                                      }
                                    },
                                    "description": "Stripe processor configuration."
                                  }
                                },
                                "description": "Processor configuration."
                              },
                              "bankAccountToken": {
                                "type": "string",
                                "description": "Token of the bank account that receives the payout."
                              },
                              "isDeleted": {
                                "type": "boolean",
                                "description": "Whether the record is soft-deleted."
                              }
                            }
                          },
                          "description": "Bank accounts where the merchant receives payouts."
                        },
                        "email": {
                          "type": "string",
                          "description": "Email address."
                        },
                        "mobileNumber": {
                          "type": "string",
                          "description": "Mobile number (numeric only)."
                        },
                        "processor": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "description": "The type."
                            },
                            "simulator": {
                              "type": "object",
                              "properties": {
                                "merchantId": {
                                  "type": "string",
                                  "description": "Merchant identifier at the processor."
                                },
                                "status": {
                                  "type": "string",
                                  "description": "Current status."
                                }
                              },
                              "description": "Simulator processor configuration (Sandbox)."
                            },
                            "cybersource": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean",
                                  "description": "Whether this setting is enabled."
                                }
                              },
                              "description": "CyberSource processor configuration."
                            },
                            "fiserv": {
                              "type": "object",
                              "properties": {
                                "url": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "URL of the hosted page for this object."
                                }
                              },
                              "description": "Fiserv processor configuration."
                            },
                            "stripe": {
                              "type": "object",
                              "properties": {
                                "owners": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "Business owners."
                                }
                              },
                              "description": "Stripe processor configuration."
                            }
                          },
                          "description": "Processor configuration."
                        },
                        "identity": {
                          "type": "object",
                          "properties": {
                            "business": {
                              "type": "object",
                              "properties": {
                                "legalName": {
                                  "type": "string",
                                  "description": "Registered legal name of the business."
                                },
                                "dbaName": {
                                  "type": "string",
                                  "description": "The merchant's doing-business-as name. Appears on customer statements unless overridden."
                                },
                                "tinType": {
                                  "type": "string",
                                  "description": "Type of tax identification number: `SSN`, `EIN`, or `Other`."
                                },
                                "federalTaxId": {
                                  "type": "string",
                                  "description": "Federal tax ID, 9 digits."
                                },
                                "phoneNumber": {
                                  "type": "string",
                                  "description": "Business phone number."
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "streetNum": {
                                      "type": "string",
                                      "description": "Street number."
                                    },
                                    "streetName": {
                                      "type": "string",
                                      "description": "Street name."
                                    },
                                    "city": {
                                      "type": "string",
                                      "description": "City name."
                                    },
                                    "state": {
                                      "type": "string",
                                      "description": "Two-letter US state code."
                                    },
                                    "postalCode": {
                                      "type": "string",
                                      "description": "ZIP or postal code."
                                    },
                                    "country": {
                                      "type": "string",
                                      "description": "Two-letter ISO country code."
                                    },
                                    "type": {
                                      "type": "string",
                                      "description": "The type."
                                    }
                                  },
                                  "description": "Registered business address."
                                },
                                "websiteUrl": {
                                  "type": "string",
                                  "description": "Business website URL."
                                },
                                "ownershipType": {
                                  "type": "string",
                                  "description": "Legal structure of the business."
                                },
                                "businessEstablishedDate": {
                                  "type": "string",
                                  "description": "Date the business was established (YYYY-MM-DD)."
                                },
                                "expectedMonthlyVolume": {
                                  "type": "integer",
                                  "description": "Expected monthly processing volume, used in underwriting."
                                },
                                "mccCode": {
                                  "type": "string",
                                  "description": "Four-digit merchant category code (MCC) that classifies the business."
                                },
                                "businessType": {
                                  "type": "string",
                                  "description": "Business type classification."
                                },
                                "irsStatus": {
                                  "type": "string",
                                  "description": "IRS TIN-matching status."
                                }
                              },
                              "description": "Business identity details."
                            },
                            "contacts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "firstName": {
                                    "type": "string",
                                    "description": "First name."
                                  },
                                  "lastName": {
                                    "type": "string",
                                    "description": "Last name."
                                  },
                                  "email": {
                                    "type": "string",
                                    "description": "Email address."
                                  },
                                  "phoneNumber": {
                                    "type": "string",
                                    "description": "Phone number."
                                  },
                                  "ssn": {
                                    "type": "string",
                                    "description": "Social Security number, 9 digits."
                                  },
                                  "birthDate": {
                                    "type": "string",
                                    "description": "Date of birth (YYYY-MM-DD)."
                                  },
                                  "position": {
                                    "type": "string",
                                    "description": "Role of the owner in the business."
                                  },
                                  "_id": {
                                    "type": "string",
                                    "description": "Internal document identifier."
                                  }
                                }
                              },
                              "description": "Contacts for the business."
                            },
                            "acceptedCards": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "description": "The type."
                                  }
                                }
                              },
                              "description": "Card brands the merchant accepts."
                            }
                          },
                          "description": "Identity details for the business and its owners."
                        },
                        "progress": {
                          "type": "object",
                          "properties": {
                            "isStartApplication": {
                              "type": "boolean",
                              "description": "Whether the merchant started the application."
                            },
                            "isCompleteProfile": {
                              "type": "boolean",
                              "description": "Whether the merchant completed their profile."
                            },
                            "isSubmit": {
                              "type": "boolean",
                              "description": "Whether the merchant submitted the application."
                            }
                          },
                          "description": "Onboarding progress flags."
                        },
                        "rules": {
                          "type": "object",
                          "properties": {
                            "knowYourBusiness": {
                              "type": "object",
                              "properties": {
                                "passed": {
                                  "type": "boolean",
                                  "description": "Whether the check passed."
                                },
                                "checksIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "Identifiers of the verification checks performed."
                                }
                              },
                              "description": "Know Your Business (KYB) verification results."
                            },
                            "payoutBankAccount": {
                              "type": "object",
                              "properties": {
                                "passed": {
                                  "type": "boolean",
                                  "description": "Whether the check passed."
                                },
                                "checksIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "Identifiers of the verification checks performed."
                                }
                              },
                              "description": "Payout bank account verification result."
                            },
                            "uniqueLocation": {
                              "type": "object",
                              "properties": {
                                "passed": {
                                  "type": "boolean",
                                  "description": "Whether the check passed."
                                },
                                "checksIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "Identifiers of the verification checks performed."
                                }
                              },
                              "description": "Unique-location verification result."
                            },
                            "acknowledged": {
                              "type": "object",
                              "properties": {
                                "passed": {
                                  "type": "boolean",
                                  "description": "Whether the check passed."
                                },
                                "checksIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "Identifiers of the verification checks performed."
                                }
                              },
                              "description": "Acknowledgement state of merchant agreements."
                            },
                            "merchantMonitoring": {
                              "type": "object",
                              "properties": {
                                "passed": {
                                  "type": "boolean",
                                  "description": "Whether the check passed."
                                },
                                "checksIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "Identifiers of the verification checks performed."
                                },
                                "score": {
                                  "type": "integer",
                                  "description": "Monitoring risk score."
                                }
                              },
                              "description": "Merchant monitoring results."
                            }
                          },
                          "description": "Risk and compliance rule results."
                        },
                        "tokenization": {
                          "type": "object",
                          "properties": {
                            "publicKey": {
                              "type": "string",
                              "description": "Public key used for tokenization."
                            }
                          },
                          "description": "Tokenization configuration."
                        },
                        "settings": {
                          "type": "object",
                          "properties": {
                            "branding": {
                              "type": "object",
                              "properties": {
                                "primaryColor": {
                                  "type": "string",
                                  "description": "Primary color (hex)."
                                },
                                "secondaryColor": {
                                  "type": "string",
                                  "description": "Secondary color (hex)."
                                },
                                "backgroundColor": {
                                  "type": "string",
                                  "description": "Background color (hex)."
                                },
                                "contrastColor": {
                                  "type": "string",
                                  "description": "Contrast color (hex)."
                                },
                                "textColor": {
                                  "type": "string",
                                  "description": "Text color (hex)."
                                }
                              },
                              "description": "Brand colors and logo for the hosted page."
                            },
                            "hostedSession": {
                              "type": "object",
                              "properties": {
                                "functions": {
                                  "type": "object",
                                  "properties": {
                                    "collectBillingAddress": {
                                      "type": "object",
                                      "properties": {
                                        "enabled": {
                                          "type": "boolean",
                                          "description": "Whether this setting is enabled."
                                        }
                                      },
                                      "description": "Collect the customer's billing address during checkout."
                                    },
                                    "collectShippingAddress": {
                                      "type": "object",
                                      "properties": {
                                        "enabled": {
                                          "type": "boolean",
                                          "description": "Whether this setting is enabled."
                                        }
                                      },
                                      "description": "Collect the customer's shipping address during checkout."
                                    },
                                    "collectEmail": {
                                      "type": "object",
                                      "properties": {
                                        "enabled": {
                                          "type": "boolean",
                                          "description": "Whether this setting is enabled."
                                        },
                                        "updateCustomer": {
                                          "type": "boolean",
                                          "description": "When true, the collected value is saved to the customer record."
                                        }
                                      },
                                      "description": "Collect the customer's email address during checkout."
                                    },
                                    "collectPhoneNumber": {
                                      "type": "object",
                                      "properties": {
                                        "enabled": {
                                          "type": "boolean",
                                          "description": "Whether this setting is enabled."
                                        }
                                      },
                                      "description": "Collect the customer's phone number during checkout."
                                    },
                                    "notes": {
                                      "type": "object",
                                      "properties": {
                                        "enabled": {
                                          "type": "boolean",
                                          "description": "Whether this setting is enabled."
                                        }
                                      },
                                      "description": "Free-text notes displayed on the hosted page."
                                    },
                                    "callToAction": {
                                      "type": "object",
                                      "properties": {
                                        "enabled": {
                                          "type": "boolean",
                                          "description": "Whether this setting is enabled."
                                        }
                                      },
                                      "description": "Customization of the pay button."
                                    }
                                  },
                                  "description": "Data-collection and display options for the hosted page."
                                },
                                "paymentMethods": {
                                  "type": "object",
                                  "properties": {
                                    "creditCard": {
                                      "type": "object",
                                      "properties": {
                                        "enabled": {
                                          "type": "boolean",
                                          "description": "Whether this setting is enabled."
                                        },
                                        "cards": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          },
                                          "description": "Card brands accepted."
                                        }
                                      },
                                      "description": "Credit card acceptance settings for the hosted page."
                                    },
                                    "eCheck": {
                                      "type": "object",
                                      "properties": {
                                        "enabled": {
                                          "type": "boolean",
                                          "description": "Whether this setting is enabled."
                                        },
                                        "accounts": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          },
                                          "description": "Bank account types accepted."
                                        }
                                      },
                                      "description": "eCheck (ACH) acceptance settings for the hosted page."
                                    },
                                    "applePay": {
                                      "type": "object",
                                      "properties": {
                                        "enabled": {
                                          "type": "boolean",
                                          "description": "Whether this setting is enabled."
                                        }
                                      },
                                      "description": "Apple Pay acceptance settings for the hosted page."
                                    },
                                    "googlePay": {
                                      "type": "object",
                                      "properties": {
                                        "enabled": {
                                          "type": "boolean",
                                          "description": "Whether this setting is enabled."
                                        }
                                      },
                                      "description": "Google Pay acceptance settings for the hosted page."
                                    }
                                  },
                                  "description": "Payment methods offered on the hosted page."
                                }
                              },
                              "description": "Configuration for the hosted payment page."
                            },
                            "invoice": {
                              "type": "object",
                              "properties": {
                                "invoiceNumber": {
                                  "type": "string",
                                  "description": "Invoice number displayed to the customer."
                                }
                              },
                              "description": "Invoice settings."
                            }
                          },
                          "description": "Merchant settings."
                        },
                        "logs": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Event log entries."
                        },
                        "tags": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Tags applied to the merchant."
                        },
                        "acknowledgedAt": {
                          "type": "string",
                          "description": "Timestamp when the merchant acknowledged (ISO 8601)."
                        },
                        "validations": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean",
                              "description": "Whether this setting is enabled."
                            },
                            "avs": {
                              "type": "object",
                              "properties": {
                                "addressNumber": {
                                  "type": "boolean",
                                  "description": "AVS result for the street number."
                                },
                                "addressPostalCode": {
                                  "type": "boolean",
                                  "description": "AVS result for the postal code."
                                }
                              },
                              "description": "Address Verification Service (AVS) results."
                            },
                            "cvv": {
                              "type": "object",
                              "properties": {
                                "cvcCheck": {
                                  "type": "boolean",
                                  "description": "Result of the card verification code check."
                                }
                              },
                              "description": "CVV check result."
                            }
                          },
                          "description": "Verification results returned by the issuer."
                        },
                        "createdAt": {
                          "type": "string",
                          "description": "Timestamp when the object was created (ISO 8601)."
                        }
                      },
                      "description": "The submerchant object."
                    }
                  },
                  "description": "The response payload."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                }
              }
            }
          }
        }
      },
      "findProvisioningApplications": {
        "description": "Retrieve provisioning applications",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "smApplicationId": {
                        "type": "string",
                        "description": "Unique identifier of the merchant application. Must be exactly 24 characters."
                      },
                      "applicantId": {
                        "type": "string",
                        "description": "Unique identifier of the applicant. Must be exactly 24 characters."
                      },
                      "spProductId": {
                        "type": "string",
                        "description": "Identifier of the Service Provider product the merchant belongs to."
                      },
                      "status": {
                        "type": "string",
                        "description": "Current status."
                      },
                      "subMerchants": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "description": "Current status."
                            },
                            "identity": {
                              "type": "object",
                              "properties": {
                                "business": {
                                  "type": "object",
                                  "properties": {
                                    "legalName": {
                                      "type": "string",
                                      "description": "Registered legal name of the business."
                                    }
                                  },
                                  "description": "Business identity details."
                                }
                              },
                              "description": "Identity details for the business and its owners."
                            },
                            "subMerchantId": {
                              "type": "string",
                              "description": "Unique identifier of the submerchant."
                            }
                          }
                        },
                        "description": "Submerchants under this application."
                      }
                    }
                  },
                  "description": "The response payload."
                },
                "count": {
                  "type": "integer",
                  "description": "Number of records."
                }
              }
            }
          }
        }
      },
      "getExchangeRates": {
        "description": "Exchange rates for the requested base currency.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "base": {
                      "type": "string",
                      "description": "Base currency the rates are quoted against."
                    },
                    "rates": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "number"
                      },
                      "description": "Rates keyed by 3-letter ISO 4217 currency code. Each value is the amount of that currency equal to one unit of the base currency."
                    },
                    "fetchedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "UTC timestamp of when the rates were retrieved from the rate provider."
                    }
                  },
                  "description": "The response payload."
                }
              }
            },
            "examples": {
              "getExchangeRatesResponse": {
                "$ref": "#/components/examples/getExchangeRatesResponse"
              }
            }
          }
        }
      },
      "convertCurrency": {
        "description": "The converted amount and the rate used.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "from": {
                      "type": "string",
                      "description": "Source currency the amount was converted from."
                    },
                    "to": {
                      "type": "string",
                      "description": "Target currency the amount was converted to."
                    },
                    "amount": {
                      "type": "number",
                      "description": "Original amount submitted, in the source currency."
                    },
                    "convertedAmount": {
                      "type": "number",
                      "description": "Converted amount in the target currency, rounded down to 2 decimal places."
                    },
                    "rate": {
                      "type": "number",
                      "description": "Exchange rate applied to the conversion."
                    },
                    "fetchedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "UTC timestamp of when the rate was retrieved from the rate provider."
                    }
                  },
                  "description": "The response payload."
                }
              }
            },
            "examples": {
              "convertCurrencyResponse": {
                "$ref": "#/components/examples/convertCurrencyResponse"
              }
            }
          }
        }
      },
      "getSupportedCurrencies": {
        "description": "The list of supported currency codes.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully. Declines return HTTP 200 with `success: false`."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "currencies": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Supported 3-letter ISO 4217 currency codes, sorted alphabetically."
                    }
                  },
                  "description": "The response payload."
                }
              }
            },
            "examples": {
              "getSupportedCurrenciesResponse": {
                "$ref": "#/components/examples/getSupportedCurrenciesResponse"
              }
            }
          }
        }
      },
      "transactionReceipt": {
        "description": "Receipt data for the transaction.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "description": "Whether the request was processed successfully."
                },
                "status": {
                  "type": "string",
                  "description": "Result status of the request, such as `succeeded`."
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "transactionId": {
                      "type": "string",
                      "description": "Identifier of the transaction."
                    },
                    "referenceId": {
                      "type": "string",
                      "description": "Your reference for the transaction, if one was sent."
                    },
                    "invoiceNumber": {
                      "type": "string",
                      "description": "Invoice number recorded on the transaction."
                    },
                    "approvalNumber": {
                      "type": "string",
                      "description": "Approval number returned by the processor."
                    },
                    "status": {
                      "type": "string",
                      "description": "Status of the transaction, such as `succeeded`."
                    },
                    "operation": {
                      "type": "string",
                      "description": "Operation the receipt covers, such as `sale`, `refund`, or `void`."
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Date and time the transaction was processed."
                    },
                    "amount": {
                      "type": "number",
                      "description": "Amount to show on the receipt. For an approved transaction this is the remaining balance when the transaction tracks one (for example, a sale that has been partially refunded), otherwise the original amount. A declined transaction always shows the original amount."
                    },
                    "currency": {
                      "type": "string",
                      "description": "Currency of the transaction. Defaults to `USD` when the transaction does not record one.",
                      "example": "USD"
                    },
                    "taxAmount": {
                      "type": "number",
                      "description": "Tax amount recorded on the transaction."
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string",
                            "description": "Description of the line item."
                          },
                          "quantity": {
                            "type": "number",
                            "description": "Number of units."
                          },
                          "amount": {
                            "type": "number",
                            "description": "Price per unit."
                          },
                          "taxRate": {
                            "type": "number",
                            "description": "Tax rate applied to this line item, as a percentage."
                          }
                        }
                      },
                      "description": "Line items recorded on the transaction."
                    },
                    "merchant": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Sub-merchant's DBA name."
                        },
                        "address": {
                          "type": "string",
                          "description": "Sub-merchant's business address as a single line: street, city, state, postal code, and country."
                        },
                        "phone": {
                          "type": "string",
                          "description": "Sub-merchant's business phone number."
                        },
                        "website": {
                          "type": "string",
                          "description": "Sub-merchant's business website."
                        }
                      },
                      "description": "Business details of the sub-merchant that took the payment."
                    },
                    "customer": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Billing name, falling back to the cardholder or account holder name when no billing name was sent."
                        },
                        "email": {
                          "type": "string",
                          "description": "Billing email address."
                        },
                        "phone": {
                          "type": "string",
                          "description": "Billing phone number."
                        },
                        "address": {
                          "type": "string",
                          "description": "Billing address as a single line: address, city, state, ZIP code, and country."
                        }
                      },
                      "description": "Customer details taken from the transaction's billing information."
                    },
                    "paymentMethod": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "Payment method used, such as `creditCard` or `eCheck`."
                        },
                        "brand": {
                          "type": "string",
                          "description": "Card brand. Cards only."
                        },
                        "last4": {
                          "type": "string",
                          "description": "Last 4 digits of the card number or of the bank account number."
                        },
                        "cardHolderName": {
                          "type": "string",
                          "description": "Name on the card. Cards only."
                        },
                        "accountType": {
                          "type": "string",
                          "description": "Bank account type, such as `checking`. eCheck only."
                        }
                      },
                      "description": "How the transaction was paid. Brand and cardholder name are present for cards; account type is present for eCheck."
                    },
                    "description": {
                      "type": "string",
                      "description": "Description recorded on the transaction."
                    }
                  },
                  "description": "The receipt payload. A field is omitted when the transaction does not carry a value for it."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable result message."
                },
                "error": {
                  "type": "object",
                  "description": "Error detail. Absent on a successful request."
                }
              }
            }
          }
        }
      },
      "bankAccountTokenizeRaw": {
        "description": "Bank account tokenized.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean",
                  "example": true,
                  "description": "Whether the request was processed successfully."
                },
                "code": {
                  "type": "string",
                  "example": "0",
                  "description": "Machine-readable result code. See the Error Codes reference."
                },
                "message": {
                  "type": "string",
                  "example": "Tokenization success",
                  "description": "Human-readable result message."
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "paymentToken": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "echeck",
                          "description": "Payment method type. Always `echeck` for bank accounts."
                        },
                        "token": {
                          "type": "object",
                          "properties": {
                            "provider": {
                              "type": "string",
                              "example": "jupico",
                              "description": "Token provider. Always `jupico`."
                            },
                            "token": {
                              "type": "string",
                              "format": "uuid",
                              "example": "8b728fb4-976c-43c1-8402-04c23ac18861",
                              "description": "Permanent bank account token. Send it in `paymentToken.token.token` on eCheck sales."
                            },
                            "accountType": {
                              "type": "string",
                              "example": "checking",
                              "description": "Bank account type: `checking` or `savings`."
                            },
                            "routingLast4Digits": {
                              "type": "string",
                              "example": "7238",
                              "description": "Last 4 digits of the routing number."
                            },
                            "accountLast4Digits": {
                              "type": "string",
                              "example": "2311",
                              "description": "Last 4 digits of the bank account number."
                            },
                            "accountHolderName": {
                              "type": "string",
                              "example": "John Doe",
                              "description": "Name on the bank account, as stored when the token was first created."
                            },
                            "alias": {
                              "type": "string",
                              "description": "Friendly name stored with the token. Present only if the token was created with an `alias` through the deprecated endpoint."
                            }
                          },
                          "description": "The bank account token and its non-sensitive details."
                        }
                      },
                      "description": "Permanent payment token to use in place of the raw bank account details."
                    }
                  },
                  "description": "The response payload."
                }
              }
            },
            "example": {
              "success": true,
              "code": "0",
              "message": "Tokenization success",
              "data": {
                "paymentToken": {
                  "type": "echeck",
                  "token": {
                    "provider": "jupico",
                    "token": "8b728fb4-976c-43c1-8402-04c23ac18861",
                    "accountType": "checking",
                    "routingLast4Digits": "7238",
                    "accountLast4Digits": "2311",
                    "accountHolderName": "John Doe"
                  }
                }
              }
            }
          }
        }
      }
    },
    "parameters": {
      "subMerchantId": {
        "in": "path",
        "name": "subMerchantId",
        "required": true,
        "schema": {
          "type": "integer",
          "minimum": 1
        },
        "description": "The user ID",
        "examples": {
          "Example Id": {
            "value": 874767775
          }
        }
      },
      "transactionIdQuery": {
        "in": "query",
        "name": "transactionId",
        "required": true,
        "schema": {
          "type": "integer",
          "minimum": 1
        },
        "description": "Transaction ID",
        "examples": {
          "Example Id": {
            "value": 89622790
          }
        }
      },
      "transactionId": {
        "in": "path",
        "name": "transactionId",
        "required": true,
        "schema": {
          "type": "integer",
          "minimum": 1
        },
        "description": "Transaction ID",
        "examples": {
          "Example Id": {
            "value": 89622790
          }
        }
      },
      "customerId": {
        "in": "path",
        "name": "customerId",
        "required": true,
        "schema": {
          "type": "string"
        },
        "description": "Customer ID",
        "examples": {
          "Example Id": {
            "value": "606b00c5a8657321ee2067c9"
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "examples": {
      "createPayout": {
        "summary": "Create a manual payouts example",
        "value": {
          "amount": 100,
          "bankAccountToken": "36373c28d4da12feb9bb54fd3753d434:41dec2092b58351f55ad26fa5d75035ddb9fcef4ca767b5cdbf45074cf652402",
          "subMerchantId": "874767775004"
        }
      },
      "voidPayout": {
        "summary": "Voids a manual payouts example",
        "value": {
          "subMerchantId": "874767775004",
          "payoutId": "36373c28d4da12feb9bb54fd3753d434:41dec2092b58351f55ad26fa5d75035ddb9fcef4ca767b5cdbf45074cf652402"
        }
      },
      "ccSaleMostBasicCall": {
        "summary": "Only basic parameters",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "paymentToken": {
            "type": "creditcard",
            "token": {
              "provider": "jupico",
              "token": "5dd19881-b437-42b0-9c9b-7773ebb598eb"
            }
          },
          "amount": 40,
          "cardHolderInitiated": true,
          "metadata": {
            "test": "test"
          }
        }
      },
      "ccSaleCommercialLevel2": {
        "summary": "Commercial level 2",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "cardHolderInitiated": true,
          "amount": 44,
          "paymentToken": {
            "type": "creditcard",
            "token": {
              "provider": "jupico",
              "token": "5dd19881-b437-42b0-9c9b-7773ebb598eb"
            }
          },
          "cvv": "123",
          "description": "Hamburguer",
          "taxAmount": 4,
          "billing": {
            "name": "Joe Smith",
            "email": "accounting@companyinc.com",
            "phone": "123123123",
            "address": "123 Silent Hill",
            "city": "Danbury",
            "state": "CT",
            "country": "US",
            "zipCode": "12345"
          },
          "shipping": {
            "address": "123 Silent Hill",
            "city": "Batavia",
            "state": "OH",
            "country": "US",
            "zipCode": "50403"
          },
          "items": [
            {
              "description": "Hamburguer",
              "quantity": 4,
              "amount": 10,
              "taxRate": 10
            }
          ],
          "metadata": {
            "test": "test"
          }
        }
      },
      "ccSaleCommercialLevel3": {
        "summary": "Commercial level 3",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "cardHolderInitiated": true,
          "amount": 44,
          "paymentToken": {
            "type": "creditcard",
            "token": {
              "provider": "jupico",
              "token": "5dd19881-b437-42b0-9c9b-7773ebb598eb"
            }
          },
          "cvv": "123",
          "description": "Hamburguer",
          "taxAmount": 4,
          "poNumber": "123",
          "billing": {
            "name": "Joe Smith",
            "email": "accounting@companyinc.com",
            "phone": "123123123",
            "address": "123 Silent Hill",
            "city": "Danbury",
            "state": "CT",
            "country": "US",
            "zipCode": "12345"
          },
          "shipping": {
            "address": "123 Silent Hill",
            "city": "Batavia",
            "state": "OH",
            "country": "US",
            "zipCode": "50403"
          },
          "items": [
            {
              "description": "Hamburguer",
              "quantity": 4,
              "amount": 10,
              "taxRate": 10
            }
          ],
          "metadata": {
            "test": "test"
          }
        }
      },
      "ccSaleFullExample": {
        "summary": "Full example",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "amount": 44,
          "paymentToken": {
            "type": "creditcard",
            "token": {
              "provider": "jupico",
              "token": "5dd19881-b437-42b0-9c9b-7773ebb598eb"
            }
          },
          "description": "CC Authorization",
          "cardHolderInitiated": true,
          "taxAmount": 4,
          "referenceId": "2b174787-bb93-40a4-8343-c7c9785c11a2",
          "invoiceNumber": "123",
          "poNumber": "123456",
          "cvv": "123",
          "billing": {
            "address": "123 Silent Hill",
            "city": "Danbury",
            "zipCode": "12345",
            "state": "CT",
            "country": "US",
            "email": "mail@mail.com",
            "name": "John Doe",
            "phone": "123123123"
          },
          "shipping": {
            "address": "123 Silent Hill",
            "city": "Danbury",
            "zipCode": "12345",
            "state": "CT",
            "country": "US",
            "email": "mail@mail.com",
            "name": "John Doe",
            "phone": "123123123"
          },
          "items": [
            {
              "description": "Hamburguer",
              "quantity": 4,
              "amount": 10,
              "taxRate": 10
            }
          ],
          "metadata": {
            "test": "test"
          }
        }
      },
      "ccAuthMostBasicCall": {
        "summary": "Basic call",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "amount": 100,
          "paymentToken": {
            "type": "creditcard",
            "token": {
              "provider": "jupico",
              "token": "5dd19881-b437-42b0-9c9b-7773ebb598eb"
            }
          },
          "description": "CC Authorization",
          "cardHolderInitiated": true,
          "metadata": {
            "test": "test"
          }
        }
      },
      "ccAuthFullExample": {
        "summary": "Full example",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "amount": 45,
          "paymentToken": {
            "type": "creditcard",
            "token": {
              "provider": "jupico",
              "token": "5dd19881-b437-42b0-9c9b-7773ebb598eb"
            }
          },
          "description": "CC Authorization",
          "cardHolderInitiated": true,
          "taxAmount": 1.99,
          "referenceId": "2b174787-bb93-40a4-8343-c7c9785c11a2",
          "cvv": "123",
          "billing": {
            "address": "123 Silent Hill",
            "city": "Danbury",
            "zipCode": "12345",
            "state": "CT",
            "country": "US",
            "email": "mail@mail.com",
            "name": "John Doe",
            "phone": "123123123"
          },
          "shipping": {
            "address": "123 Silent Hill",
            "city": "Danbury",
            "zipCode": "12345",
            "state": "CT",
            "country": "US",
            "email": "mail@mail.com",
            "name": "John Doe",
            "phone": "123123123"
          },
          "metadata": {
            "test": "test"
          }
        }
      },
      "ccAvs": {
        "summary": "Example request",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "billing": {
            "address": "123 Silent Hill",
            "city": "Danbury",
            "zipCode": "12345",
            "state": "CT",
            "country": "US",
            "email": "mail@mail.com",
            "name": "John Doe",
            "phone": "123123123"
          },
          "metadata": {
            "test": "test"
          }
        }
      },
      "ccCapture": {
        "summary": "Example request",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "amount": 50,
          "description": "CC Capture",
          "transactionId": "You need to change *this* with transactionId from AUTHORIZATION operation",
          "taxAmount": 4.5,
          "taxWithHold": false,
          "metadata": {
            "test": "test"
          }
        }
      },
      "ccRefund": {
        "summary": "Example request basic",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "transactionId": "You need to change *this* with transactionId from SALE operation",
          "amount": 10.03,
          "description": "Refund item returned #broken",
          "metadata": {
            "test": "test"
          }
        }
      },
      "ccRefundTaxWithHold": {
        "summary": "Example request as tax with hold",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "transactionId": "You need to change *this* with transactionId from SALE operation",
          "amount": 10.03,
          "description": "Refund item returned #broken",
          "taxAmountRelease": 4.5,
          "taxWithHoldRelease": true,
          "metadata": {
            "test": "test"
          }
        }
      },
      "ccRollback": {
        "summary": "Example request",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "amount": "You need to change *this* with amount from the operation that you are trying to rollback",
          "description": "reversal item returned",
          "paymentToken": {
            "type": "creditcard",
            "token": {
              "provider": "jupico",
              "token": "5dd19881-b437-42b0-9c9b-7773ebb598eb"
            }
          },
          "metadata": {
            "test": "test"
          }
        }
      },
      "ccVoid": {
        "summary": "Example request",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "transactionId": "You need to change *this* with transactionId from operation",
          "description": "Void OP",
          "metadata": {
            "test": "test"
          }
        }
      },
      "eCheckSale": {
        "summary": "Example request",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "amount": 11.24,
          "paymentToken": {
            "type": "echeck",
            "token": {
              "provider": "jupico",
              "token": "8b728fb4-976c-43c1-8402-04c23ac18861"
            }
          },
          "description": "Hamburger Check",
          "customerId": "5e669f03003e68007c42bb04",
          "taxAmount": 1.99,
          "checkNumber": "12345678",
          "checkType": "personal",
          "billing": {
            "address": "123 Silent Hill",
            "city": "Danbury",
            "zipCode": "12345",
            "state": "CT",
            "country": "US",
            "email": "mail@mail.com",
            "name": "John Doe",
            "phone": "123123123"
          },
          "shipping": {
            "address": "123 Silent Hill",
            "city": "Danbury",
            "zipCode": "12345",
            "state": "CT",
            "country": "US",
            "email": "mail@mail.com",
            "name": "John Doe",
            "phone": "123123123"
          },
          "metadata": {
            "test": "test"
          }
        }
      },
      "eCheckTokenize": {
        "summary": "Example request",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "accountHolderName": "John Doe",
          "accountType": "savings",
          "accountNumber": "12312311",
          "routingNumber": "122187238",
          "alias": "Main savings"
        }
      },
      "ccRawTokenize": {
        "summary": "Raw credit card tokenization example",
        "value": {
          "subMerchantId": "rlockbox-md-1",
          "CardHolderName": "Test raw tokenization",
          "CreditCardNumber": "4242424242424242",
          "Cvv": "123",
          "ExpirationDate": {
            "ExpirationMonth": "01",
            "ExpirationYear": "30"
          }
        }
      },
      "eCheckCredit": {
        "summary": "Example request",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "amount": 11.24,
          "description": "Hamburger Check",
          "taxAmount": 1.99,
          "paymentToken": {
            "type": "echeck",
            "token": {
              "provider": "jupico",
              "token": "8b728fb4-976c-43c1-8402-04c23ac18861"
            }
          },
          "metadata": {
            "test": "test"
          }
        }
      },
      "eCheckVoid": {
        "summary": "Example request",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "transactionId": "You need to change *this* with token from SALE operation",
          "description": "Void OP",
          "metadata": {
            "test": "test"
          }
        }
      },
      "eCheckRefund": {
        "summary": "Example request",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "transactionId": "You need to change *this* with token from SALE operation that is already PROCESSED",
          "description": "Refund item returned #broken",
          "metadata": {
            "test": "test"
          }
        }
      },
      "eCheckRollback": {
        "summary": "Example request",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "amount": "You need to change *this* with amount from the operation that you are trying to rollback",
          "description": "reversal item returned",
          "paymentToken": {
            "type": "echeck",
            "token": {
              "provider": "jupico",
              "token": "8b728fb4-976c-43c1-8402-04c23ac18861"
            }
          },
          "metadata": {
            "test": "test"
          }
        }
      },
      "createCustomer": {
        "summary": "Example request",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "name": "John Rambo",
          "email": "johndoe@jdoe.com",
          "phone": "+14155550123"
        }
      },
      "updateCustomer": {
        "summary": "Example request",
        "value": {
          "customerId": "",
          "subMerchantId": "jpt-sim-md-1",
          "name": "John Doe 33",
          "email": "johndoe@jdoe.com",
          "phone": "+14155550123"
        }
      },
      "deleteCustomer": {
        "summary": "Example request",
        "value": {
          "customerId": "",
          "subMerchantId": "jpt-sim-md-1"
        }
      },
      "findOneCustomer": {
        "summary": "Example request",
        "value": {
          "success": true,
          "data": {
            "billingAddress": {
              "address": "123 Silent Hill",
              "city": "Danbury",
              "state": "CT",
              "zipCode": "12345"
            },
            "email": "johndoe@jdoe.com",
            "phone": "012345678",
            "isDeleted": false,
            "_id": "606b00c5a8657321ee2067c9",
            "subMerchantId": "jpt-sim-md-1",
            "name": "John Doe 33",
            "creditCards": [],
            "bankAccounts": [],
            "createdAt": "2021-04-05T12:21:25.267Z"
          }
        }
      },
      "getExchangeRates": {
        "summary": "Rates for a single target currency",
        "value": {
          "base": "USD",
          "symbols": [
            "GBP"
          ]
        }
      },
      "getExchangeRatesResponse": {
        "summary": "Rates retrieved successfully",
        "value": {
          "success": true,
          "message": "succeeded",
          "code": "0",
          "data": {
            "base": "USD",
            "rates": {
              "GBP": 0.7845
            },
            "fetchedAt": "2026-08-14T16:20:45.331Z"
          }
        }
      },
      "convertCurrency": {
        "summary": "Convert 250.00 USD to GBP",
        "value": {
          "from": "USD",
          "to": "GBP",
          "amount": 250.0
        }
      },
      "convertCurrencyResponse": {
        "summary": "Amount converted successfully",
        "value": {
          "success": true,
          "message": "succeeded",
          "code": "0",
          "data": {
            "from": "USD",
            "to": "GBP",
            "amount": 250,
            "convertedAmount": 196.12,
            "rate": 0.7845,
            "fetchedAt": "2026-08-14T16:20:45.331Z"
          }
        }
      },
      "getSupportedCurrencies": {
        "summary": "Empty request body",
        "value": {}
      },
      "getSupportedCurrenciesResponse": {
        "summary": "Supported currencies retrieved successfully",
        "value": {
          "success": true,
          "message": "succeeded",
          "code": "0",
          "data": {
            "currencies": [
              "AUD",
              "CAD",
              "CHF",
              "EUR",
              "GBP",
              "JPY",
              "USD"
            ]
          }
        }
      },
      "transactionReceipt": {
        "value": {
          "transactionId": "b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e",
          "subMerchantId": "jpt-sim-md-1",
          "responseFormat": "json"
        }
      },
      "bankAccountTokenizeRaw": {
        "summary": "Example request",
        "value": {
          "subMerchantId": "jpt-sim-md-1",
          "accountType": "checking",
          "accountHolderName": "John Doe",
          "accountNumber": "12312311",
          "routingNumber": "122187238"
        }
      }
    }
  }
}