{
  "components": {
    "schemas": {
      "AccountUpdateInput": {
        "properties": {
          "active": {
            "description": "Active",
            "type": "boolean"
          },
          "code": {
            "description": "Code",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "name": {
            "description": "Name",
            "type": "string"
          },
          "parent_name": {
            "description": "Parent",
            "type": "string"
          },
          "slot": {
            "description": "Slot",
            "type": "string"
          },
          "sub_type": {
            "description": "Sub Type",
            "type": "string"
          },
          "subsidiary_id": {
            "description": "Business entity or subsidiary identifier for multi-entity accounting. Leave blank when the tenant does not use subsidiaries.",
            "type": "string"
          },
          "type": {
            "description": "Type",
            "enum": [
              "asset",
              "liability",
              "equity",
              "revenue",
              "expense"
            ],
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "JournalEntryUpdateInput": {
        "properties": {
          "account_code": {
            "description": "Account Code",
            "type": "string"
          },
          "account_name": {
            "description": "Account Name",
            "type": "string"
          },
          "credit_amount": {
            "description": "Credit",
            "type": "string"
          },
          "debit_amount": {
            "description": "Debit",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "entry_date": {
            "description": "Date",
            "format": "date",
            "type": "string"
          },
          "line_memo": {
            "description": "Line Memo",
            "type": "string"
          },
          "memo": {
            "description": "Memo",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "draft",
              "posted",
              "void"
            ],
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "ItemUpdateInput": {
        "properties": {
          "active": {
            "description": "Active",
            "type": "boolean"
          },
          "asset_account_id": {
            "description": "Asset Account ID",
            "type": "string"
          },
          "class_id": {
            "description": "Class ID",
            "type": "string"
          },
          "cogs_account_id": {
            "description": "COGS Account ID",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "expense_account_id": {
            "description": "Expense Account ID",
            "type": "string"
          },
          "is_purchased": {
            "description": "Purchased",
            "type": "boolean"
          },
          "is_sold": {
            "description": "Sold",
            "type": "boolean"
          },
          "locations": {
            "description": "Locations",
            "items": {
              "properties": {
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "quantity_on_hand": {
                  "description": "Quantity on Hand",
                  "type": "string"
                },
                "reorder_point": {
                  "description": "Reorder Point",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "type": "object"
          },
          "name": {
            "description": "Name",
            "type": "string"
          },
          "preferred_vendor_id": {
            "description": "Preferred Vendor ID",
            "type": "string"
          },
          "purchase_cost": {
            "description": "Cost",
            "type": "string"
          },
          "quantity_on_hand": {
            "description": "Qty on Hand",
            "type": "string"
          },
          "reorder_point": {
            "description": "Reorder Point",
            "type": "string"
          },
          "revenue_account_id": {
            "description": "Revenue Account ID",
            "type": "string"
          },
          "sku": {
            "description": "SKU",
            "type": "string"
          },
          "subsidiary_id": {
            "description": "Subsidiary ID",
            "type": "string"
          },
          "track_inventory": {
            "description": "Track Inventory",
            "type": "boolean"
          },
          "type": {
            "description": "Type",
            "enum": [
              "good",
              "service"
            ],
            "type": "string"
          },
          "unit_label": {
            "description": "Unit",
            "type": "string"
          },
          "unit_price": {
            "description": "Price",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "InvoiceInput": {
        "properties": {
          "billing_address": {
            "description": "Billing Address",
            "type": "object"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "customer_name": {
            "description": "Customer Name",
            "type": "string"
          },
          "discount_details": {
            "description": "Discount Details",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "document_number": {
            "description": "Document Number",
            "type": "string"
          },
          "due_at": {
            "description": "Due At",
            "format": "date-time",
            "type": "string"
          },
          "issued_at": {
            "description": "Issued At",
            "format": "date-time",
            "type": "string"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_id": {
                  "description": "Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "amount_includes_tax": {
                  "description": "Amount Includes Tax",
                  "type": "boolean"
                },
                "billing_period_end": {
                  "description": "Billing Period End",
                  "format": "date-time",
                  "type": "string"
                },
                "billing_period_start": {
                  "description": "Billing Period Start",
                  "format": "date-time",
                  "type": "string"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "currency": {
                  "description": "Currency",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "detail": {
                  "description": "Line Detail",
                  "properties": {
                    "account_id": {
                      "description": "Account ID",
                      "type": "string"
                    },
                    "basis_amount": {
                      "description": "Basis Amount",
                      "type": "string"
                    },
                    "class_id": {
                      "description": "Class ID",
                      "type": "string"
                    },
                    "discount_amount": {
                      "description": "Discount Amount",
                      "type": "string"
                    },
                    "discount_percent": {
                      "description": "Discount Percent",
                      "type": "string"
                    },
                    "item_id": {
                      "description": "Item ID",
                      "type": "string"
                    },
                    "location_id": {
                      "description": "Location ID",
                      "type": "string"
                    },
                    "metadata": {
                      "description": "Metadata",
                      "type": "object"
                    },
                    "product": {
                      "description": "Product",
                      "type": "object"
                    },
                    "quantity": {
                      "description": "Quantity",
                      "type": "string"
                    },
                    "sku": {
                      "description": "SKU",
                      "type": "string"
                    },
                    "subtotal_amount": {
                      "description": "Subtotal Amount",
                      "type": "string"
                    },
                    "type": {
                      "description": "Detail Type",
                      "enum": [
                        "item",
                        "discount",
                        "subtotal",
                        "description_only"
                      ],
                      "type": "string"
                    },
                    "unit_amount": {
                      "description": "Unit Amount",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "discount_amount": {
                  "description": "Discount Amount",
                  "type": "string"
                },
                "fulfillment_line_ref": {
                  "description": "Fulfillment Line Ref",
                  "type": "string"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_ref": {
                  "description": "Line Ref",
                  "type": "string"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "order_line_ref": {
                  "description": "Order Line Ref",
                  "type": "string"
                },
                "product": {
                  "description": "Product",
                  "type": "object"
                },
                "product_id": {
                  "description": "Product ID",
                  "type": "string"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "sku": {
                  "description": "SKU",
                  "type": "string"
                },
                "subscription_item_id": {
                  "description": "Subscription Item ID",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "tax_details": {
                  "description": "Tax Details",
                  "items": {
                    "properties": {
                      "allocation_ref": {
                        "description": "Allocation Ref",
                        "type": "string"
                      },
                      "amount_includes_tax": {
                        "description": "Amount Includes Tax",
                        "type": "boolean"
                      },
                      "fulfillment_ref": {
                        "description": "Fulfillment Ref",
                        "type": "string"
                      },
                      "jurisdiction_code": {
                        "description": "Jurisdiction Code",
                        "type": "string"
                      },
                      "jurisdiction_level": {
                        "description": "Jurisdiction Level",
                        "type": "string"
                      },
                      "jurisdiction_name": {
                        "description": "Jurisdiction Name",
                        "type": "string"
                      },
                      "metadata": {
                        "description": "Metadata",
                        "type": "object"
                      },
                      "provider_detail_ref": {
                        "description": "Provider Detail Ref",
                        "type": "string"
                      },
                      "provider_key": {
                        "description": "Provider Key",
                        "type": "string"
                      },
                      "provider_tax_rate_ref": {
                        "description": "Provider Tax Rate Ref",
                        "type": "string"
                      },
                      "rate": {
                        "description": "Rate",
                        "type": "string"
                      },
                      "ship_from_ref": {
                        "description": "Ship From Ref",
                        "type": "string"
                      },
                      "ship_to_ref": {
                        "description": "Ship To Ref",
                        "type": "string"
                      },
                      "tax_amount": {
                        "description": "Tax Amount",
                        "type": "string"
                      },
                      "tax_code": {
                        "description": "Tax Code",
                        "type": "string"
                      },
                      "tax_detail_ref": {
                        "description": "Tax Detail Ref",
                        "type": "string"
                      },
                      "tax_name": {
                        "description": "Tax Name",
                        "type": "string"
                      },
                      "tax_type": {
                        "description": "Tax Type",
                        "type": "string"
                      },
                      "taxability_reason": {
                        "description": "Taxability Reason",
                        "type": "string"
                      },
                      "taxable_amount": {
                        "description": "Taxable Amount",
                        "type": "string"
                      }
                    },
                    "required": [
                      "tax_detail_ref",
                      "tax_amount",
                      "amount_includes_tax"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "tax_exempt_reason": {
                  "description": "Tax Exempt Reason",
                  "type": "string"
                },
                "tax_rate": {
                  "description": "Tax Rate",
                  "type": "string"
                },
                "tax_status": {
                  "description": "Tax Status",
                  "enum": [
                    "taxable",
                    "exempt",
                    "zero_rated",
                    "reverse_charge",
                    "not_applicable"
                  ],
                  "type": "string"
                },
                "taxable_amount": {
                  "description": "Taxable Amount",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "required": [
                "description",
                "amount"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "memo": {
            "description": "Optional memo or notes",
            "type": "string"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "ship_method": {
            "description": "Ship Method",
            "type": "string"
          },
          "shipping_address": {
            "description": "Shipping Address",
            "type": "object"
          },
          "shipping_details": {
            "description": "Shipping Details",
            "type": "object"
          },
          "status": {
            "description": "Status",
            "type": "string"
          },
          "tax_behavior": {
            "description": "Tax Behavior",
            "enum": [
              "inclusive",
              "exclusive"
            ],
            "type": "string"
          },
          "terms": {
            "description": "Terms",
            "type": "string"
          },
          "total_amount": {
            "description": "Total Amount",
            "type": "string"
          }
        },
        "required": [
          "currency",
          "total_amount",
          "lines"
        ],
        "type": "object"
      },
      "ListEnvelope": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/RecordEnvelope"
            },
            "type": "array"
          },
          "object": {
            "enum": [
              "list"
            ],
            "type": "string"
          },
          "pagination": {
            "$ref": "#/components/schemas/Pagination"
          }
        },
        "required": [
          "object",
          "data"
        ],
        "type": "object"
      },
      "AccountInput": {
        "properties": {
          "active": {
            "description": "Active",
            "type": "boolean"
          },
          "code": {
            "description": "Code",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "name": {
            "description": "Name",
            "type": "string"
          },
          "parent_name": {
            "description": "Parent",
            "type": "string"
          },
          "slot": {
            "description": "Slot",
            "type": "string"
          },
          "sub_type": {
            "description": "Sub Type",
            "type": "string"
          },
          "subsidiary_id": {
            "description": "Business entity or subsidiary identifier for multi-entity accounting. Leave blank when the tenant does not use subsidiaries.",
            "type": "string"
          },
          "type": {
            "description": "Type",
            "enum": [
              "asset",
              "liability",
              "equity",
              "revenue",
              "expense"
            ],
            "type": "string"
          }
        },
        "required": [
          "name",
          "type"
        ],
        "type": "object"
      },
      "DepositUpdateInput": {
        "properties": {
          "cashback_account_id": {
            "description": "Cash Back Account ID",
            "type": "string"
          },
          "cashback_amount": {
            "description": "Cash Back Amount",
            "type": "string"
          },
          "cashback_memo": {
            "description": "Cash Back Memo",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "deposit_date": {
            "description": "Deposit Date",
            "format": "date",
            "type": "string"
          },
          "deposit_to_account_code": {
            "description": "Deposit To Account Code",
            "type": "string"
          },
          "deposit_to_account_id": {
            "description": "Deposit To Account ID",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "document_number": {
            "description": "Document Number",
            "type": "string"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_code": {
                  "description": "Account Code",
                  "type": "string"
                },
                "account_id": {
                  "description": "Line Posting Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "check_number": {
                  "description": "Check Number",
                  "type": "string"
                },
                "currency": {
                  "description": "Currency",
                  "type": "string"
                },
                "customer_id": {
                  "description": "Customer ID",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_ref": {
                  "description": "Line Ref",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "payment_method": {
                  "description": "Payment Method",
                  "type": "string"
                },
                "reference_number": {
                  "description": "Reference Number",
                  "type": "string"
                },
                "source_document_id": {
                  "description": "Source Document ID",
                  "type": "string"
                },
                "source_document_number": {
                  "description": "Source Document Number",
                  "type": "string"
                },
                "source_document_type": {
                  "description": "Source Document Type",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "memo": {
            "description": "Memo",
            "type": "string"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "status": {
            "description": "Status",
            "enum": [
              "pending",
              "deposited",
              "void"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total Amount",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "CustomerInput": {
        "properties": {
          "address": {
            "description": "Address",
            "type": "object"
          },
          "billing_address": {
            "description": "Billing Address",
            "type": "object"
          },
          "category_ids": {
            "description": "Category IDs",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "company_name": {
            "description": "Company",
            "type": "string"
          },
          "credit_limit": {
            "description": "Credit Limit",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "email": {
            "description": "Email",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "name": {
            "description": "Name",
            "type": "string"
          },
          "phone": {
            "description": "Phone",
            "type": "string"
          },
          "price_level_id": {
            "description": "Identifier for the related price level record.",
            "type": "string"
          },
          "sales_rep_id": {
            "description": "Identifier for the related sales rep record.",
            "type": "string"
          },
          "shipping_address": {
            "description": "Shipping Address",
            "type": "object"
          },
          "tax_exempt": {
            "description": "Tax Exempt",
            "type": "boolean"
          },
          "tax_ids": {
            "description": "Government-issued tax identifiers for the customer, such as US EIN, SSN, or ITIN, or country-specific VAT, GST, or ABN registrations.",
            "items": {
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "InvoiceRecord": {
        "description": "A invoice record as returned by the API",
        "properties": {
          "billing_address": {
            "description": "Billing Address",
            "type": "object"
          },
          "connection_id": {
            "description": "Connection ID",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer": {
            "description": "Customer",
            "properties": {
              "email": {
                "description": "Customer Email",
                "type": "string"
              },
              "id": {
                "description": "Customer ID",
                "type": "string"
              },
              "metadata": {
                "description": "Customer Metadata",
                "type": "object"
              },
              "name": {
                "description": "Customer Name",
                "type": "string"
              }
            },
            "type": "object"
          },
          "discount_amount": {
            "description": "Discount Amount",
            "type": "string"
          },
          "discount_details": {
            "description": "Discount Details",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "document_number": {
            "description": "Document Number",
            "type": "string"
          },
          "due_at": {
            "description": "Due At",
            "format": "date-time",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "id": {
            "description": "Canonical ID",
            "type": "string"
          },
          "issued_at": {
            "description": "Issued At",
            "format": "date-time",
            "type": "string"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_id": {
                  "description": "Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "amount_includes_tax": {
                  "description": "Amount Includes Tax",
                  "type": "boolean"
                },
                "billing_period_end": {
                  "description": "Billing Period End",
                  "format": "date-time",
                  "type": "string"
                },
                "billing_period_start": {
                  "description": "Billing Period Start",
                  "format": "date-time",
                  "type": "string"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "currency": {
                  "description": "Currency",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "detail": {
                  "description": "Line Detail",
                  "properties": {
                    "account_id": {
                      "description": "Account ID",
                      "type": "string"
                    },
                    "basis_amount": {
                      "description": "Basis Amount",
                      "type": "string"
                    },
                    "class_id": {
                      "description": "Class ID",
                      "type": "string"
                    },
                    "discount_amount": {
                      "description": "Discount Amount",
                      "type": "string"
                    },
                    "discount_percent": {
                      "description": "Discount Percent",
                      "type": "string"
                    },
                    "item_id": {
                      "description": "Item ID",
                      "type": "string"
                    },
                    "location_id": {
                      "description": "Location ID",
                      "type": "string"
                    },
                    "metadata": {
                      "description": "Metadata",
                      "type": "object"
                    },
                    "product": {
                      "description": "Product",
                      "type": "object"
                    },
                    "quantity": {
                      "description": "Quantity",
                      "type": "string"
                    },
                    "sku": {
                      "description": "SKU",
                      "type": "string"
                    },
                    "subtotal_amount": {
                      "description": "Subtotal Amount",
                      "type": "string"
                    },
                    "type": {
                      "description": "Detail Type",
                      "enum": [
                        "item",
                        "discount",
                        "subtotal",
                        "description_only"
                      ],
                      "type": "string"
                    },
                    "unit_amount": {
                      "description": "Unit Amount",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "discount_amount": {
                  "description": "Discount Amount",
                  "type": "string"
                },
                "fulfillment_line_ref": {
                  "description": "Fulfillment Line Ref",
                  "type": "string"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_ref": {
                  "description": "Line Ref",
                  "type": "string"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "order_line_ref": {
                  "description": "Order Line Ref",
                  "type": "string"
                },
                "product": {
                  "description": "Product",
                  "type": "object"
                },
                "product_id": {
                  "description": "Product ID",
                  "type": "string"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "sku": {
                  "description": "SKU",
                  "type": "string"
                },
                "subscription_item_id": {
                  "description": "Subscription Item ID",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "tax_details": {
                  "description": "Tax Details",
                  "items": {
                    "properties": {
                      "allocation_ref": {
                        "description": "Allocation Ref",
                        "type": "string"
                      },
                      "amount_includes_tax": {
                        "description": "Amount Includes Tax",
                        "type": "boolean"
                      },
                      "fulfillment_ref": {
                        "description": "Fulfillment Ref",
                        "type": "string"
                      },
                      "jurisdiction_code": {
                        "description": "Jurisdiction Code",
                        "type": "string"
                      },
                      "jurisdiction_level": {
                        "description": "Jurisdiction Level",
                        "type": "string"
                      },
                      "jurisdiction_name": {
                        "description": "Jurisdiction Name",
                        "type": "string"
                      },
                      "metadata": {
                        "description": "Metadata",
                        "type": "object"
                      },
                      "provider_detail_ref": {
                        "description": "Provider Detail Ref",
                        "type": "string"
                      },
                      "provider_key": {
                        "description": "Provider Key",
                        "type": "string"
                      },
                      "provider_tax_rate_ref": {
                        "description": "Provider Tax Rate Ref",
                        "type": "string"
                      },
                      "rate": {
                        "description": "Rate",
                        "type": "string"
                      },
                      "ship_from_ref": {
                        "description": "Ship From Ref",
                        "type": "string"
                      },
                      "ship_to_ref": {
                        "description": "Ship To Ref",
                        "type": "string"
                      },
                      "tax_amount": {
                        "description": "Tax Amount",
                        "type": "string"
                      },
                      "tax_code": {
                        "description": "Tax Code",
                        "type": "string"
                      },
                      "tax_detail_ref": {
                        "description": "Tax Detail Ref",
                        "type": "string"
                      },
                      "tax_name": {
                        "description": "Tax Name",
                        "type": "string"
                      },
                      "tax_type": {
                        "description": "Tax Type",
                        "type": "string"
                      },
                      "taxability_reason": {
                        "description": "Taxability Reason",
                        "type": "string"
                      },
                      "taxable_amount": {
                        "description": "Taxable Amount",
                        "type": "string"
                      }
                    },
                    "required": [
                      "tax_detail_ref",
                      "tax_amount",
                      "amount_includes_tax"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "tax_exempt_reason": {
                  "description": "Tax Exempt Reason",
                  "type": "string"
                },
                "tax_rate": {
                  "description": "Tax Rate",
                  "type": "string"
                },
                "tax_status": {
                  "description": "Tax Status",
                  "enum": [
                    "taxable",
                    "exempt",
                    "zero_rated",
                    "reverse_charge",
                    "not_applicable"
                  ],
                  "type": "string"
                },
                "taxable_amount": {
                  "description": "Taxable Amount",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "required": [
                "description",
                "amount"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "ship_method": {
            "description": "Ship Method",
            "type": "string"
          },
          "shipping_address": {
            "description": "Shipping Address",
            "type": "object"
          },
          "shipping_details": {
            "description": "Shipping Details",
            "type": "object"
          },
          "source_id": {
            "description": "Source ID",
            "type": "string"
          },
          "source_system": {
            "description": "Source System",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "type": "string"
          },
          "subsidiary_id": {
            "description": "Subsidiary ID",
            "type": "string"
          },
          "subtotal": {
            "description": "Subtotal",
            "type": "string"
          },
          "tax_amount": {
            "description": "Tax Amount",
            "type": "string"
          },
          "tax_behavior": {
            "description": "Tax Behavior",
            "enum": [
              "inclusive",
              "exclusive"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total Amount",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "source_id",
          "source_system",
          "currency",
          "total_amount",
          "lines"
        ],
        "type": "object"
      },
      "BankTransferInput": {
        "properties": {
          "amount": {
            "description": "Amount",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "from_account_id": {
            "description": "From Account ID",
            "type": "string"
          },
          "memo": {
            "description": "Memo",
            "type": "string"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "status": {
            "description": "Status",
            "enum": [
              "draft",
              "approved",
              "void"
            ],
            "type": "string"
          },
          "to_account_id": {
            "description": "To Account ID",
            "type": "string"
          },
          "transfer_date": {
            "description": "Transfer Date",
            "format": "date",
            "type": "string"
          },
          "transfer_number": {
            "description": "Transfer Number",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency",
          "transfer_date",
          "from_account_id",
          "to_account_id"
        ],
        "type": "object"
      },
      "ItemInput": {
        "properties": {
          "active": {
            "description": "Active",
            "type": "boolean"
          },
          "asset_account_id": {
            "description": "Asset Account ID",
            "type": "string"
          },
          "class_id": {
            "description": "Class ID",
            "type": "string"
          },
          "cogs_account_id": {
            "description": "COGS Account ID",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "expense_account_id": {
            "description": "Expense Account ID",
            "type": "string"
          },
          "is_purchased": {
            "description": "Purchased",
            "type": "boolean"
          },
          "is_sold": {
            "description": "Sold",
            "type": "boolean"
          },
          "locations": {
            "description": "Locations",
            "items": {
              "properties": {
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "quantity_on_hand": {
                  "description": "Quantity on Hand",
                  "type": "string"
                },
                "reorder_point": {
                  "description": "Reorder Point",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "type": "object"
          },
          "name": {
            "description": "Name",
            "type": "string"
          },
          "preferred_vendor_id": {
            "description": "Preferred Vendor ID",
            "type": "string"
          },
          "purchase_cost": {
            "description": "Cost",
            "type": "string"
          },
          "quantity_on_hand": {
            "description": "Qty on Hand",
            "type": "string"
          },
          "reorder_point": {
            "description": "Reorder Point",
            "type": "string"
          },
          "revenue_account_id": {
            "description": "Revenue Account ID",
            "type": "string"
          },
          "sku": {
            "description": "SKU",
            "type": "string"
          },
          "subsidiary_id": {
            "description": "Subsidiary ID",
            "type": "string"
          },
          "track_inventory": {
            "description": "Track Inventory",
            "type": "boolean"
          },
          "type": {
            "description": "Type",
            "enum": [
              "good",
              "service"
            ],
            "type": "string"
          },
          "unit_label": {
            "description": "Unit",
            "type": "string"
          },
          "unit_price": {
            "description": "Price",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "SalesReceiptUpdateInput": {
        "properties": {
          "approval_status": {
            "description": "Approval Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "deposit_to_account_code": {
            "description": "Deposit Account Code",
            "type": "string"
          },
          "deposit_to_account_id": {
            "description": "Deposit Account ID",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "document_number": {
            "description": "Document Number",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "line_items": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_id": {
                  "description": "Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "amount_includes_tax": {
                  "description": "Amount Includes Tax",
                  "type": "boolean"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "currency": {
                  "description": "Currency",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "detail": {
                  "description": "Line Detail",
                  "properties": {
                    "account_id": {
                      "description": "Account ID",
                      "type": "string"
                    },
                    "basis_amount": {
                      "description": "Basis Amount",
                      "type": "string"
                    },
                    "class_id": {
                      "description": "Class ID",
                      "type": "string"
                    },
                    "discount_amount": {
                      "description": "Discount Amount",
                      "type": "string"
                    },
                    "discount_percent": {
                      "description": "Discount Percent",
                      "type": "string"
                    },
                    "item_id": {
                      "description": "Item ID",
                      "type": "string"
                    },
                    "location_id": {
                      "description": "Location ID",
                      "type": "string"
                    },
                    "metadata": {
                      "description": "Metadata",
                      "type": "object"
                    },
                    "product": {
                      "description": "Product",
                      "type": "object"
                    },
                    "quantity": {
                      "description": "Quantity",
                      "type": "string"
                    },
                    "sku": {
                      "description": "SKU",
                      "type": "string"
                    },
                    "subtotal_amount": {
                      "description": "Subtotal Amount",
                      "type": "string"
                    },
                    "type": {
                      "description": "Detail Type",
                      "enum": [
                        "item",
                        "discount",
                        "subtotal",
                        "description_only"
                      ],
                      "type": "string"
                    },
                    "unit_amount": {
                      "description": "Unit Amount",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "discount_amount": {
                  "description": "Discount Amount",
                  "type": "string"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_ref": {
                  "description": "Line Ref",
                  "type": "string"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "product": {
                  "description": "Product",
                  "type": "object"
                },
                "product_id": {
                  "description": "Product ID",
                  "type": "string"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "sku": {
                  "description": "SKU",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "tax_details": {
                  "description": "Tax Details",
                  "items": {
                    "properties": {
                      "allocation_ref": {
                        "description": "Allocation Ref",
                        "type": "string"
                      },
                      "amount_includes_tax": {
                        "description": "Amount Includes Tax",
                        "type": "boolean"
                      },
                      "fulfillment_ref": {
                        "description": "Fulfillment Ref",
                        "type": "string"
                      },
                      "jurisdiction_code": {
                        "description": "Jurisdiction Code",
                        "type": "string"
                      },
                      "jurisdiction_level": {
                        "description": "Jurisdiction Level",
                        "type": "string"
                      },
                      "jurisdiction_name": {
                        "description": "Jurisdiction Name",
                        "type": "string"
                      },
                      "metadata": {
                        "description": "Metadata",
                        "type": "object"
                      },
                      "provider_detail_ref": {
                        "description": "Provider Detail Ref",
                        "type": "string"
                      },
                      "provider_key": {
                        "description": "Provider Key",
                        "type": "string"
                      },
                      "provider_tax_rate_ref": {
                        "description": "Provider Tax Rate Ref",
                        "type": "string"
                      },
                      "rate": {
                        "description": "Rate",
                        "type": "string"
                      },
                      "ship_from_ref": {
                        "description": "Ship From Ref",
                        "type": "string"
                      },
                      "ship_to_ref": {
                        "description": "Ship To Ref",
                        "type": "string"
                      },
                      "tax_amount": {
                        "description": "Tax Amount",
                        "type": "string"
                      },
                      "tax_code": {
                        "description": "Tax Code",
                        "type": "string"
                      },
                      "tax_detail_ref": {
                        "description": "Tax Detail Ref",
                        "type": "string"
                      },
                      "tax_name": {
                        "description": "Tax Name",
                        "type": "string"
                      },
                      "tax_type": {
                        "description": "Tax Type",
                        "type": "string"
                      },
                      "taxability_reason": {
                        "description": "Taxability Reason",
                        "type": "string"
                      },
                      "taxable_amount": {
                        "description": "Taxable Amount",
                        "type": "string"
                      }
                    },
                    "required": [
                      "tax_detail_ref",
                      "tax_amount",
                      "amount_includes_tax"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "tax_exempt_reason": {
                  "description": "Tax Exempt Reason",
                  "type": "string"
                },
                "tax_rate": {
                  "description": "Tax Rate",
                  "type": "string"
                },
                "tax_status": {
                  "description": "Tax Status",
                  "enum": [
                    "taxable",
                    "exempt",
                    "zero_rated",
                    "reverse_charge",
                    "not_applicable"
                  ],
                  "type": "string"
                },
                "taxable_amount": {
                  "description": "Taxable Amount",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "location_id": {
            "description": "Location ID",
            "type": "string"
          },
          "memo": {
            "description": "Memo",
            "type": "string"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "payment_method": {
            "description": "Payment Method",
            "type": "string"
          },
          "receipt_date": {
            "description": "Receipt Date",
            "format": "date",
            "type": "string"
          },
          "register_id": {
            "description": "Register ID",
            "type": "string"
          },
          "revenue_account_id": {
            "description": "Revenue Account ID",
            "type": "string"
          },
          "sales_rep_id": {
            "description": "Sales Rep ID",
            "type": "string"
          },
          "ship_method": {
            "description": "Ship Method",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "type": "string"
          },
          "total_amount": {
            "description": "Total Amount",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "RefundReceiptUpdateInput": {
        "properties": {
          "charge_id": {
            "description": "Charge ID",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "document_number": {
            "description": "Number",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "net_amount": {
            "description": "Net Amount",
            "type": "string"
          },
          "payment_id": {
            "description": "Payment ID",
            "type": "string"
          },
          "reason": {
            "description": "Reason",
            "type": "string"
          },
          "refund_date": {
            "description": "Refund Date",
            "format": "date-time",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "pending",
              "succeeded",
              "failed",
              "canceled"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "BankAccountRecord": {
        "description": "A bank_account record as returned by the API",
        "properties": {
          "account_type": {
            "description": "Type",
            "enum": [
              "checking",
              "savings",
              "credit_card",
              "money_market",
              "other"
            ],
            "type": "string"
          },
          "available_balance": {
            "description": "Available Balance",
            "type": "string"
          },
          "balance_as_of": {
            "description": "Balance As Of",
            "format": "date-time",
            "type": "string"
          },
          "bank_account_id": {
            "description": "Provider-native ID for this resource. Backfill stores this as source_id on the canonical record.",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "current_balance": {
            "description": "Balance",
            "type": "string"
          },
          "gl_account_code": {
            "description": "GL Account Code",
            "type": "string"
          },
          "gl_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "type": "string"
          },
          "institution_name": {
            "description": "Institution",
            "type": "string"
          },
          "last_import_at": {
            "description": "Last Import",
            "format": "date-time",
            "type": "string"
          },
          "last_transaction_date": {
            "description": "Last Transaction Date",
            "format": "date",
            "type": "string"
          },
          "mask": {
            "description": "Mask",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "name": {
            "description": "Name",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "active",
              "inactive",
              "closed"
            ],
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "BankAccountInput": {
        "properties": {
          "account_type": {
            "description": "Type",
            "enum": [
              "checking",
              "savings",
              "credit_card",
              "money_market",
              "other"
            ],
            "type": "string"
          },
          "available_balance": {
            "description": "Available Balance",
            "type": "string"
          },
          "balance_as_of": {
            "description": "Balance As Of",
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "current_balance": {
            "description": "Balance",
            "type": "string"
          },
          "gl_account_code": {
            "description": "GL Account Code",
            "type": "string"
          },
          "gl_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "type": "string"
          },
          "institution_name": {
            "description": "Institution",
            "type": "string"
          },
          "last_import_at": {
            "description": "Last Import",
            "format": "date-time",
            "type": "string"
          },
          "last_transaction_date": {
            "description": "Last Transaction Date",
            "format": "date",
            "type": "string"
          },
          "mask": {
            "description": "Mask",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "name": {
            "description": "Name",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "active",
              "inactive",
              "closed"
            ],
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "VendorUpdateInput": {
        "properties": {
          "accounts_payable_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "format": "uuid",
            "type": "string"
          },
          "address": {
            "description": "Address",
            "type": "object"
          },
          "category_ids": {
            "description": "Category IDs",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "company_name": {
            "description": "Company",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "default_expense_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "format": "uuid",
            "type": "string"
          },
          "email": {
            "description": "Email",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "name": {
            "description": "Name",
            "type": "string"
          },
          "phone": {
            "description": "Phone",
            "type": "string"
          },
          "tax_ids": {
            "description": "Government-issued tax identifiers for the vendor, such as US EIN, SSN, or ITIN (used for 1099 reporting), or country-specific VAT, GST, or ABN registrations.",
            "items": {
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [],
        "type": "object"
      },
      "ExpenseInput": {
        "properties": {
          "amount": {
            "description": "Amount",
            "type": "string"
          },
          "category": {
            "description": "Category",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "expense_account_code": {
            "description": "Expense Account Code",
            "type": "string"
          },
          "expense_account_id": {
            "description": "Expense Account ID",
            "type": "string"
          },
          "expense_date": {
            "description": "Expense Date",
            "format": "date",
            "type": "string"
          },
          "form_1099_type": {
            "description": "1099 Form Type",
            "type": "string"
          },
          "is_1099_eligible": {
            "description": "1099 Eligible",
            "type": "boolean"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "amount_includes_tax": {
                  "description": "Amount Includes Tax",
                  "type": "boolean"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "detail": {
                  "description": "Line Detail",
                  "properties": {
                    "account_id": {
                      "description": "Account ID",
                      "type": "string"
                    },
                    "basis_amount": {
                      "description": "Basis Amount",
                      "type": "string"
                    },
                    "class_id": {
                      "description": "Class ID",
                      "type": "string"
                    },
                    "discount_amount": {
                      "description": "Discount Amount",
                      "type": "string"
                    },
                    "discount_percent": {
                      "description": "Discount Percent",
                      "type": "string"
                    },
                    "item_id": {
                      "description": "Item ID",
                      "type": "string"
                    },
                    "location_id": {
                      "description": "Location ID",
                      "type": "string"
                    },
                    "metadata": {
                      "description": "Metadata",
                      "type": "object"
                    },
                    "product": {
                      "description": "Product",
                      "type": "object"
                    },
                    "quantity": {
                      "description": "Quantity",
                      "type": "string"
                    },
                    "sku": {
                      "description": "SKU",
                      "type": "string"
                    },
                    "subtotal_amount": {
                      "description": "Subtotal Amount",
                      "type": "string"
                    },
                    "type": {
                      "description": "Detail Type",
                      "enum": [
                        "item",
                        "discount",
                        "subtotal",
                        "description_only"
                      ],
                      "type": "string"
                    },
                    "unit_amount": {
                      "description": "Unit Amount",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "expense_account_code": {
                  "description": "Expense Account Code",
                  "type": "string"
                },
                "expense_account_id": {
                  "description": "Expense Account ID",
                  "type": "string"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "tax_details": {
                  "description": "Tax Details",
                  "items": {
                    "properties": {
                      "allocation_ref": {
                        "description": "Allocation Ref",
                        "type": "string"
                      },
                      "amount_includes_tax": {
                        "description": "Amount Includes Tax",
                        "type": "boolean"
                      },
                      "fulfillment_ref": {
                        "description": "Fulfillment Ref",
                        "type": "string"
                      },
                      "jurisdiction_code": {
                        "description": "Jurisdiction Code",
                        "type": "string"
                      },
                      "jurisdiction_level": {
                        "description": "Jurisdiction Level",
                        "type": "string"
                      },
                      "jurisdiction_name": {
                        "description": "Jurisdiction Name",
                        "type": "string"
                      },
                      "metadata": {
                        "description": "Metadata",
                        "type": "object"
                      },
                      "provider_detail_ref": {
                        "description": "Provider Detail Ref",
                        "type": "string"
                      },
                      "provider_key": {
                        "description": "Provider Key",
                        "type": "string"
                      },
                      "provider_tax_rate_ref": {
                        "description": "Provider Tax Rate Ref",
                        "type": "string"
                      },
                      "rate": {
                        "description": "Rate",
                        "type": "string"
                      },
                      "ship_from_ref": {
                        "description": "Ship From Ref",
                        "type": "string"
                      },
                      "ship_to_ref": {
                        "description": "Ship To Ref",
                        "type": "string"
                      },
                      "tax_amount": {
                        "description": "Tax Amount",
                        "type": "string"
                      },
                      "tax_code": {
                        "description": "Tax Code",
                        "type": "string"
                      },
                      "tax_detail_ref": {
                        "description": "Tax Detail Ref",
                        "type": "string"
                      },
                      "tax_name": {
                        "description": "Tax Name",
                        "type": "string"
                      },
                      "tax_type": {
                        "description": "Tax Type",
                        "type": "string"
                      },
                      "taxability_reason": {
                        "description": "Taxability Reason",
                        "type": "string"
                      },
                      "taxable_amount": {
                        "description": "Taxable Amount",
                        "type": "string"
                      }
                    },
                    "required": [
                      "tax_detail_ref",
                      "tax_amount",
                      "amount_includes_tax"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "tax_exempt_reason": {
                  "description": "Tax Exempt Reason",
                  "type": "string"
                },
                "tax_rate": {
                  "description": "Tax Rate",
                  "type": "string"
                },
                "tax_status": {
                  "description": "Tax Status",
                  "enum": [
                    "taxable",
                    "exempt",
                    "zero_rated",
                    "reverse_charge",
                    "not_applicable"
                  ],
                  "type": "string"
                },
                "taxable_amount": {
                  "description": "Taxable Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "payment_account_id": {
            "description": "Payment Account ID",
            "type": "string"
          },
          "payment_method": {
            "description": "Payment Method",
            "type": "string"
          },
          "payment_method_details": {
            "description": "Payment Method Details",
            "type": "object"
          },
          "payment_method_type": {
            "description": "Payment Method Type",
            "enum": [
              "check",
              "credit_card",
              "ach",
              "cash",
              "wire",
              "other"
            ],
            "type": "string"
          },
          "status": {
            "description": "Status",
            "type": "string"
          },
          "tax_amount": {
            "description": "Tax Amount",
            "type": "string"
          },
          "vendor_id": {
            "description": "Vendor ID",
            "type": "string"
          },
          "vendor_name": {
            "description": "Vendor Name",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency"
        ],
        "type": "object"
      },
      "BillPaymentRecord": {
        "description": "A bill_payment record as returned by the API",
        "properties": {
          "allocations": {
            "description": "Allocations",
            "items": {
              "properties": {
                "allocated_on": {
                  "description": "Allocated On",
                  "format": "date",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "bill_id": {
                  "description": "Bill ID",
                  "type": "string"
                }
              },
              "required": [
                "bill_id",
                "amount"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "amount": {
            "description": "Amount",
            "type": "string"
          },
          "approval_status": {
            "description": "Approval Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "bill_id": {
            "description": "Bill ID",
            "type": "string"
          },
          "connection_id": {
            "description": "Connection ID",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "form_1099_type": {
            "description": "1099 Form Type",
            "type": "string"
          },
          "is_1099_eligible": {
            "description": "1099 Eligible",
            "type": "boolean"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "payment_date": {
            "description": "Payment Date",
            "format": "date",
            "type": "string"
          },
          "payment_method": {
            "description": "Payment Method",
            "type": "string"
          },
          "payment_method_details": {
            "description": "Payment Method Details",
            "type": "object"
          },
          "payment_method_type": {
            "description": "Payment Method Type",
            "enum": [
              "check",
              "credit_card",
              "ach",
              "cash",
              "wire",
              "other"
            ],
            "type": "string"
          },
          "payment_number": {
            "description": "Payment Number",
            "type": "string"
          },
          "source_id": {
            "description": "Source ID",
            "type": "string"
          },
          "source_system": {
            "description": "Source System",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "pending",
              "completed",
              "void"
            ],
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "vendor_id": {
            "description": "Vendor ID",
            "type": "string"
          }
        },
        "required": [
          "source_id",
          "source_system",
          "vendor_id",
          "amount",
          "currency",
          "status"
        ],
        "type": "object"
      },
      "ExpenseUpdateInput": {
        "properties": {
          "amount": {
            "description": "Amount",
            "type": "string"
          },
          "category": {
            "description": "Category",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "expense_account_code": {
            "description": "Expense Account Code",
            "type": "string"
          },
          "expense_account_id": {
            "description": "Expense Account ID",
            "type": "string"
          },
          "expense_date": {
            "description": "Expense Date",
            "format": "date",
            "type": "string"
          },
          "form_1099_type": {
            "description": "1099 Form Type",
            "type": "string"
          },
          "is_1099_eligible": {
            "description": "1099 Eligible",
            "type": "boolean"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "amount_includes_tax": {
                  "description": "Amount Includes Tax",
                  "type": "boolean"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "detail": {
                  "description": "Line Detail",
                  "properties": {
                    "account_id": {
                      "description": "Account ID",
                      "type": "string"
                    },
                    "basis_amount": {
                      "description": "Basis Amount",
                      "type": "string"
                    },
                    "class_id": {
                      "description": "Class ID",
                      "type": "string"
                    },
                    "discount_amount": {
                      "description": "Discount Amount",
                      "type": "string"
                    },
                    "discount_percent": {
                      "description": "Discount Percent",
                      "type": "string"
                    },
                    "item_id": {
                      "description": "Item ID",
                      "type": "string"
                    },
                    "location_id": {
                      "description": "Location ID",
                      "type": "string"
                    },
                    "metadata": {
                      "description": "Metadata",
                      "type": "object"
                    },
                    "product": {
                      "description": "Product",
                      "type": "object"
                    },
                    "quantity": {
                      "description": "Quantity",
                      "type": "string"
                    },
                    "sku": {
                      "description": "SKU",
                      "type": "string"
                    },
                    "subtotal_amount": {
                      "description": "Subtotal Amount",
                      "type": "string"
                    },
                    "type": {
                      "description": "Detail Type",
                      "enum": [
                        "item",
                        "discount",
                        "subtotal",
                        "description_only"
                      ],
                      "type": "string"
                    },
                    "unit_amount": {
                      "description": "Unit Amount",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "expense_account_code": {
                  "description": "Expense Account Code",
                  "type": "string"
                },
                "expense_account_id": {
                  "description": "Expense Account ID",
                  "type": "string"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "tax_details": {
                  "description": "Tax Details",
                  "items": {
                    "properties": {
                      "allocation_ref": {
                        "description": "Allocation Ref",
                        "type": "string"
                      },
                      "amount_includes_tax": {
                        "description": "Amount Includes Tax",
                        "type": "boolean"
                      },
                      "fulfillment_ref": {
                        "description": "Fulfillment Ref",
                        "type": "string"
                      },
                      "jurisdiction_code": {
                        "description": "Jurisdiction Code",
                        "type": "string"
                      },
                      "jurisdiction_level": {
                        "description": "Jurisdiction Level",
                        "type": "string"
                      },
                      "jurisdiction_name": {
                        "description": "Jurisdiction Name",
                        "type": "string"
                      },
                      "metadata": {
                        "description": "Metadata",
                        "type": "object"
                      },
                      "provider_detail_ref": {
                        "description": "Provider Detail Ref",
                        "type": "string"
                      },
                      "provider_key": {
                        "description": "Provider Key",
                        "type": "string"
                      },
                      "provider_tax_rate_ref": {
                        "description": "Provider Tax Rate Ref",
                        "type": "string"
                      },
                      "rate": {
                        "description": "Rate",
                        "type": "string"
                      },
                      "ship_from_ref": {
                        "description": "Ship From Ref",
                        "type": "string"
                      },
                      "ship_to_ref": {
                        "description": "Ship To Ref",
                        "type": "string"
                      },
                      "tax_amount": {
                        "description": "Tax Amount",
                        "type": "string"
                      },
                      "tax_code": {
                        "description": "Tax Code",
                        "type": "string"
                      },
                      "tax_detail_ref": {
                        "description": "Tax Detail Ref",
                        "type": "string"
                      },
                      "tax_name": {
                        "description": "Tax Name",
                        "type": "string"
                      },
                      "tax_type": {
                        "description": "Tax Type",
                        "type": "string"
                      },
                      "taxability_reason": {
                        "description": "Taxability Reason",
                        "type": "string"
                      },
                      "taxable_amount": {
                        "description": "Taxable Amount",
                        "type": "string"
                      }
                    },
                    "required": [
                      "tax_detail_ref",
                      "tax_amount",
                      "amount_includes_tax"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "tax_exempt_reason": {
                  "description": "Tax Exempt Reason",
                  "type": "string"
                },
                "tax_rate": {
                  "description": "Tax Rate",
                  "type": "string"
                },
                "tax_status": {
                  "description": "Tax Status",
                  "enum": [
                    "taxable",
                    "exempt",
                    "zero_rated",
                    "reverse_charge",
                    "not_applicable"
                  ],
                  "type": "string"
                },
                "taxable_amount": {
                  "description": "Taxable Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "payment_account_id": {
            "description": "Payment Account ID",
            "type": "string"
          },
          "payment_method": {
            "description": "Payment Method",
            "type": "string"
          },
          "payment_method_details": {
            "description": "Payment Method Details",
            "type": "object"
          },
          "payment_method_type": {
            "description": "Payment Method Type",
            "enum": [
              "check",
              "credit_card",
              "ach",
              "cash",
              "wire",
              "other"
            ],
            "type": "string"
          },
          "status": {
            "description": "Status",
            "type": "string"
          },
          "tax_amount": {
            "description": "Tax Amount",
            "type": "string"
          },
          "vendor_id": {
            "description": "Vendor ID",
            "type": "string"
          },
          "vendor_name": {
            "description": "Vendor Name",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "CreditMemoRecord": {
        "description": "A credit_memo record as returned by the API",
        "properties": {
          "applied_at": {
            "description": "Applied At",
            "format": "date-time",
            "type": "string"
          },
          "approval_status": {
            "description": "Approval Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "connection_id": {
            "description": "Connection ID",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "document_number": {
            "description": "Document Number",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "id": {
            "description": "Canonical ID",
            "type": "string"
          },
          "invoice_id": {
            "description": "Invoice ID",
            "type": "string"
          },
          "issued_at": {
            "description": "Issued At",
            "format": "date-time",
            "type": "string"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "amount_includes_tax": {
                  "description": "Amount Includes Tax",
                  "type": "boolean"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "currency": {
                  "description": "Currency",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "detail": {
                  "description": "Line Detail",
                  "properties": {
                    "account_id": {
                      "description": "Account ID",
                      "type": "string"
                    },
                    "basis_amount": {
                      "description": "Basis Amount",
                      "type": "string"
                    },
                    "class_id": {
                      "description": "Class ID",
                      "type": "string"
                    },
                    "discount_amount": {
                      "description": "Discount Amount",
                      "type": "string"
                    },
                    "discount_percent": {
                      "description": "Discount Percent",
                      "type": "string"
                    },
                    "item_id": {
                      "description": "Item ID",
                      "type": "string"
                    },
                    "location_id": {
                      "description": "Location ID",
                      "type": "string"
                    },
                    "metadata": {
                      "description": "Metadata",
                      "type": "object"
                    },
                    "product": {
                      "description": "Product",
                      "type": "object"
                    },
                    "quantity": {
                      "description": "Quantity",
                      "type": "string"
                    },
                    "sku": {
                      "description": "SKU",
                      "type": "string"
                    },
                    "subtotal_amount": {
                      "description": "Subtotal Amount",
                      "type": "string"
                    },
                    "type": {
                      "description": "Detail Type",
                      "enum": [
                        "item",
                        "discount",
                        "subtotal",
                        "description_only"
                      ],
                      "type": "string"
                    },
                    "unit_amount": {
                      "description": "Unit Amount",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "discount_amount": {
                  "description": "Discount Amount",
                  "type": "string"
                },
                "invoice_line_ref": {
                  "description": "Invoice Line Ref",
                  "type": "string"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_ref": {
                  "description": "Line Ref",
                  "type": "string"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "product": {
                  "description": "Product",
                  "type": "object"
                },
                "product_id": {
                  "description": "Product ID",
                  "type": "string"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "reason_code": {
                  "description": "Reason Code",
                  "type": "string"
                },
                "return_quantity": {
                  "description": "Return Quantity",
                  "type": "string"
                },
                "sku": {
                  "description": "SKU",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "tax_details": {
                  "description": "Tax Details",
                  "items": {
                    "properties": {
                      "allocation_ref": {
                        "description": "Allocation Ref",
                        "type": "string"
                      },
                      "amount_includes_tax": {
                        "description": "Amount Includes Tax",
                        "type": "boolean"
                      },
                      "fulfillment_ref": {
                        "description": "Fulfillment Ref",
                        "type": "string"
                      },
                      "jurisdiction_code": {
                        "description": "Jurisdiction Code",
                        "type": "string"
                      },
                      "jurisdiction_level": {
                        "description": "Jurisdiction Level",
                        "type": "string"
                      },
                      "jurisdiction_name": {
                        "description": "Jurisdiction Name",
                        "type": "string"
                      },
                      "metadata": {
                        "description": "Metadata",
                        "type": "object"
                      },
                      "provider_detail_ref": {
                        "description": "Provider Detail Ref",
                        "type": "string"
                      },
                      "provider_key": {
                        "description": "Provider Key",
                        "type": "string"
                      },
                      "provider_tax_rate_ref": {
                        "description": "Provider Tax Rate Ref",
                        "type": "string"
                      },
                      "rate": {
                        "description": "Rate",
                        "type": "string"
                      },
                      "ship_from_ref": {
                        "description": "Ship From Ref",
                        "type": "string"
                      },
                      "ship_to_ref": {
                        "description": "Ship To Ref",
                        "type": "string"
                      },
                      "tax_amount": {
                        "description": "Tax Amount",
                        "type": "string"
                      },
                      "tax_code": {
                        "description": "Tax Code",
                        "type": "string"
                      },
                      "tax_detail_ref": {
                        "description": "Tax Detail Ref",
                        "type": "string"
                      },
                      "tax_name": {
                        "description": "Tax Name",
                        "type": "string"
                      },
                      "tax_type": {
                        "description": "Tax Type",
                        "type": "string"
                      },
                      "taxability_reason": {
                        "description": "Taxability Reason",
                        "type": "string"
                      },
                      "taxable_amount": {
                        "description": "Taxable Amount",
                        "type": "string"
                      }
                    },
                    "required": [
                      "tax_detail_ref",
                      "tax_amount",
                      "amount_includes_tax"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "tax_exempt_reason": {
                  "description": "Tax Exempt Reason",
                  "type": "string"
                },
                "tax_rate": {
                  "description": "Tax Rate",
                  "type": "string"
                },
                "tax_status": {
                  "description": "Tax Status",
                  "enum": [
                    "taxable",
                    "exempt",
                    "zero_rated",
                    "reverse_charge",
                    "not_applicable"
                  ],
                  "type": "string"
                },
                "taxable_amount": {
                  "description": "Taxable Amount",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "reason_code": {
            "description": "Reason Code",
            "type": "string"
          },
          "refunded_at": {
            "description": "Refunded At",
            "format": "date-time",
            "type": "string"
          },
          "source_id": {
            "description": "Source ID",
            "type": "string"
          },
          "source_system": {
            "description": "Source System",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "open",
              "partially_applied",
              "applied",
              "void"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total Amount",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "source_id",
          "source_system",
          "status",
          "currency",
          "total_amount"
        ],
        "type": "object"
      },
      "BankTransactionUpdateInput": {
        "properties": {
          "amount": {
            "description": "Amount",
            "type": "string"
          },
          "bank_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "type": "string"
          },
          "category": {
            "description": "Category",
            "type": "string"
          },
          "check_number": {
            "description": "Check #",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Identifier for the related customer record.",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "expense_account_code": {
            "description": "Expense Account Code",
            "type": "string"
          },
          "expense_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "type": "string"
          },
          "merchant_name": {
            "description": "Merchant",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "posted_at": {
            "description": "Posted",
            "format": "date-time",
            "type": "string"
          },
          "reference_number": {
            "description": "Reference #",
            "type": "string"
          },
          "revenue_account_code": {
            "description": "Revenue Account Code",
            "type": "string"
          },
          "revenue_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "type": "string"
          },
          "running_balance": {
            "description": "Running Balance",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "pending",
              "posted",
              "reconciled",
              "excluded"
            ],
            "type": "string"
          },
          "transaction_type": {
            "description": "Type",
            "enum": [
              "expense",
              "deposit",
              "transfer_in",
              "transfer_out",
              "bank_fee",
              "refund",
              "credit_card_charge",
              "credit_card_payment",
              "credit_card_credit",
              "invoice_payment"
            ],
            "type": "string"
          },
          "transfer_account_code": {
            "description": "Transfer Account Code",
            "type": "string"
          },
          "transfer_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "type": "string"
          },
          "vendor_id": {
            "description": "Identifier for the related vendor record.",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "VendorBillUpdateInput": {
        "properties": {
          "approval_status": {
            "description": "Approval Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "bill_date": {
            "description": "Bill Date",
            "format": "date",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "document_number": {
            "description": "Document Number",
            "type": "string"
          },
          "due_date": {
            "description": "Due Date",
            "format": "date",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "form_1099_type": {
            "description": "1099 Form Type",
            "type": "string"
          },
          "is_1099_eligible": {
            "description": "1099 Eligible",
            "type": "boolean"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_code": {
                  "description": "Account Code",
                  "type": "string"
                },
                "account_id": {
                  "description": "Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "amount_includes_tax": {
                  "description": "Amount Includes Tax",
                  "type": "boolean"
                },
                "billable": {
                  "description": "Billable",
                  "type": "boolean"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "currency": {
                  "description": "Currency",
                  "type": "string"
                },
                "customer_id": {
                  "description": "Customer ID",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "detail": {
                  "description": "Line Detail",
                  "properties": {
                    "account_id": {
                      "description": "Account ID",
                      "type": "string"
                    },
                    "basis_amount": {
                      "description": "Basis Amount",
                      "type": "string"
                    },
                    "class_id": {
                      "description": "Class ID",
                      "type": "string"
                    },
                    "discount_amount": {
                      "description": "Discount Amount",
                      "type": "string"
                    },
                    "discount_percent": {
                      "description": "Discount Percent",
                      "type": "string"
                    },
                    "item_id": {
                      "description": "Item ID",
                      "type": "string"
                    },
                    "location_id": {
                      "description": "Location ID",
                      "type": "string"
                    },
                    "metadata": {
                      "description": "Metadata",
                      "type": "object"
                    },
                    "product": {
                      "description": "Product",
                      "type": "object"
                    },
                    "quantity": {
                      "description": "Quantity",
                      "type": "string"
                    },
                    "sku": {
                      "description": "SKU",
                      "type": "string"
                    },
                    "subtotal_amount": {
                      "description": "Subtotal Amount",
                      "type": "string"
                    },
                    "type": {
                      "description": "Detail Type",
                      "enum": [
                        "item",
                        "discount",
                        "subtotal",
                        "description_only"
                      ],
                      "type": "string"
                    },
                    "unit_amount": {
                      "description": "Unit Amount",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "discount_amount": {
                  "description": "Discount Amount",
                  "type": "string"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_ref": {
                  "description": "Line Ref",
                  "type": "string"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "product": {
                  "description": "Product",
                  "type": "object"
                },
                "product_id": {
                  "description": "Product ID",
                  "type": "string"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "sku": {
                  "description": "SKU",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "tax_details": {
                  "description": "Tax Details",
                  "items": {
                    "properties": {
                      "allocation_ref": {
                        "description": "Allocation Ref",
                        "type": "string"
                      },
                      "amount_includes_tax": {
                        "description": "Amount Includes Tax",
                        "type": "boolean"
                      },
                      "fulfillment_ref": {
                        "description": "Fulfillment Ref",
                        "type": "string"
                      },
                      "jurisdiction_code": {
                        "description": "Jurisdiction Code",
                        "type": "string"
                      },
                      "jurisdiction_level": {
                        "description": "Jurisdiction Level",
                        "type": "string"
                      },
                      "jurisdiction_name": {
                        "description": "Jurisdiction Name",
                        "type": "string"
                      },
                      "metadata": {
                        "description": "Metadata",
                        "type": "object"
                      },
                      "provider_detail_ref": {
                        "description": "Provider Detail Ref",
                        "type": "string"
                      },
                      "provider_key": {
                        "description": "Provider Key",
                        "type": "string"
                      },
                      "provider_tax_rate_ref": {
                        "description": "Provider Tax Rate Ref",
                        "type": "string"
                      },
                      "rate": {
                        "description": "Rate",
                        "type": "string"
                      },
                      "ship_from_ref": {
                        "description": "Ship From Ref",
                        "type": "string"
                      },
                      "ship_to_ref": {
                        "description": "Ship To Ref",
                        "type": "string"
                      },
                      "tax_amount": {
                        "description": "Tax Amount",
                        "type": "string"
                      },
                      "tax_code": {
                        "description": "Tax Code",
                        "type": "string"
                      },
                      "tax_detail_ref": {
                        "description": "Tax Detail Ref",
                        "type": "string"
                      },
                      "tax_name": {
                        "description": "Tax Name",
                        "type": "string"
                      },
                      "tax_type": {
                        "description": "Tax Type",
                        "type": "string"
                      },
                      "taxability_reason": {
                        "description": "Taxability Reason",
                        "type": "string"
                      },
                      "taxable_amount": {
                        "description": "Taxable Amount",
                        "type": "string"
                      }
                    },
                    "required": [
                      "tax_detail_ref",
                      "tax_amount",
                      "amount_includes_tax"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "tax_exempt_reason": {
                  "description": "Tax Exempt Reason",
                  "type": "string"
                },
                "tax_rate": {
                  "description": "Tax Rate",
                  "type": "string"
                },
                "tax_status": {
                  "description": "Tax Status",
                  "enum": [
                    "taxable",
                    "exempt",
                    "zero_rated",
                    "reverse_charge",
                    "not_applicable"
                  ],
                  "type": "string"
                },
                "taxable_amount": {
                  "description": "Taxable Amount",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "purchase_order_id": {
            "description": "Purchase Order ID",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void",
              "open",
              "paid",
              "unpaid",
              "partially_paid",
              "overdue"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total Amount",
            "type": "string"
          },
          "vendor_id": {
            "description": "Vendor ID",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "CustomerUpdateInput": {
        "properties": {
          "address": {
            "description": "Address",
            "type": "object"
          },
          "billing_address": {
            "description": "Billing Address",
            "type": "object"
          },
          "category_ids": {
            "description": "Category IDs",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "company_name": {
            "description": "Company",
            "type": "string"
          },
          "credit_limit": {
            "description": "Credit Limit",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "email": {
            "description": "Email",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "name": {
            "description": "Name",
            "type": "string"
          },
          "phone": {
            "description": "Phone",
            "type": "string"
          },
          "price_level_id": {
            "description": "Identifier for the related price level record.",
            "type": "string"
          },
          "sales_rep_id": {
            "description": "Identifier for the related sales rep record.",
            "type": "string"
          },
          "shipping_address": {
            "description": "Shipping Address",
            "type": "object"
          },
          "tax_exempt": {
            "description": "Tax Exempt",
            "type": "boolean"
          },
          "tax_ids": {
            "description": "Government-issued tax identifiers for the customer, such as US EIN, SSN, or ITIN, or country-specific VAT, GST, or ABN registrations.",
            "items": {
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [],
        "type": "object"
      },
      "BankTransactionRecord": {
        "description": "A bank_transaction record as returned by the API",
        "properties": {
          "amount": {
            "description": "Amount",
            "type": "string"
          },
          "bank_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "type": "string"
          },
          "category": {
            "description": "Category",
            "type": "string"
          },
          "check_number": {
            "description": "Check #",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Identifier for the related customer record.",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "expense_account_code": {
            "description": "Expense Account Code",
            "type": "string"
          },
          "expense_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "type": "string"
          },
          "merchant_name": {
            "description": "Merchant",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "posted_at": {
            "description": "Posted",
            "format": "date-time",
            "type": "string"
          },
          "reference_number": {
            "description": "Reference #",
            "type": "string"
          },
          "revenue_account_code": {
            "description": "Revenue Account Code",
            "type": "string"
          },
          "revenue_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "type": "string"
          },
          "running_balance": {
            "description": "Running Balance",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "pending",
              "posted",
              "reconciled",
              "excluded"
            ],
            "type": "string"
          },
          "transaction_id": {
            "description": "Provider-native ID for this resource. Backfill stores this as source_id on the canonical record.",
            "type": "string"
          },
          "transaction_type": {
            "description": "Type",
            "enum": [
              "expense",
              "deposit",
              "transfer_in",
              "transfer_out",
              "bank_fee",
              "refund",
              "credit_card_charge",
              "credit_card_payment",
              "credit_card_credit",
              "invoice_payment"
            ],
            "type": "string"
          },
          "transfer_account_code": {
            "description": "Transfer Account Code",
            "type": "string"
          },
          "transfer_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "vendor_id": {
            "description": "Identifier for the related vendor record.",
            "type": "string"
          }
        },
        "required": [
          "bank_account_id",
          "amount",
          "posted_at"
        ],
        "type": "object"
      },
      "VendorBillRecord": {
        "description": "A vendor_bill record as returned by the API",
        "properties": {
          "approval_status": {
            "description": "Approval Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "bill_date": {
            "description": "Bill Date",
            "format": "date",
            "type": "string"
          },
          "connection_id": {
            "description": "Connection ID",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "document_number": {
            "description": "Document Number",
            "type": "string"
          },
          "due_date": {
            "description": "Due Date",
            "format": "date",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "form_1099_type": {
            "description": "1099 Form Type",
            "type": "string"
          },
          "id": {
            "description": "Canonical ID",
            "type": "string"
          },
          "is_1099_eligible": {
            "description": "1099 Eligible",
            "type": "boolean"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_code": {
                  "description": "Account Code",
                  "type": "string"
                },
                "account_id": {
                  "description": "Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "amount_includes_tax": {
                  "description": "Amount Includes Tax",
                  "type": "boolean"
                },
                "billable": {
                  "description": "Billable",
                  "type": "boolean"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "currency": {
                  "description": "Currency",
                  "type": "string"
                },
                "customer_id": {
                  "description": "Customer ID",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "detail": {
                  "description": "Line Detail",
                  "properties": {
                    "account_id": {
                      "description": "Account ID",
                      "type": "string"
                    },
                    "basis_amount": {
                      "description": "Basis Amount",
                      "type": "string"
                    },
                    "class_id": {
                      "description": "Class ID",
                      "type": "string"
                    },
                    "discount_amount": {
                      "description": "Discount Amount",
                      "type": "string"
                    },
                    "discount_percent": {
                      "description": "Discount Percent",
                      "type": "string"
                    },
                    "item_id": {
                      "description": "Item ID",
                      "type": "string"
                    },
                    "location_id": {
                      "description": "Location ID",
                      "type": "string"
                    },
                    "metadata": {
                      "description": "Metadata",
                      "type": "object"
                    },
                    "product": {
                      "description": "Product",
                      "type": "object"
                    },
                    "quantity": {
                      "description": "Quantity",
                      "type": "string"
                    },
                    "sku": {
                      "description": "SKU",
                      "type": "string"
                    },
                    "subtotal_amount": {
                      "description": "Subtotal Amount",
                      "type": "string"
                    },
                    "type": {
                      "description": "Detail Type",
                      "enum": [
                        "item",
                        "discount",
                        "subtotal",
                        "description_only"
                      ],
                      "type": "string"
                    },
                    "unit_amount": {
                      "description": "Unit Amount",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "discount_amount": {
                  "description": "Discount Amount",
                  "type": "string"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_ref": {
                  "description": "Line Ref",
                  "type": "string"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "product": {
                  "description": "Product",
                  "type": "object"
                },
                "product_id": {
                  "description": "Product ID",
                  "type": "string"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "sku": {
                  "description": "SKU",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "tax_details": {
                  "description": "Tax Details",
                  "items": {
                    "properties": {
                      "allocation_ref": {
                        "description": "Allocation Ref",
                        "type": "string"
                      },
                      "amount_includes_tax": {
                        "description": "Amount Includes Tax",
                        "type": "boolean"
                      },
                      "fulfillment_ref": {
                        "description": "Fulfillment Ref",
                        "type": "string"
                      },
                      "jurisdiction_code": {
                        "description": "Jurisdiction Code",
                        "type": "string"
                      },
                      "jurisdiction_level": {
                        "description": "Jurisdiction Level",
                        "type": "string"
                      },
                      "jurisdiction_name": {
                        "description": "Jurisdiction Name",
                        "type": "string"
                      },
                      "metadata": {
                        "description": "Metadata",
                        "type": "object"
                      },
                      "provider_detail_ref": {
                        "description": "Provider Detail Ref",
                        "type": "string"
                      },
                      "provider_key": {
                        "description": "Provider Key",
                        "type": "string"
                      },
                      "provider_tax_rate_ref": {
                        "description": "Provider Tax Rate Ref",
                        "type": "string"
                      },
                      "rate": {
                        "description": "Rate",
                        "type": "string"
                      },
                      "ship_from_ref": {
                        "description": "Ship From Ref",
                        "type": "string"
                      },
                      "ship_to_ref": {
                        "description": "Ship To Ref",
                        "type": "string"
                      },
                      "tax_amount": {
                        "description": "Tax Amount",
                        "type": "string"
                      },
                      "tax_code": {
                        "description": "Tax Code",
                        "type": "string"
                      },
                      "tax_detail_ref": {
                        "description": "Tax Detail Ref",
                        "type": "string"
                      },
                      "tax_name": {
                        "description": "Tax Name",
                        "type": "string"
                      },
                      "tax_type": {
                        "description": "Tax Type",
                        "type": "string"
                      },
                      "taxability_reason": {
                        "description": "Taxability Reason",
                        "type": "string"
                      },
                      "taxable_amount": {
                        "description": "Taxable Amount",
                        "type": "string"
                      }
                    },
                    "required": [
                      "tax_detail_ref",
                      "tax_amount",
                      "amount_includes_tax"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "tax_exempt_reason": {
                  "description": "Tax Exempt Reason",
                  "type": "string"
                },
                "tax_rate": {
                  "description": "Tax Rate",
                  "type": "string"
                },
                "tax_status": {
                  "description": "Tax Status",
                  "enum": [
                    "taxable",
                    "exempt",
                    "zero_rated",
                    "reverse_charge",
                    "not_applicable"
                  ],
                  "type": "string"
                },
                "taxable_amount": {
                  "description": "Taxable Amount",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "paid_date": {
            "description": "Paid Date",
            "format": "date",
            "type": "string"
          },
          "purchase_order_id": {
            "description": "Purchase Order ID",
            "type": "string"
          },
          "source_id": {
            "description": "Source ID",
            "type": "string"
          },
          "source_system": {
            "description": "Source System",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void",
              "open",
              "paid",
              "unpaid",
              "partially_paid",
              "overdue"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total Amount",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "vendor_id": {
            "description": "Vendor ID",
            "type": "string"
          }
        },
        "required": [
          "source_id",
          "source_system",
          "status",
          "currency",
          "total_amount",
          "vendor_id"
        ],
        "type": "object"
      },
      "ItemRecord": {
        "description": "A item record as returned by the API",
        "properties": {
          "active": {
            "description": "Active",
            "type": "boolean"
          },
          "asset_account_id": {
            "description": "Asset Account ID",
            "type": "string"
          },
          "class_id": {
            "description": "Class ID",
            "type": "string"
          },
          "cogs_account_id": {
            "description": "COGS Account ID",
            "type": "string"
          },
          "connection_id": {
            "description": "Connection ID",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "expense_account_id": {
            "description": "Expense Account ID",
            "type": "string"
          },
          "is_purchased": {
            "description": "Purchased",
            "type": "boolean"
          },
          "is_sold": {
            "description": "Sold",
            "type": "boolean"
          },
          "locations": {
            "description": "Locations",
            "items": {
              "properties": {
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "quantity_on_hand": {
                  "description": "Quantity on Hand",
                  "type": "string"
                },
                "reorder_point": {
                  "description": "Reorder Point",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "type": "object"
          },
          "name": {
            "description": "Name",
            "type": "string"
          },
          "preferred_vendor_id": {
            "description": "Preferred Vendor ID",
            "type": "string"
          },
          "product_id": {
            "description": "Product ID",
            "type": "string"
          },
          "purchase_cost": {
            "description": "Cost",
            "type": "string"
          },
          "quantity_on_hand": {
            "description": "Qty on Hand",
            "type": "string"
          },
          "reorder_point": {
            "description": "Reorder Point",
            "type": "string"
          },
          "revenue_account_id": {
            "description": "Revenue Account ID",
            "type": "string"
          },
          "sku": {
            "description": "SKU",
            "type": "string"
          },
          "source_system": {
            "description": "Source",
            "type": "string"
          },
          "subsidiary_id": {
            "description": "Subsidiary ID",
            "type": "string"
          },
          "track_inventory": {
            "description": "Track Inventory",
            "type": "boolean"
          },
          "type": {
            "description": "Type",
            "enum": [
              "good",
              "service"
            ],
            "type": "string"
          },
          "unit_label": {
            "description": "Unit",
            "type": "string"
          },
          "unit_price": {
            "description": "Price",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "product_id",
          "name"
        ],
        "type": "object"
      },
      "PaymentRecord": {
        "description": "A payment record as returned by the API",
        "properties": {
          "allocations": {
            "description": "Allocations",
            "items": {
              "properties": {
                "allocated_at": {
                  "description": "Allocated At",
                  "format": "date-time",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "invoice_id": {
                  "description": "Invoice ID",
                  "type": "string"
                }
              },
              "required": [
                "invoice_id",
                "amount"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "amount": {
            "description": "Amount",
            "type": "string"
          },
          "connection_id": {
            "description": "Connection ID",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "deposit_to_account_code": {
            "description": "Deposit Account Code",
            "type": "string"
          },
          "deposit_to_account_id": {
            "description": "Deposit Account ID",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "exchange_rate": {
            "description": "Exchange Rate",
            "type": "string"
          },
          "fees": {
            "description": "Fees",
            "type": "string"
          },
          "invoice_id": {
            "description": "Invoice ID",
            "type": "string"
          },
          "memo": {
            "description": "Memo",
            "type": "string"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "net_amount": {
            "description": "Net Amount",
            "type": "string"
          },
          "occurred_at": {
            "description": "Occurred At",
            "format": "date-time",
            "type": "string"
          },
          "payment_method": {
            "description": "Payment Method",
            "type": "string"
          },
          "payment_method_details": {
            "description": "Payment Method Details",
            "type": "object"
          },
          "payment_method_type": {
            "description": "Payment Method Type",
            "enum": [
              "check",
              "credit_card",
              "ach",
              "cash",
              "wire",
              "other"
            ],
            "type": "string"
          },
          "reference_number": {
            "description": "Reference Number",
            "type": "string"
          },
          "settled_at": {
            "description": "Settled At",
            "format": "date-time",
            "type": "string"
          },
          "source_id": {
            "description": "Source ID",
            "type": "string"
          },
          "source_system": {
            "description": "Source System",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "source_id",
          "source_system",
          "amount",
          "currency",
          "status"
        ],
        "type": "object"
      },
      "PurchaseOrderRecord": {
        "description": "A purchase_order record as returned by the API",
        "properties": {
          "approval_status": {
            "description": "Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "document_number": {
            "description": "Number",
            "type": "string"
          },
          "expected_date": {
            "description": "Expected Date",
            "format": "date",
            "type": "string"
          },
          "issued_at": {
            "description": "Issue Date",
            "format": "date-time",
            "type": "string"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_code": {
                  "description": "Account Code",
                  "type": "string"
                },
                "account_id": {
                  "description": "Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "billed_quantity": {
                  "description": "Billed Quantity",
                  "type": "string"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "received_quantity": {
                  "description": "Received Quantity",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "type": "object"
          },
          "po_id": {
            "description": "PO ID",
            "type": "string"
          },
          "source_system": {
            "description": "Source",
            "type": "string"
          },
          "total_amount": {
            "description": "Total",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "vendor_id": {
            "description": "Vendor ID",
            "type": "string"
          },
          "vendor_name": {
            "description": "Vendor",
            "type": "string"
          }
        },
        "required": [
          "po_id",
          "currency",
          "total_amount"
        ],
        "type": "object"
      },
      "CreditMemoInput": {
        "properties": {
          "approval_status": {
            "description": "Approval Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "document_number": {
            "description": "Document Number",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "invoice_id": {
            "description": "Invoice ID",
            "type": "string"
          },
          "issued_at": {
            "description": "Issued At",
            "format": "date-time",
            "type": "string"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "amount_includes_tax": {
                  "description": "Amount Includes Tax",
                  "type": "boolean"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "currency": {
                  "description": "Currency",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "detail": {
                  "description": "Line Detail",
                  "properties": {
                    "account_id": {
                      "description": "Account ID",
                      "type": "string"
                    },
                    "basis_amount": {
                      "description": "Basis Amount",
                      "type": "string"
                    },
                    "class_id": {
                      "description": "Class ID",
                      "type": "string"
                    },
                    "discount_amount": {
                      "description": "Discount Amount",
                      "type": "string"
                    },
                    "discount_percent": {
                      "description": "Discount Percent",
                      "type": "string"
                    },
                    "item_id": {
                      "description": "Item ID",
                      "type": "string"
                    },
                    "location_id": {
                      "description": "Location ID",
                      "type": "string"
                    },
                    "metadata": {
                      "description": "Metadata",
                      "type": "object"
                    },
                    "product": {
                      "description": "Product",
                      "type": "object"
                    },
                    "quantity": {
                      "description": "Quantity",
                      "type": "string"
                    },
                    "sku": {
                      "description": "SKU",
                      "type": "string"
                    },
                    "subtotal_amount": {
                      "description": "Subtotal Amount",
                      "type": "string"
                    },
                    "type": {
                      "description": "Detail Type",
                      "enum": [
                        "item",
                        "discount",
                        "subtotal",
                        "description_only"
                      ],
                      "type": "string"
                    },
                    "unit_amount": {
                      "description": "Unit Amount",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "discount_amount": {
                  "description": "Discount Amount",
                  "type": "string"
                },
                "invoice_line_ref": {
                  "description": "Invoice Line Ref",
                  "type": "string"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_ref": {
                  "description": "Line Ref",
                  "type": "string"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "product": {
                  "description": "Product",
                  "type": "object"
                },
                "product_id": {
                  "description": "Product ID",
                  "type": "string"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "reason_code": {
                  "description": "Reason Code",
                  "type": "string"
                },
                "return_quantity": {
                  "description": "Return Quantity",
                  "type": "string"
                },
                "sku": {
                  "description": "SKU",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "tax_details": {
                  "description": "Tax Details",
                  "items": {
                    "properties": {
                      "allocation_ref": {
                        "description": "Allocation Ref",
                        "type": "string"
                      },
                      "amount_includes_tax": {
                        "description": "Amount Includes Tax",
                        "type": "boolean"
                      },
                      "fulfillment_ref": {
                        "description": "Fulfillment Ref",
                        "type": "string"
                      },
                      "jurisdiction_code": {
                        "description": "Jurisdiction Code",
                        "type": "string"
                      },
                      "jurisdiction_level": {
                        "description": "Jurisdiction Level",
                        "type": "string"
                      },
                      "jurisdiction_name": {
                        "description": "Jurisdiction Name",
                        "type": "string"
                      },
                      "metadata": {
                        "description": "Metadata",
                        "type": "object"
                      },
                      "provider_detail_ref": {
                        "description": "Provider Detail Ref",
                        "type": "string"
                      },
                      "provider_key": {
                        "description": "Provider Key",
                        "type": "string"
                      },
                      "provider_tax_rate_ref": {
                        "description": "Provider Tax Rate Ref",
                        "type": "string"
                      },
                      "rate": {
                        "description": "Rate",
                        "type": "string"
                      },
                      "ship_from_ref": {
                        "description": "Ship From Ref",
                        "type": "string"
                      },
                      "ship_to_ref": {
                        "description": "Ship To Ref",
                        "type": "string"
                      },
                      "tax_amount": {
                        "description": "Tax Amount",
                        "type": "string"
                      },
                      "tax_code": {
                        "description": "Tax Code",
                        "type": "string"
                      },
                      "tax_detail_ref": {
                        "description": "Tax Detail Ref",
                        "type": "string"
                      },
                      "tax_name": {
                        "description": "Tax Name",
                        "type": "string"
                      },
                      "tax_type": {
                        "description": "Tax Type",
                        "type": "string"
                      },
                      "taxability_reason": {
                        "description": "Taxability Reason",
                        "type": "string"
                      },
                      "taxable_amount": {
                        "description": "Taxable Amount",
                        "type": "string"
                      }
                    },
                    "required": [
                      "tax_detail_ref",
                      "tax_amount",
                      "amount_includes_tax"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "tax_exempt_reason": {
                  "description": "Tax Exempt Reason",
                  "type": "string"
                },
                "tax_rate": {
                  "description": "Tax Rate",
                  "type": "string"
                },
                "tax_status": {
                  "description": "Tax Status",
                  "enum": [
                    "taxable",
                    "exempt",
                    "zero_rated",
                    "reverse_charge",
                    "not_applicable"
                  ],
                  "type": "string"
                },
                "taxable_amount": {
                  "description": "Taxable Amount",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "reason_code": {
            "description": "Reason Code",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "open",
              "partially_applied",
              "applied",
              "void"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total Amount",
            "type": "string"
          }
        },
        "required": [
          "status",
          "currency",
          "total_amount"
        ],
        "type": "object"
      },
      "QuoteRecord": {
        "description": "A quote record as returned by the API",
        "properties": {
          "approval_status": {
            "description": "Approval",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "customer_name": {
            "description": "Customer",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "document_number": {
            "description": "Number",
            "type": "string"
          },
          "expires_at": {
            "description": "Expires",
            "format": "date-time",
            "type": "string"
          },
          "issued_at": {
            "description": "Issue Date",
            "format": "date-time",
            "type": "string"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_code": {
                  "description": "Account Code",
                  "type": "string"
                },
                "account_id": {
                  "description": "Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "type": "object"
          },
          "quote_id": {
            "description": "Quote ID",
            "type": "string"
          },
          "source_system": {
            "description": "Source",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "draft",
              "open",
              "accepted",
              "expired",
              "void"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "quote_id",
          "currency",
          "total_amount"
        ],
        "type": "object"
      },
      "RefundReceiptRecord": {
        "description": "A refund_receipt record as returned by the API",
        "properties": {
          "charge_id": {
            "description": "Charge ID",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "customer_name": {
            "description": "Customer",
            "type": "string"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "document_number": {
            "description": "Number",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_code": {
                  "description": "Account Code",
                  "type": "string"
                },
                "account_id": {
                  "description": "Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "charge_line_ref": {
                  "description": "Charge Line Ref",
                  "type": "string"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "payment_line_ref": {
                  "description": "Payment Line Ref",
                  "type": "string"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "type": "object"
          },
          "net_amount": {
            "description": "Net Amount",
            "type": "string"
          },
          "payment_id": {
            "description": "Payment ID",
            "type": "string"
          },
          "reason": {
            "description": "Reason",
            "type": "string"
          },
          "refund_date": {
            "description": "Refund Date",
            "format": "date-time",
            "type": "string"
          },
          "refund_id": {
            "description": "Refund ID",
            "type": "string"
          },
          "source_system": {
            "description": "Source",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "pending",
              "succeeded",
              "failed",
              "canceled"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "refund_id",
          "currency",
          "total_amount"
        ],
        "type": "object"
      },
      "RefundReceiptInput": {
        "properties": {
          "charge_id": {
            "description": "Charge ID",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "document_number": {
            "description": "Number",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "net_amount": {
            "description": "Net Amount",
            "type": "string"
          },
          "payment_id": {
            "description": "Payment ID",
            "type": "string"
          },
          "reason": {
            "description": "Reason",
            "type": "string"
          },
          "refund_date": {
            "description": "Refund Date",
            "format": "date-time",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "pending",
              "succeeded",
              "failed",
              "canceled"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total",
            "type": "string"
          }
        },
        "required": [
          "currency",
          "total_amount"
        ],
        "type": "object"
      },
      "PurchaseOrderUpdateInput": {
        "properties": {
          "approval_status": {
            "description": "Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "document_number": {
            "description": "Number",
            "type": "string"
          },
          "expected_date": {
            "description": "Expected Date",
            "format": "date",
            "type": "string"
          },
          "issued_at": {
            "description": "Issue Date",
            "format": "date-time",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "total_amount": {
            "description": "Total",
            "type": "string"
          },
          "vendor_id": {
            "description": "Vendor ID",
            "type": "string"
          },
          "vendor_name": {
            "description": "Vendor",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "AccountRecord": {
        "description": "A account record as returned by the API",
        "properties": {
          "account_id": {
            "description": "Provider-native ID for this resource. Backfill stores this as source_id on the canonical record.",
            "type": "string"
          },
          "active": {
            "description": "Active",
            "type": "boolean"
          },
          "code": {
            "description": "Code",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "name": {
            "description": "Name",
            "type": "string"
          },
          "parent_name": {
            "description": "Parent",
            "type": "string"
          },
          "slot": {
            "description": "Slot",
            "type": "string"
          },
          "sub_type": {
            "description": "Sub Type",
            "type": "string"
          },
          "subsidiary_id": {
            "description": "Business entity or subsidiary identifier for multi-entity accounting. Leave blank when the tenant does not use subsidiaries.",
            "type": "string"
          },
          "type": {
            "description": "Type",
            "enum": [
              "asset",
              "liability",
              "equity",
              "revenue",
              "expense"
            ],
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "name",
          "type"
        ],
        "type": "object"
      },
      "QuoteInput": {
        "properties": {
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "customer_name": {
            "description": "Customer",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "document_number": {
            "description": "Number",
            "type": "string"
          },
          "expires_at": {
            "description": "Expires",
            "format": "date-time",
            "type": "string"
          },
          "issued_at": {
            "description": "Issue Date",
            "format": "date-time",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "status": {
            "description": "Status",
            "enum": [
              "draft",
              "open",
              "accepted",
              "expired",
              "void"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total",
            "type": "string"
          }
        },
        "required": [
          "currency",
          "total_amount"
        ],
        "type": "object"
      },
      "VendorCreditInput": {
        "properties": {
          "credit_date": {
            "description": "Credit Date",
            "format": "date",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "document_number": {
            "description": "Number",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "total_amount": {
            "description": "Total",
            "type": "string"
          },
          "vendor_id": {
            "description": "Vendor ID",
            "type": "string"
          },
          "vendor_name": {
            "description": "Vendor",
            "type": "string"
          }
        },
        "required": [
          "currency",
          "total_amount"
        ],
        "type": "object"
      },
      "BillPaymentUpdateInput": {
        "properties": {
          "amount": {
            "description": "Amount",
            "type": "string"
          },
          "approval_status": {
            "description": "Approval Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "bill_id": {
            "description": "Bill ID",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "form_1099_type": {
            "description": "1099 Form Type",
            "type": "string"
          },
          "is_1099_eligible": {
            "description": "1099 Eligible",
            "type": "boolean"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "payment_date": {
            "description": "Payment Date",
            "format": "date",
            "type": "string"
          },
          "payment_method": {
            "description": "Payment Method",
            "type": "string"
          },
          "payment_method_details": {
            "description": "Payment Method Details",
            "type": "object"
          },
          "payment_method_type": {
            "description": "Payment Method Type",
            "enum": [
              "check",
              "credit_card",
              "ach",
              "cash",
              "wire",
              "other"
            ],
            "type": "string"
          },
          "payment_number": {
            "description": "Payment Number",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "pending",
              "completed",
              "void"
            ],
            "type": "string"
          },
          "vendor_id": {
            "description": "Vendor ID",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "VendorBillInput": {
        "properties": {
          "approval_status": {
            "description": "Approval Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "bill_date": {
            "description": "Bill Date",
            "format": "date",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "document_number": {
            "description": "Document Number",
            "type": "string"
          },
          "due_date": {
            "description": "Due Date",
            "format": "date",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "form_1099_type": {
            "description": "1099 Form Type",
            "type": "string"
          },
          "is_1099_eligible": {
            "description": "1099 Eligible",
            "type": "boolean"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_code": {
                  "description": "Account Code",
                  "type": "string"
                },
                "account_id": {
                  "description": "Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "amount_includes_tax": {
                  "description": "Amount Includes Tax",
                  "type": "boolean"
                },
                "billable": {
                  "description": "Billable",
                  "type": "boolean"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "currency": {
                  "description": "Currency",
                  "type": "string"
                },
                "customer_id": {
                  "description": "Customer ID",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "detail": {
                  "description": "Line Detail",
                  "properties": {
                    "account_id": {
                      "description": "Account ID",
                      "type": "string"
                    },
                    "basis_amount": {
                      "description": "Basis Amount",
                      "type": "string"
                    },
                    "class_id": {
                      "description": "Class ID",
                      "type": "string"
                    },
                    "discount_amount": {
                      "description": "Discount Amount",
                      "type": "string"
                    },
                    "discount_percent": {
                      "description": "Discount Percent",
                      "type": "string"
                    },
                    "item_id": {
                      "description": "Item ID",
                      "type": "string"
                    },
                    "location_id": {
                      "description": "Location ID",
                      "type": "string"
                    },
                    "metadata": {
                      "description": "Metadata",
                      "type": "object"
                    },
                    "product": {
                      "description": "Product",
                      "type": "object"
                    },
                    "quantity": {
                      "description": "Quantity",
                      "type": "string"
                    },
                    "sku": {
                      "description": "SKU",
                      "type": "string"
                    },
                    "subtotal_amount": {
                      "description": "Subtotal Amount",
                      "type": "string"
                    },
                    "type": {
                      "description": "Detail Type",
                      "enum": [
                        "item",
                        "discount",
                        "subtotal",
                        "description_only"
                      ],
                      "type": "string"
                    },
                    "unit_amount": {
                      "description": "Unit Amount",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "discount_amount": {
                  "description": "Discount Amount",
                  "type": "string"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_ref": {
                  "description": "Line Ref",
                  "type": "string"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "product": {
                  "description": "Product",
                  "type": "object"
                },
                "product_id": {
                  "description": "Product ID",
                  "type": "string"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "sku": {
                  "description": "SKU",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "tax_details": {
                  "description": "Tax Details",
                  "items": {
                    "properties": {
                      "allocation_ref": {
                        "description": "Allocation Ref",
                        "type": "string"
                      },
                      "amount_includes_tax": {
                        "description": "Amount Includes Tax",
                        "type": "boolean"
                      },
                      "fulfillment_ref": {
                        "description": "Fulfillment Ref",
                        "type": "string"
                      },
                      "jurisdiction_code": {
                        "description": "Jurisdiction Code",
                        "type": "string"
                      },
                      "jurisdiction_level": {
                        "description": "Jurisdiction Level",
                        "type": "string"
                      },
                      "jurisdiction_name": {
                        "description": "Jurisdiction Name",
                        "type": "string"
                      },
                      "metadata": {
                        "description": "Metadata",
                        "type": "object"
                      },
                      "provider_detail_ref": {
                        "description": "Provider Detail Ref",
                        "type": "string"
                      },
                      "provider_key": {
                        "description": "Provider Key",
                        "type": "string"
                      },
                      "provider_tax_rate_ref": {
                        "description": "Provider Tax Rate Ref",
                        "type": "string"
                      },
                      "rate": {
                        "description": "Rate",
                        "type": "string"
                      },
                      "ship_from_ref": {
                        "description": "Ship From Ref",
                        "type": "string"
                      },
                      "ship_to_ref": {
                        "description": "Ship To Ref",
                        "type": "string"
                      },
                      "tax_amount": {
                        "description": "Tax Amount",
                        "type": "string"
                      },
                      "tax_code": {
                        "description": "Tax Code",
                        "type": "string"
                      },
                      "tax_detail_ref": {
                        "description": "Tax Detail Ref",
                        "type": "string"
                      },
                      "tax_name": {
                        "description": "Tax Name",
                        "type": "string"
                      },
                      "tax_type": {
                        "description": "Tax Type",
                        "type": "string"
                      },
                      "taxability_reason": {
                        "description": "Taxability Reason",
                        "type": "string"
                      },
                      "taxable_amount": {
                        "description": "Taxable Amount",
                        "type": "string"
                      }
                    },
                    "required": [
                      "tax_detail_ref",
                      "tax_amount",
                      "amount_includes_tax"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "tax_exempt_reason": {
                  "description": "Tax Exempt Reason",
                  "type": "string"
                },
                "tax_rate": {
                  "description": "Tax Rate",
                  "type": "string"
                },
                "tax_status": {
                  "description": "Tax Status",
                  "enum": [
                    "taxable",
                    "exempt",
                    "zero_rated",
                    "reverse_charge",
                    "not_applicable"
                  ],
                  "type": "string"
                },
                "taxable_amount": {
                  "description": "Taxable Amount",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "purchase_order_id": {
            "description": "Purchase Order ID",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void",
              "open",
              "paid",
              "unpaid",
              "partially_paid",
              "overdue"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total Amount",
            "type": "string"
          },
          "vendor_id": {
            "description": "Vendor ID",
            "type": "string"
          }
        },
        "required": [
          "status",
          "currency",
          "total_amount",
          "vendor_id"
        ],
        "type": "object"
      },
      "SalesOrderUpdateInput": {
        "properties": {
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "document_number": {
            "description": "Number",
            "type": "string"
          },
          "issued_at": {
            "description": "Issue Date",
            "format": "date-time",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "status": {
            "description": "Status",
            "enum": [
              "draft",
              "open",
              "closed",
              "void"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "SalesOrderRecord": {
        "description": "A sales_order record as returned by the API",
        "properties": {
          "approval_status": {
            "description": "Approval",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "customer_name": {
            "description": "Customer",
            "type": "string"
          },
          "document_number": {
            "description": "Number",
            "type": "string"
          },
          "issued_at": {
            "description": "Issue Date",
            "format": "date-time",
            "type": "string"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_code": {
                  "description": "Account Code",
                  "type": "string"
                },
                "account_id": {
                  "description": "Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "fulfilled_quantity": {
                  "description": "Fulfilled Quantity",
                  "type": "string"
                },
                "invoiced_quantity": {
                  "description": "Invoiced Quantity",
                  "type": "string"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "type": "object"
          },
          "sales_order_id": {
            "description": "Sales Order ID",
            "type": "string"
          },
          "source_system": {
            "description": "Source",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "draft",
              "open",
              "closed",
              "void"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "sales_order_id",
          "currency",
          "total_amount"
        ],
        "type": "object"
      },
      "BankTransferRecord": {
        "description": "A bank_transfer record as returned by the API",
        "properties": {
          "amount": {
            "description": "Amount",
            "type": "string"
          },
          "approved_at": {
            "description": "Approved At",
            "format": "date-time",
            "type": "string"
          },
          "approved_by": {
            "description": "Approved By",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "from_account_code": {
            "description": "From Account Code",
            "type": "string"
          },
          "from_account_id": {
            "description": "From Account ID",
            "type": "string"
          },
          "id": {
            "description": "Canonical ID",
            "type": "string"
          },
          "memo": {
            "description": "Memo",
            "type": "string"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "source_id": {
            "description": "Source ID",
            "type": "string"
          },
          "source_system": {
            "description": "Source System",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "draft",
              "approved",
              "void"
            ],
            "type": "string"
          },
          "to_account_code": {
            "description": "To Account Code",
            "type": "string"
          },
          "to_account_id": {
            "description": "To Account ID",
            "type": "string"
          },
          "transfer_date": {
            "description": "Transfer Date",
            "format": "date",
            "type": "string"
          },
          "transfer_number": {
            "description": "Transfer Number",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "source_id",
          "source_system",
          "amount",
          "currency",
          "transfer_date",
          "from_account_id",
          "to_account_id",
          "status"
        ],
        "type": "object"
      },
      "QuoteUpdateInput": {
        "properties": {
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "customer_name": {
            "description": "Customer",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "document_number": {
            "description": "Number",
            "type": "string"
          },
          "expires_at": {
            "description": "Expires",
            "format": "date-time",
            "type": "string"
          },
          "issued_at": {
            "description": "Issue Date",
            "format": "date-time",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "status": {
            "description": "Status",
            "enum": [
              "draft",
              "open",
              "accepted",
              "expired",
              "void"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "JournalEntryInput": {
        "properties": {
          "account_code": {
            "description": "Account Code",
            "type": "string"
          },
          "account_name": {
            "description": "Account Name",
            "type": "string"
          },
          "credit_amount": {
            "description": "Credit",
            "type": "string"
          },
          "debit_amount": {
            "description": "Debit",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "entry_date": {
            "description": "Date",
            "format": "date",
            "type": "string"
          },
          "line_memo": {
            "description": "Line Memo",
            "type": "string"
          },
          "memo": {
            "description": "Memo",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "draft",
              "posted",
              "void"
            ],
            "type": "string"
          }
        },
        "required": [
          "entry_date"
        ],
        "type": "object"
      },
      "PurchaseOrderInput": {
        "properties": {
          "approval_status": {
            "description": "Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "document_number": {
            "description": "Number",
            "type": "string"
          },
          "expected_date": {
            "description": "Expected Date",
            "format": "date",
            "type": "string"
          },
          "issued_at": {
            "description": "Issue Date",
            "format": "date-time",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "total_amount": {
            "description": "Total",
            "type": "string"
          },
          "vendor_id": {
            "description": "Vendor ID",
            "type": "string"
          },
          "vendor_name": {
            "description": "Vendor",
            "type": "string"
          }
        },
        "required": [
          "currency",
          "total_amount"
        ],
        "type": "object"
      },
      "BankTransactionInput": {
        "properties": {
          "amount": {
            "description": "Amount",
            "type": "string"
          },
          "bank_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "type": "string"
          },
          "category": {
            "description": "Category",
            "type": "string"
          },
          "check_number": {
            "description": "Check #",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Identifier for the related customer record.",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "expense_account_code": {
            "description": "Expense Account Code",
            "type": "string"
          },
          "expense_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "type": "string"
          },
          "merchant_name": {
            "description": "Merchant",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "posted_at": {
            "description": "Posted",
            "format": "date-time",
            "type": "string"
          },
          "reference_number": {
            "description": "Reference #",
            "type": "string"
          },
          "revenue_account_code": {
            "description": "Revenue Account Code",
            "type": "string"
          },
          "revenue_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "type": "string"
          },
          "running_balance": {
            "description": "Running Balance",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "pending",
              "posted",
              "reconciled",
              "excluded"
            ],
            "type": "string"
          },
          "transaction_type": {
            "description": "Type",
            "enum": [
              "expense",
              "deposit",
              "transfer_in",
              "transfer_out",
              "bank_fee",
              "refund",
              "credit_card_charge",
              "credit_card_payment",
              "credit_card_credit",
              "invoice_payment"
            ],
            "type": "string"
          },
          "transfer_account_code": {
            "description": "Transfer Account Code",
            "type": "string"
          },
          "transfer_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "type": "string"
          },
          "vendor_id": {
            "description": "Identifier for the related vendor record.",
            "type": "string"
          }
        },
        "required": [
          "bank_account_id",
          "amount",
          "posted_at"
        ],
        "type": "object"
      },
      "InvoiceUpdateInput": {
        "properties": {
          "billing_address": {
            "description": "Billing Address",
            "type": "object"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "customer_name": {
            "description": "Customer Name",
            "type": "string"
          },
          "discount_details": {
            "description": "Discount Details",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "document_number": {
            "description": "Document Number",
            "type": "string"
          },
          "due_at": {
            "description": "Due At",
            "format": "date-time",
            "type": "string"
          },
          "issued_at": {
            "description": "Issued At",
            "format": "date-time",
            "type": "string"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_id": {
                  "description": "Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "amount_includes_tax": {
                  "description": "Amount Includes Tax",
                  "type": "boolean"
                },
                "billing_period_end": {
                  "description": "Billing Period End",
                  "format": "date-time",
                  "type": "string"
                },
                "billing_period_start": {
                  "description": "Billing Period Start",
                  "format": "date-time",
                  "type": "string"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "currency": {
                  "description": "Currency",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "detail": {
                  "description": "Line Detail",
                  "properties": {
                    "account_id": {
                      "description": "Account ID",
                      "type": "string"
                    },
                    "basis_amount": {
                      "description": "Basis Amount",
                      "type": "string"
                    },
                    "class_id": {
                      "description": "Class ID",
                      "type": "string"
                    },
                    "discount_amount": {
                      "description": "Discount Amount",
                      "type": "string"
                    },
                    "discount_percent": {
                      "description": "Discount Percent",
                      "type": "string"
                    },
                    "item_id": {
                      "description": "Item ID",
                      "type": "string"
                    },
                    "location_id": {
                      "description": "Location ID",
                      "type": "string"
                    },
                    "metadata": {
                      "description": "Metadata",
                      "type": "object"
                    },
                    "product": {
                      "description": "Product",
                      "type": "object"
                    },
                    "quantity": {
                      "description": "Quantity",
                      "type": "string"
                    },
                    "sku": {
                      "description": "SKU",
                      "type": "string"
                    },
                    "subtotal_amount": {
                      "description": "Subtotal Amount",
                      "type": "string"
                    },
                    "type": {
                      "description": "Detail Type",
                      "enum": [
                        "item",
                        "discount",
                        "subtotal",
                        "description_only"
                      ],
                      "type": "string"
                    },
                    "unit_amount": {
                      "description": "Unit Amount",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "discount_amount": {
                  "description": "Discount Amount",
                  "type": "string"
                },
                "fulfillment_line_ref": {
                  "description": "Fulfillment Line Ref",
                  "type": "string"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_ref": {
                  "description": "Line Ref",
                  "type": "string"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "order_line_ref": {
                  "description": "Order Line Ref",
                  "type": "string"
                },
                "product": {
                  "description": "Product",
                  "type": "object"
                },
                "product_id": {
                  "description": "Product ID",
                  "type": "string"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "sku": {
                  "description": "SKU",
                  "type": "string"
                },
                "subscription_item_id": {
                  "description": "Subscription Item ID",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "tax_details": {
                  "description": "Tax Details",
                  "items": {
                    "properties": {
                      "allocation_ref": {
                        "description": "Allocation Ref",
                        "type": "string"
                      },
                      "amount_includes_tax": {
                        "description": "Amount Includes Tax",
                        "type": "boolean"
                      },
                      "fulfillment_ref": {
                        "description": "Fulfillment Ref",
                        "type": "string"
                      },
                      "jurisdiction_code": {
                        "description": "Jurisdiction Code",
                        "type": "string"
                      },
                      "jurisdiction_level": {
                        "description": "Jurisdiction Level",
                        "type": "string"
                      },
                      "jurisdiction_name": {
                        "description": "Jurisdiction Name",
                        "type": "string"
                      },
                      "metadata": {
                        "description": "Metadata",
                        "type": "object"
                      },
                      "provider_detail_ref": {
                        "description": "Provider Detail Ref",
                        "type": "string"
                      },
                      "provider_key": {
                        "description": "Provider Key",
                        "type": "string"
                      },
                      "provider_tax_rate_ref": {
                        "description": "Provider Tax Rate Ref",
                        "type": "string"
                      },
                      "rate": {
                        "description": "Rate",
                        "type": "string"
                      },
                      "ship_from_ref": {
                        "description": "Ship From Ref",
                        "type": "string"
                      },
                      "ship_to_ref": {
                        "description": "Ship To Ref",
                        "type": "string"
                      },
                      "tax_amount": {
                        "description": "Tax Amount",
                        "type": "string"
                      },
                      "tax_code": {
                        "description": "Tax Code",
                        "type": "string"
                      },
                      "tax_detail_ref": {
                        "description": "Tax Detail Ref",
                        "type": "string"
                      },
                      "tax_name": {
                        "description": "Tax Name",
                        "type": "string"
                      },
                      "tax_type": {
                        "description": "Tax Type",
                        "type": "string"
                      },
                      "taxability_reason": {
                        "description": "Taxability Reason",
                        "type": "string"
                      },
                      "taxable_amount": {
                        "description": "Taxable Amount",
                        "type": "string"
                      }
                    },
                    "required": [
                      "tax_detail_ref",
                      "tax_amount",
                      "amount_includes_tax"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "tax_exempt_reason": {
                  "description": "Tax Exempt Reason",
                  "type": "string"
                },
                "tax_rate": {
                  "description": "Tax Rate",
                  "type": "string"
                },
                "tax_status": {
                  "description": "Tax Status",
                  "enum": [
                    "taxable",
                    "exempt",
                    "zero_rated",
                    "reverse_charge",
                    "not_applicable"
                  ],
                  "type": "string"
                },
                "taxable_amount": {
                  "description": "Taxable Amount",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "required": [
                "description",
                "amount"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "memo": {
            "description": "Optional memo or notes",
            "type": "string"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "ship_method": {
            "description": "Ship Method",
            "type": "string"
          },
          "shipping_address": {
            "description": "Shipping Address",
            "type": "object"
          },
          "shipping_details": {
            "description": "Shipping Details",
            "type": "object"
          },
          "status": {
            "description": "Status",
            "type": "string"
          },
          "tax_behavior": {
            "description": "Tax Behavior",
            "enum": [
              "inclusive",
              "exclusive"
            ],
            "type": "string"
          },
          "terms": {
            "description": "Terms",
            "type": "string"
          },
          "total_amount": {
            "description": "Total Amount",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "VendorInput": {
        "properties": {
          "accounts_payable_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "format": "uuid",
            "type": "string"
          },
          "address": {
            "description": "Address",
            "type": "object"
          },
          "category_ids": {
            "description": "Category IDs",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "company_name": {
            "description": "Company",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "default_expense_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "format": "uuid",
            "type": "string"
          },
          "email": {
            "description": "Email",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "name": {
            "description": "Name",
            "type": "string"
          },
          "phone": {
            "description": "Phone",
            "type": "string"
          },
          "tax_ids": {
            "description": "Government-issued tax identifiers for the vendor, such as US EIN, SSN, or ITIN (used for 1099 reporting), or country-specific VAT, GST, or ABN registrations.",
            "items": {
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "JournalEntryRecord": {
        "description": "A journal_entry record as returned by the API",
        "properties": {
          "account_code": {
            "description": "Account Code",
            "type": "string"
          },
          "account_name": {
            "description": "Account Name",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "credit_amount": {
            "description": "Credit",
            "type": "string"
          },
          "debit_amount": {
            "description": "Debit",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "entry_date": {
            "description": "Date",
            "format": "date",
            "type": "string"
          },
          "entry_number": {
            "description": "Entry #",
            "type": "string"
          },
          "line_memo": {
            "description": "Line Memo",
            "type": "string"
          },
          "memo": {
            "description": "Memo",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "draft",
              "posted",
              "void"
            ],
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "entry_number",
          "entry_date"
        ],
        "type": "object"
      },
      "ErrorResponse": {
        "properties": {
          "code": {
            "type": "string"
          },
          "errors": {
            "items": {
              "properties": {
                "code": {
                  "type": "string"
                },
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "message": {
            "type": "string"
          },
          "status": {
            "enum": [
              "error"
            ],
            "type": "string"
          }
        },
        "required": [
          "status",
          "code",
          "message"
        ],
        "type": "object"
      },
      "BillPaymentInput": {
        "properties": {
          "amount": {
            "description": "Amount",
            "type": "string"
          },
          "approval_status": {
            "description": "Approval Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "bill_id": {
            "description": "Bill ID",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "form_1099_type": {
            "description": "1099 Form Type",
            "type": "string"
          },
          "is_1099_eligible": {
            "description": "1099 Eligible",
            "type": "boolean"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "payment_date": {
            "description": "Payment Date",
            "format": "date",
            "type": "string"
          },
          "payment_method": {
            "description": "Payment Method",
            "type": "string"
          },
          "payment_method_details": {
            "description": "Payment Method Details",
            "type": "object"
          },
          "payment_method_type": {
            "description": "Payment Method Type",
            "enum": [
              "check",
              "credit_card",
              "ach",
              "cash",
              "wire",
              "other"
            ],
            "type": "string"
          },
          "payment_number": {
            "description": "Payment Number",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "pending",
              "completed",
              "void"
            ],
            "type": "string"
          },
          "vendor_id": {
            "description": "Vendor ID",
            "type": "string"
          }
        },
        "required": [
          "vendor_id",
          "amount",
          "currency"
        ],
        "type": "object"
      },
      "SalesOrderInput": {
        "properties": {
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "document_number": {
            "description": "Number",
            "type": "string"
          },
          "issued_at": {
            "description": "Issue Date",
            "format": "date-time",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "status": {
            "description": "Status",
            "enum": [
              "draft",
              "open",
              "closed",
              "void"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total",
            "type": "string"
          }
        },
        "required": [
          "currency",
          "total_amount"
        ],
        "type": "object"
      },
      "SalesReceiptInput": {
        "properties": {
          "approval_status": {
            "description": "Approval Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "deposit_to_account_code": {
            "description": "Deposit Account Code",
            "type": "string"
          },
          "deposit_to_account_id": {
            "description": "Deposit Account ID",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "document_number": {
            "description": "Document Number",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "line_items": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_id": {
                  "description": "Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "amount_includes_tax": {
                  "description": "Amount Includes Tax",
                  "type": "boolean"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "currency": {
                  "description": "Currency",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "detail": {
                  "description": "Line Detail",
                  "properties": {
                    "account_id": {
                      "description": "Account ID",
                      "type": "string"
                    },
                    "basis_amount": {
                      "description": "Basis Amount",
                      "type": "string"
                    },
                    "class_id": {
                      "description": "Class ID",
                      "type": "string"
                    },
                    "discount_amount": {
                      "description": "Discount Amount",
                      "type": "string"
                    },
                    "discount_percent": {
                      "description": "Discount Percent",
                      "type": "string"
                    },
                    "item_id": {
                      "description": "Item ID",
                      "type": "string"
                    },
                    "location_id": {
                      "description": "Location ID",
                      "type": "string"
                    },
                    "metadata": {
                      "description": "Metadata",
                      "type": "object"
                    },
                    "product": {
                      "description": "Product",
                      "type": "object"
                    },
                    "quantity": {
                      "description": "Quantity",
                      "type": "string"
                    },
                    "sku": {
                      "description": "SKU",
                      "type": "string"
                    },
                    "subtotal_amount": {
                      "description": "Subtotal Amount",
                      "type": "string"
                    },
                    "type": {
                      "description": "Detail Type",
                      "enum": [
                        "item",
                        "discount",
                        "subtotal",
                        "description_only"
                      ],
                      "type": "string"
                    },
                    "unit_amount": {
                      "description": "Unit Amount",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "discount_amount": {
                  "description": "Discount Amount",
                  "type": "string"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_ref": {
                  "description": "Line Ref",
                  "type": "string"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "product": {
                  "description": "Product",
                  "type": "object"
                },
                "product_id": {
                  "description": "Product ID",
                  "type": "string"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "sku": {
                  "description": "SKU",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "tax_details": {
                  "description": "Tax Details",
                  "items": {
                    "properties": {
                      "allocation_ref": {
                        "description": "Allocation Ref",
                        "type": "string"
                      },
                      "amount_includes_tax": {
                        "description": "Amount Includes Tax",
                        "type": "boolean"
                      },
                      "fulfillment_ref": {
                        "description": "Fulfillment Ref",
                        "type": "string"
                      },
                      "jurisdiction_code": {
                        "description": "Jurisdiction Code",
                        "type": "string"
                      },
                      "jurisdiction_level": {
                        "description": "Jurisdiction Level",
                        "type": "string"
                      },
                      "jurisdiction_name": {
                        "description": "Jurisdiction Name",
                        "type": "string"
                      },
                      "metadata": {
                        "description": "Metadata",
                        "type": "object"
                      },
                      "provider_detail_ref": {
                        "description": "Provider Detail Ref",
                        "type": "string"
                      },
                      "provider_key": {
                        "description": "Provider Key",
                        "type": "string"
                      },
                      "provider_tax_rate_ref": {
                        "description": "Provider Tax Rate Ref",
                        "type": "string"
                      },
                      "rate": {
                        "description": "Rate",
                        "type": "string"
                      },
                      "ship_from_ref": {
                        "description": "Ship From Ref",
                        "type": "string"
                      },
                      "ship_to_ref": {
                        "description": "Ship To Ref",
                        "type": "string"
                      },
                      "tax_amount": {
                        "description": "Tax Amount",
                        "type": "string"
                      },
                      "tax_code": {
                        "description": "Tax Code",
                        "type": "string"
                      },
                      "tax_detail_ref": {
                        "description": "Tax Detail Ref",
                        "type": "string"
                      },
                      "tax_name": {
                        "description": "Tax Name",
                        "type": "string"
                      },
                      "tax_type": {
                        "description": "Tax Type",
                        "type": "string"
                      },
                      "taxability_reason": {
                        "description": "Taxability Reason",
                        "type": "string"
                      },
                      "taxable_amount": {
                        "description": "Taxable Amount",
                        "type": "string"
                      }
                    },
                    "required": [
                      "tax_detail_ref",
                      "tax_amount",
                      "amount_includes_tax"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "tax_exempt_reason": {
                  "description": "Tax Exempt Reason",
                  "type": "string"
                },
                "tax_rate": {
                  "description": "Tax Rate",
                  "type": "string"
                },
                "tax_status": {
                  "description": "Tax Status",
                  "enum": [
                    "taxable",
                    "exempt",
                    "zero_rated",
                    "reverse_charge",
                    "not_applicable"
                  ],
                  "type": "string"
                },
                "taxable_amount": {
                  "description": "Taxable Amount",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "location_id": {
            "description": "Location ID",
            "type": "string"
          },
          "memo": {
            "description": "Memo",
            "type": "string"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "payment_method": {
            "description": "Payment Method",
            "type": "string"
          },
          "receipt_date": {
            "description": "Receipt Date",
            "format": "date",
            "type": "string"
          },
          "register_id": {
            "description": "Register ID",
            "type": "string"
          },
          "revenue_account_id": {
            "description": "Revenue Account ID",
            "type": "string"
          },
          "sales_rep_id": {
            "description": "Sales Rep ID",
            "type": "string"
          },
          "ship_method": {
            "description": "Ship Method",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "type": "string"
          },
          "total_amount": {
            "description": "Total Amount",
            "type": "string"
          }
        },
        "required": [
          "currency",
          "total_amount"
        ],
        "type": "object"
      },
      "PaymentInput": {
        "properties": {
          "allocations": {
            "description": "Allocations",
            "items": {
              "properties": {
                "allocated_at": {
                  "description": "Allocated At",
                  "format": "date-time",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "invoice_id": {
                  "description": "Invoice ID",
                  "type": "string"
                }
              },
              "required": [
                "invoice_id",
                "amount"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "amount": {
            "description": "Amount",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "deposit_to_account_code": {
            "description": "Deposit Account Code",
            "type": "string"
          },
          "deposit_to_account_id": {
            "description": "Deposit Account ID",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "exchange_rate": {
            "description": "Exchange Rate",
            "type": "string"
          },
          "fees": {
            "description": "Fees",
            "type": "string"
          },
          "invoice_id": {
            "description": "Invoice ID",
            "type": "string"
          },
          "memo": {
            "description": "Memo",
            "type": "string"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "net_amount": {
            "description": "Net Amount",
            "type": "string"
          },
          "occurred_at": {
            "description": "Occurred At",
            "format": "date-time",
            "type": "string"
          },
          "payment_method": {
            "description": "Payment Method",
            "type": "string"
          },
          "payment_method_details": {
            "description": "Payment Method Details",
            "type": "object"
          },
          "payment_method_type": {
            "description": "Payment Method Type",
            "enum": [
              "check",
              "credit_card",
              "ach",
              "cash",
              "wire",
              "other"
            ],
            "type": "string"
          },
          "reference_number": {
            "description": "Reference Number",
            "type": "string"
          },
          "settled_at": {
            "description": "Settled At",
            "format": "date-time",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency",
          "status"
        ],
        "type": "object"
      },
      "RecordEnvelope": {
        "properties": {
          "data": {
            "type": "object"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "object": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "object",
          "data"
        ],
        "type": "object"
      },
      "Pagination": {
        "properties": {
          "limit": {
            "type": "integer"
          },
          "page": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "CreditMemoUpdateInput": {
        "properties": {
          "approval_status": {
            "description": "Approval Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "document_number": {
            "description": "Document Number",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "invoice_id": {
            "description": "Invoice ID",
            "type": "string"
          },
          "issued_at": {
            "description": "Issued At",
            "format": "date-time",
            "type": "string"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "amount_includes_tax": {
                  "description": "Amount Includes Tax",
                  "type": "boolean"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "currency": {
                  "description": "Currency",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "detail": {
                  "description": "Line Detail",
                  "properties": {
                    "account_id": {
                      "description": "Account ID",
                      "type": "string"
                    },
                    "basis_amount": {
                      "description": "Basis Amount",
                      "type": "string"
                    },
                    "class_id": {
                      "description": "Class ID",
                      "type": "string"
                    },
                    "discount_amount": {
                      "description": "Discount Amount",
                      "type": "string"
                    },
                    "discount_percent": {
                      "description": "Discount Percent",
                      "type": "string"
                    },
                    "item_id": {
                      "description": "Item ID",
                      "type": "string"
                    },
                    "location_id": {
                      "description": "Location ID",
                      "type": "string"
                    },
                    "metadata": {
                      "description": "Metadata",
                      "type": "object"
                    },
                    "product": {
                      "description": "Product",
                      "type": "object"
                    },
                    "quantity": {
                      "description": "Quantity",
                      "type": "string"
                    },
                    "sku": {
                      "description": "SKU",
                      "type": "string"
                    },
                    "subtotal_amount": {
                      "description": "Subtotal Amount",
                      "type": "string"
                    },
                    "type": {
                      "description": "Detail Type",
                      "enum": [
                        "item",
                        "discount",
                        "subtotal",
                        "description_only"
                      ],
                      "type": "string"
                    },
                    "unit_amount": {
                      "description": "Unit Amount",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "discount_amount": {
                  "description": "Discount Amount",
                  "type": "string"
                },
                "invoice_line_ref": {
                  "description": "Invoice Line Ref",
                  "type": "string"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_ref": {
                  "description": "Line Ref",
                  "type": "string"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "product": {
                  "description": "Product",
                  "type": "object"
                },
                "product_id": {
                  "description": "Product ID",
                  "type": "string"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "reason_code": {
                  "description": "Reason Code",
                  "type": "string"
                },
                "return_quantity": {
                  "description": "Return Quantity",
                  "type": "string"
                },
                "sku": {
                  "description": "SKU",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "tax_details": {
                  "description": "Tax Details",
                  "items": {
                    "properties": {
                      "allocation_ref": {
                        "description": "Allocation Ref",
                        "type": "string"
                      },
                      "amount_includes_tax": {
                        "description": "Amount Includes Tax",
                        "type": "boolean"
                      },
                      "fulfillment_ref": {
                        "description": "Fulfillment Ref",
                        "type": "string"
                      },
                      "jurisdiction_code": {
                        "description": "Jurisdiction Code",
                        "type": "string"
                      },
                      "jurisdiction_level": {
                        "description": "Jurisdiction Level",
                        "type": "string"
                      },
                      "jurisdiction_name": {
                        "description": "Jurisdiction Name",
                        "type": "string"
                      },
                      "metadata": {
                        "description": "Metadata",
                        "type": "object"
                      },
                      "provider_detail_ref": {
                        "description": "Provider Detail Ref",
                        "type": "string"
                      },
                      "provider_key": {
                        "description": "Provider Key",
                        "type": "string"
                      },
                      "provider_tax_rate_ref": {
                        "description": "Provider Tax Rate Ref",
                        "type": "string"
                      },
                      "rate": {
                        "description": "Rate",
                        "type": "string"
                      },
                      "ship_from_ref": {
                        "description": "Ship From Ref",
                        "type": "string"
                      },
                      "ship_to_ref": {
                        "description": "Ship To Ref",
                        "type": "string"
                      },
                      "tax_amount": {
                        "description": "Tax Amount",
                        "type": "string"
                      },
                      "tax_code": {
                        "description": "Tax Code",
                        "type": "string"
                      },
                      "tax_detail_ref": {
                        "description": "Tax Detail Ref",
                        "type": "string"
                      },
                      "tax_name": {
                        "description": "Tax Name",
                        "type": "string"
                      },
                      "tax_type": {
                        "description": "Tax Type",
                        "type": "string"
                      },
                      "taxability_reason": {
                        "description": "Taxability Reason",
                        "type": "string"
                      },
                      "taxable_amount": {
                        "description": "Taxable Amount",
                        "type": "string"
                      }
                    },
                    "required": [
                      "tax_detail_ref",
                      "tax_amount",
                      "amount_includes_tax"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "tax_exempt_reason": {
                  "description": "Tax Exempt Reason",
                  "type": "string"
                },
                "tax_rate": {
                  "description": "Tax Rate",
                  "type": "string"
                },
                "tax_status": {
                  "description": "Tax Status",
                  "enum": [
                    "taxable",
                    "exempt",
                    "zero_rated",
                    "reverse_charge",
                    "not_applicable"
                  ],
                  "type": "string"
                },
                "taxable_amount": {
                  "description": "Taxable Amount",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "reason_code": {
            "description": "Reason Code",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "open",
              "partially_applied",
              "applied",
              "void"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total Amount",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "DeletedEnvelope": {
        "properties": {
          "deleted": {
            "enum": [
              true
            ],
            "type": "boolean"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "object": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "object",
          "deleted"
        ],
        "type": "object"
      },
      "PaymentUpdateInput": {
        "properties": {
          "allocations": {
            "description": "Allocations",
            "items": {
              "properties": {
                "allocated_at": {
                  "description": "Allocated At",
                  "format": "date-time",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "invoice_id": {
                  "description": "Invoice ID",
                  "type": "string"
                }
              },
              "required": [
                "invoice_id",
                "amount"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "amount": {
            "description": "Amount",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "deposit_to_account_code": {
            "description": "Deposit Account Code",
            "type": "string"
          },
          "deposit_to_account_id": {
            "description": "Deposit Account ID",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "exchange_rate": {
            "description": "Exchange Rate",
            "type": "string"
          },
          "fees": {
            "description": "Fees",
            "type": "string"
          },
          "invoice_id": {
            "description": "Invoice ID",
            "type": "string"
          },
          "memo": {
            "description": "Memo",
            "type": "string"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "net_amount": {
            "description": "Net Amount",
            "type": "string"
          },
          "occurred_at": {
            "description": "Occurred At",
            "format": "date-time",
            "type": "string"
          },
          "payment_method": {
            "description": "Payment Method",
            "type": "string"
          },
          "payment_method_details": {
            "description": "Payment Method Details",
            "type": "object"
          },
          "payment_method_type": {
            "description": "Payment Method Type",
            "enum": [
              "check",
              "credit_card",
              "ach",
              "cash",
              "wire",
              "other"
            ],
            "type": "string"
          },
          "reference_number": {
            "description": "Reference Number",
            "type": "string"
          },
          "settled_at": {
            "description": "Settled At",
            "format": "date-time",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "DepositInput": {
        "properties": {
          "cashback_account_id": {
            "description": "Cash Back Account ID",
            "type": "string"
          },
          "cashback_amount": {
            "description": "Cash Back Amount",
            "type": "string"
          },
          "cashback_memo": {
            "description": "Cash Back Memo",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "deposit_date": {
            "description": "Deposit Date",
            "format": "date",
            "type": "string"
          },
          "deposit_to_account_code": {
            "description": "Deposit To Account Code",
            "type": "string"
          },
          "deposit_to_account_id": {
            "description": "Deposit To Account ID",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "document_number": {
            "description": "Document Number",
            "type": "string"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_code": {
                  "description": "Account Code",
                  "type": "string"
                },
                "account_id": {
                  "description": "Line Posting Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "check_number": {
                  "description": "Check Number",
                  "type": "string"
                },
                "currency": {
                  "description": "Currency",
                  "type": "string"
                },
                "customer_id": {
                  "description": "Customer ID",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_ref": {
                  "description": "Line Ref",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "payment_method": {
                  "description": "Payment Method",
                  "type": "string"
                },
                "reference_number": {
                  "description": "Reference Number",
                  "type": "string"
                },
                "source_document_id": {
                  "description": "Source Document ID",
                  "type": "string"
                },
                "source_document_number": {
                  "description": "Source Document Number",
                  "type": "string"
                },
                "source_document_type": {
                  "description": "Source Document Type",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "memo": {
            "description": "Memo",
            "type": "string"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "status": {
            "description": "Status",
            "enum": [
              "pending",
              "deposited",
              "void"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total Amount",
            "type": "string"
          }
        },
        "required": [
          "currency",
          "total_amount"
        ],
        "type": "object"
      },
      "SalesReceiptRecord": {
        "description": "A sales_receipt record as returned by the API",
        "properties": {
          "approval_status": {
            "description": "Approval Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "connection_id": {
            "description": "Connection ID",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Customer ID",
            "type": "string"
          },
          "deposit_to_account_code": {
            "description": "Deposit Account Code",
            "type": "string"
          },
          "deposit_to_account_id": {
            "description": "Deposit Account ID",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "discount_amount": {
            "description": "Discount Amount",
            "type": "string"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "document_number": {
            "description": "Document Number",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "id": {
            "description": "Canonical ID",
            "type": "string"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_id": {
                  "description": "Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "amount_includes_tax": {
                  "description": "Amount Includes Tax",
                  "type": "boolean"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "currency": {
                  "description": "Currency",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "detail": {
                  "description": "Line Detail",
                  "properties": {
                    "account_id": {
                      "description": "Account ID",
                      "type": "string"
                    },
                    "basis_amount": {
                      "description": "Basis Amount",
                      "type": "string"
                    },
                    "class_id": {
                      "description": "Class ID",
                      "type": "string"
                    },
                    "discount_amount": {
                      "description": "Discount Amount",
                      "type": "string"
                    },
                    "discount_percent": {
                      "description": "Discount Percent",
                      "type": "string"
                    },
                    "item_id": {
                      "description": "Item ID",
                      "type": "string"
                    },
                    "location_id": {
                      "description": "Location ID",
                      "type": "string"
                    },
                    "metadata": {
                      "description": "Metadata",
                      "type": "object"
                    },
                    "product": {
                      "description": "Product",
                      "type": "object"
                    },
                    "quantity": {
                      "description": "Quantity",
                      "type": "string"
                    },
                    "sku": {
                      "description": "SKU",
                      "type": "string"
                    },
                    "subtotal_amount": {
                      "description": "Subtotal Amount",
                      "type": "string"
                    },
                    "type": {
                      "description": "Detail Type",
                      "enum": [
                        "item",
                        "discount",
                        "subtotal",
                        "description_only"
                      ],
                      "type": "string"
                    },
                    "unit_amount": {
                      "description": "Unit Amount",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "discount_amount": {
                  "description": "Discount Amount",
                  "type": "string"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_ref": {
                  "description": "Line Ref",
                  "type": "string"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "product": {
                  "description": "Product",
                  "type": "object"
                },
                "product_id": {
                  "description": "Product ID",
                  "type": "string"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "sku": {
                  "description": "SKU",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "tax_details": {
                  "description": "Tax Details",
                  "items": {
                    "properties": {
                      "allocation_ref": {
                        "description": "Allocation Ref",
                        "type": "string"
                      },
                      "amount_includes_tax": {
                        "description": "Amount Includes Tax",
                        "type": "boolean"
                      },
                      "fulfillment_ref": {
                        "description": "Fulfillment Ref",
                        "type": "string"
                      },
                      "jurisdiction_code": {
                        "description": "Jurisdiction Code",
                        "type": "string"
                      },
                      "jurisdiction_level": {
                        "description": "Jurisdiction Level",
                        "type": "string"
                      },
                      "jurisdiction_name": {
                        "description": "Jurisdiction Name",
                        "type": "string"
                      },
                      "metadata": {
                        "description": "Metadata",
                        "type": "object"
                      },
                      "provider_detail_ref": {
                        "description": "Provider Detail Ref",
                        "type": "string"
                      },
                      "provider_key": {
                        "description": "Provider Key",
                        "type": "string"
                      },
                      "provider_tax_rate_ref": {
                        "description": "Provider Tax Rate Ref",
                        "type": "string"
                      },
                      "rate": {
                        "description": "Rate",
                        "type": "string"
                      },
                      "ship_from_ref": {
                        "description": "Ship From Ref",
                        "type": "string"
                      },
                      "ship_to_ref": {
                        "description": "Ship To Ref",
                        "type": "string"
                      },
                      "tax_amount": {
                        "description": "Tax Amount",
                        "type": "string"
                      },
                      "tax_code": {
                        "description": "Tax Code",
                        "type": "string"
                      },
                      "tax_detail_ref": {
                        "description": "Tax Detail Ref",
                        "type": "string"
                      },
                      "tax_name": {
                        "description": "Tax Name",
                        "type": "string"
                      },
                      "tax_type": {
                        "description": "Tax Type",
                        "type": "string"
                      },
                      "taxability_reason": {
                        "description": "Taxability Reason",
                        "type": "string"
                      },
                      "taxable_amount": {
                        "description": "Taxable Amount",
                        "type": "string"
                      }
                    },
                    "required": [
                      "tax_detail_ref",
                      "tax_amount",
                      "amount_includes_tax"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "tax_exempt_reason": {
                  "description": "Tax Exempt Reason",
                  "type": "string"
                },
                "tax_rate": {
                  "description": "Tax Rate",
                  "type": "string"
                },
                "tax_status": {
                  "description": "Tax Status",
                  "enum": [
                    "taxable",
                    "exempt",
                    "zero_rated",
                    "reverse_charge",
                    "not_applicable"
                  ],
                  "type": "string"
                },
                "taxable_amount": {
                  "description": "Taxable Amount",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "location_id": {
            "description": "Location ID",
            "type": "string"
          },
          "memo": {
            "description": "Memo",
            "type": "string"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "payment_method": {
            "description": "Payment Method",
            "type": "string"
          },
          "receipt_date": {
            "description": "Receipt Date",
            "format": "date",
            "type": "string"
          },
          "register_id": {
            "description": "Register ID",
            "type": "string"
          },
          "revenue_account_id": {
            "description": "Revenue Account ID",
            "type": "string"
          },
          "sales_rep_id": {
            "description": "Sales Rep ID",
            "type": "string"
          },
          "ship_method": {
            "description": "Ship Method",
            "type": "string"
          },
          "source_id": {
            "description": "Source ID",
            "type": "string"
          },
          "source_system": {
            "description": "Source System",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "type": "string"
          },
          "subtotal": {
            "description": "Subtotal",
            "type": "string"
          },
          "tax_amount": {
            "description": "Tax Amount",
            "type": "string"
          },
          "total_amount": {
            "description": "Total Amount",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "source_id",
          "source_system",
          "status",
          "currency",
          "total_amount"
        ],
        "type": "object"
      },
      "VendorCreditRecord": {
        "description": "A vendor_credit record as returned by the API",
        "properties": {
          "amount_remaining": {
            "description": "Remaining",
            "type": "string"
          },
          "application_status": {
            "description": "Application",
            "enum": [
              "open",
              "partially_applied",
              "applied"
            ],
            "type": "string"
          },
          "approval_status": {
            "description": "Status",
            "enum": [
              "draft",
              "pending_approval",
              "approved",
              "rejected",
              "void"
            ],
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "credit_date": {
            "description": "Credit Date",
            "format": "date",
            "type": "string"
          },
          "credit_id": {
            "description": "Credit ID",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "document_number": {
            "description": "Number",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "lines": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_code": {
                  "description": "Account Code",
                  "type": "string"
                },
                "account_id": {
                  "description": "Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "bill_line_ref": {
                  "description": "Bill Line Ref",
                  "type": "string"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "reason_code": {
                  "description": "Reason Code",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "unit_amount": {
                  "description": "Unit Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "type": "object"
          },
          "source_system": {
            "description": "Source",
            "type": "string"
          },
          "total_amount": {
            "description": "Total",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "vendor_id": {
            "description": "Vendor ID",
            "type": "string"
          },
          "vendor_name": {
            "description": "Vendor",
            "type": "string"
          }
        },
        "required": [
          "credit_id",
          "currency",
          "total_amount"
        ],
        "type": "object"
      },
      "CustomerRecord": {
        "description": "A customer record as returned by the API",
        "properties": {
          "address": {
            "description": "Address",
            "type": "object"
          },
          "balance": {
            "description": "Balance",
            "type": "string"
          },
          "billing_address": {
            "description": "Billing Address",
            "type": "object"
          },
          "category_ids": {
            "description": "Category IDs",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "company_name": {
            "description": "Company",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "credit_limit": {
            "description": "Credit Limit",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "customer_id": {
            "description": "Provider-native ID for this resource. Backfill stores this as source_id on the canonical record.",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "email": {
            "description": "Email",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "name": {
            "description": "Name",
            "type": "string"
          },
          "phone": {
            "description": "Phone",
            "type": "string"
          },
          "price_level_id": {
            "description": "Identifier for the related price level record.",
            "type": "string"
          },
          "sales_rep_id": {
            "description": "Identifier for the related sales rep record.",
            "type": "string"
          },
          "shipping_address": {
            "description": "Shipping Address",
            "type": "object"
          },
          "tax_exempt": {
            "description": "Tax Exempt",
            "type": "boolean"
          },
          "tax_ids": {
            "description": "Government-issued tax identifiers for the customer, such as US EIN, SSN, or ITIN, or country-specific VAT, GST, or ABN registrations.",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "customer_id",
          "name"
        ],
        "type": "object"
      },
      "DepositRecord": {
        "description": "A deposit record as returned by the API",
        "properties": {
          "cashback_account_id": {
            "description": "Cash Back Account ID",
            "type": "string"
          },
          "cashback_amount": {
            "description": "Cash Back Amount",
            "type": "string"
          },
          "cashback_memo": {
            "description": "Cash Back Memo",
            "type": "string"
          },
          "connection_id": {
            "description": "Connection ID",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "deposit_date": {
            "description": "Deposit Date",
            "format": "date",
            "type": "string"
          },
          "deposit_to_account_code": {
            "description": "Deposit To Account Code",
            "type": "string"
          },
          "deposit_to_account_id": {
            "description": "Deposit To Account ID",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "document_number": {
            "description": "Document Number",
            "type": "string"
          },
          "id": {
            "description": "Canonical ID",
            "type": "string"
          },
          "line_items": {
            "description": "Lines",
            "items": {
              "properties": {
                "account_code": {
                  "description": "Account Code",
                  "type": "string"
                },
                "account_id": {
                  "description": "Line Posting Account ID",
                  "type": "string"
                },
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "check_number": {
                  "description": "Check Number",
                  "type": "string"
                },
                "currency": {
                  "description": "Currency",
                  "type": "string"
                },
                "customer_id": {
                  "description": "Customer ID",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_ref": {
                  "description": "Line Ref",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "payment_method": {
                  "description": "Payment Method",
                  "type": "string"
                },
                "reference_number": {
                  "description": "Reference Number",
                  "type": "string"
                },
                "source_document_id": {
                  "description": "Source Document ID",
                  "type": "string"
                },
                "source_document_number": {
                  "description": "Source Document Number",
                  "type": "string"
                },
                "source_document_type": {
                  "description": "Source Document Type",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "memo": {
            "description": "Memo",
            "type": "string"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "source_id": {
            "description": "Source ID",
            "type": "string"
          },
          "source_system": {
            "description": "Source System",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "pending",
              "deposited",
              "void"
            ],
            "type": "string"
          },
          "total_amount": {
            "description": "Total Amount",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "source_id",
          "source_system",
          "status",
          "currency",
          "total_amount"
        ],
        "type": "object"
      },
      "VendorCreditUpdateInput": {
        "properties": {
          "credit_date": {
            "description": "Credit Date",
            "format": "date",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "document_number": {
            "description": "Number",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "total_amount": {
            "description": "Total",
            "type": "string"
          },
          "vendor_id": {
            "description": "Vendor ID",
            "type": "string"
          },
          "vendor_name": {
            "description": "Vendor",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "ExpenseRecord": {
        "description": "A expense record as returned by the API",
        "properties": {
          "amount": {
            "description": "Amount",
            "type": "string"
          },
          "category": {
            "description": "Category",
            "type": "string"
          },
          "connection_id": {
            "description": "Connection ID",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "description": {
            "description": "Description",
            "type": "string"
          },
          "dimensions": {
            "description": "Dimensions",
            "type": "object"
          },
          "document_date": {
            "description": "Document Date",
            "format": "date",
            "type": "string"
          },
          "effective_date": {
            "description": "Effective Date",
            "format": "date",
            "type": "string"
          },
          "expense_account_code": {
            "description": "Expense Account Code",
            "type": "string"
          },
          "expense_account_id": {
            "description": "Expense Account ID",
            "type": "string"
          },
          "expense_date": {
            "description": "Expense Date",
            "format": "date",
            "type": "string"
          },
          "form_1099_type": {
            "description": "1099 Form Type",
            "type": "string"
          },
          "id": {
            "description": "Canonical ID",
            "type": "string"
          },
          "is_1099_eligible": {
            "description": "1099 Eligible",
            "type": "boolean"
          },
          "line_items": {
            "description": "Lines",
            "items": {
              "properties": {
                "amount": {
                  "description": "Amount",
                  "type": "string"
                },
                "amount_includes_tax": {
                  "description": "Amount Includes Tax",
                  "type": "boolean"
                },
                "class_id": {
                  "description": "Class ID",
                  "type": "string"
                },
                "description": {
                  "description": "Description",
                  "type": "string"
                },
                "detail": {
                  "description": "Line Detail",
                  "properties": {
                    "account_id": {
                      "description": "Account ID",
                      "type": "string"
                    },
                    "basis_amount": {
                      "description": "Basis Amount",
                      "type": "string"
                    },
                    "class_id": {
                      "description": "Class ID",
                      "type": "string"
                    },
                    "discount_amount": {
                      "description": "Discount Amount",
                      "type": "string"
                    },
                    "discount_percent": {
                      "description": "Discount Percent",
                      "type": "string"
                    },
                    "item_id": {
                      "description": "Item ID",
                      "type": "string"
                    },
                    "location_id": {
                      "description": "Location ID",
                      "type": "string"
                    },
                    "metadata": {
                      "description": "Metadata",
                      "type": "object"
                    },
                    "product": {
                      "description": "Product",
                      "type": "object"
                    },
                    "quantity": {
                      "description": "Quantity",
                      "type": "string"
                    },
                    "sku": {
                      "description": "SKU",
                      "type": "string"
                    },
                    "subtotal_amount": {
                      "description": "Subtotal Amount",
                      "type": "string"
                    },
                    "type": {
                      "description": "Detail Type",
                      "enum": [
                        "item",
                        "discount",
                        "subtotal",
                        "description_only"
                      ],
                      "type": "string"
                    },
                    "unit_amount": {
                      "description": "Unit Amount",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "dimensions": {
                  "description": "Dimensions",
                  "type": "object"
                },
                "expense_account_code": {
                  "description": "Expense Account Code",
                  "type": "string"
                },
                "expense_account_id": {
                  "description": "Expense Account ID",
                  "type": "string"
                },
                "line_key": {
                  "description": "Line Key",
                  "type": "string"
                },
                "line_number": {
                  "description": "Line Number",
                  "type": "integer"
                },
                "line_type": {
                  "description": "Line Type",
                  "enum": [
                    "product",
                    "service",
                    "discount",
                    "tax",
                    "shipping",
                    "subtotal",
                    "description_only"
                  ],
                  "type": "string"
                },
                "location_id": {
                  "description": "Location ID",
                  "type": "string"
                },
                "metadata": {
                  "description": "Metadata",
                  "type": "object"
                },
                "quantity": {
                  "description": "Quantity",
                  "type": "string"
                },
                "tax_amount": {
                  "description": "Tax Amount",
                  "type": "string"
                },
                "tax_code": {
                  "description": "Tax Code",
                  "type": "string"
                },
                "tax_details": {
                  "description": "Tax Details",
                  "items": {
                    "properties": {
                      "allocation_ref": {
                        "description": "Allocation Ref",
                        "type": "string"
                      },
                      "amount_includes_tax": {
                        "description": "Amount Includes Tax",
                        "type": "boolean"
                      },
                      "fulfillment_ref": {
                        "description": "Fulfillment Ref",
                        "type": "string"
                      },
                      "jurisdiction_code": {
                        "description": "Jurisdiction Code",
                        "type": "string"
                      },
                      "jurisdiction_level": {
                        "description": "Jurisdiction Level",
                        "type": "string"
                      },
                      "jurisdiction_name": {
                        "description": "Jurisdiction Name",
                        "type": "string"
                      },
                      "metadata": {
                        "description": "Metadata",
                        "type": "object"
                      },
                      "provider_detail_ref": {
                        "description": "Provider Detail Ref",
                        "type": "string"
                      },
                      "provider_key": {
                        "description": "Provider Key",
                        "type": "string"
                      },
                      "provider_tax_rate_ref": {
                        "description": "Provider Tax Rate Ref",
                        "type": "string"
                      },
                      "rate": {
                        "description": "Rate",
                        "type": "string"
                      },
                      "ship_from_ref": {
                        "description": "Ship From Ref",
                        "type": "string"
                      },
                      "ship_to_ref": {
                        "description": "Ship To Ref",
                        "type": "string"
                      },
                      "tax_amount": {
                        "description": "Tax Amount",
                        "type": "string"
                      },
                      "tax_code": {
                        "description": "Tax Code",
                        "type": "string"
                      },
                      "tax_detail_ref": {
                        "description": "Tax Detail Ref",
                        "type": "string"
                      },
                      "tax_name": {
                        "description": "Tax Name",
                        "type": "string"
                      },
                      "tax_type": {
                        "description": "Tax Type",
                        "type": "string"
                      },
                      "taxability_reason": {
                        "description": "Taxability Reason",
                        "type": "string"
                      },
                      "taxable_amount": {
                        "description": "Taxable Amount",
                        "type": "string"
                      }
                    },
                    "required": [
                      "tax_detail_ref",
                      "tax_amount",
                      "amount_includes_tax"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "tax_exempt_reason": {
                  "description": "Tax Exempt Reason",
                  "type": "string"
                },
                "tax_rate": {
                  "description": "Tax Rate",
                  "type": "string"
                },
                "tax_status": {
                  "description": "Tax Status",
                  "enum": [
                    "taxable",
                    "exempt",
                    "zero_rated",
                    "reverse_charge",
                    "not_applicable"
                  ],
                  "type": "string"
                },
                "taxable_amount": {
                  "description": "Taxable Amount",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "payment_account_id": {
            "description": "Payment Account ID",
            "type": "string"
          },
          "payment_method": {
            "description": "Payment Method",
            "type": "string"
          },
          "payment_method_details": {
            "description": "Payment Method Details",
            "type": "object"
          },
          "payment_method_type": {
            "description": "Payment Method Type",
            "enum": [
              "check",
              "credit_card",
              "ach",
              "cash",
              "wire",
              "other"
            ],
            "type": "string"
          },
          "source_id": {
            "description": "Source ID",
            "type": "string"
          },
          "source_system": {
            "description": "Source System",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "type": "string"
          },
          "tax_amount": {
            "description": "Tax Amount",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "vendor_id": {
            "description": "Vendor ID",
            "type": "string"
          },
          "vendor_name": {
            "description": "Vendor Name",
            "type": "string"
          }
        },
        "required": [
          "source_id",
          "source_system",
          "amount",
          "currency",
          "status"
        ],
        "type": "object"
      },
      "BankAccountUpdateInput": {
        "properties": {
          "account_type": {
            "description": "Type",
            "enum": [
              "checking",
              "savings",
              "credit_card",
              "money_market",
              "other"
            ],
            "type": "string"
          },
          "available_balance": {
            "description": "Available Balance",
            "type": "string"
          },
          "balance_as_of": {
            "description": "Balance As Of",
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "current_balance": {
            "description": "Balance",
            "type": "string"
          },
          "gl_account_code": {
            "description": "GL Account Code",
            "type": "string"
          },
          "gl_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "type": "string"
          },
          "institution_name": {
            "description": "Institution",
            "type": "string"
          },
          "last_import_at": {
            "description": "Last Import",
            "format": "date-time",
            "type": "string"
          },
          "last_transaction_date": {
            "description": "Last Transaction Date",
            "format": "date",
            "type": "string"
          },
          "mask": {
            "description": "Mask",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "name": {
            "description": "Name",
            "type": "string"
          },
          "status": {
            "description": "Status",
            "enum": [
              "active",
              "inactive",
              "closed"
            ],
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "VendorRecord": {
        "description": "A vendor record as returned by the API",
        "properties": {
          "accounts_payable_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "format": "uuid",
            "type": "string"
          },
          "address": {
            "description": "Address",
            "type": "object"
          },
          "category_ids": {
            "description": "Category IDs",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "company_name": {
            "description": "Company",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "default_expense_account_id": {
            "description": "Backfill account identifier for a related account record. Use account_id for lookups; account_code is display-only when referring to general ledger accounts and may be absent.",
            "format": "uuid",
            "type": "string"
          },
          "email": {
            "description": "Email",
            "type": "string"
          },
          "metadata": {
            "type": "object"
          },
          "name": {
            "description": "Name",
            "type": "string"
          },
          "phone": {
            "description": "Phone",
            "type": "string"
          },
          "tax_ids": {
            "description": "Government-issued tax identifiers for the vendor, such as US EIN, SSN, or ITIN (used for 1099 reporting), or country-specific VAT, GST, or ABN registrations.",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "vendor_id": {
            "description": "Provider-native ID for this resource. Backfill stores this as source_id on the canonical record.",
            "type": "string"
          }
        },
        "required": [
          "vendor_id",
          "name"
        ],
        "type": "object"
      },
      "BankTransferUpdateInput": {
        "properties": {
          "amount": {
            "description": "Amount",
            "type": "string"
          },
          "currency": {
            "description": "Currency",
            "type": "string"
          },
          "from_account_id": {
            "description": "From Account ID",
            "type": "string"
          },
          "memo": {
            "description": "Memo",
            "type": "string"
          },
          "metadata": {
            "description": "Metadata",
            "type": "object"
          },
          "status": {
            "description": "Status",
            "enum": [
              "draft",
              "approved",
              "void"
            ],
            "type": "string"
          },
          "to_account_id": {
            "description": "To Account ID",
            "type": "string"
          },
          "transfer_date": {
            "description": "Transfer Date",
            "format": "date",
            "type": "string"
          },
          "transfer_number": {
            "description": "Transfer Number",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "description": "API key passed as Bearer token",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "REST API for Backfill — the modern bookkeeping platform. All endpoints require Bearer token authentication.",
    "title": "Backfill API",
    "version": "1.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/vendor_bills/{id}": {
      "delete": {
        "operationId": "deleteVendorBill",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedEnvelope"
                }
              }
            },
            "description": "Deleted"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete a vendor bill",
        "tags": [
          "Vendor Bills"
        ]
      },
      "get": {
        "operationId": "getVendorBill",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/VendorBillRecord"
                        },
                        "object": {
                          "enum": [
                            "vendor_bill"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a vendor bill",
        "tags": [
          "Vendor Bills"
        ]
      },
      "put": {
        "operationId": "updateVendorBill",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorBillUpdateInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/VendorBillRecord"
                        },
                        "object": {
                          "enum": [
                            "vendor_bill"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update a vendor bill",
        "tags": [
          "Vendor Bills"
        ]
      }
    },
    "/v1/vendors": {
      "get": {
        "operationId": "listVendor",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Filter by name (contains)",
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/VendorRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "vendor"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List vendors",
        "tags": [
          "Vendors"
        ]
      },
      "post": {
        "operationId": "createVendor",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/VendorRecord"
                        },
                        "object": {
                          "enum": [
                            "vendor"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a vendor",
        "tags": [
          "Vendors"
        ]
      }
    },
    "/v1/bill_payments/{id}": {
      "get": {
        "operationId": "getBillPayment",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/BillPaymentRecord"
                        },
                        "object": {
                          "enum": [
                            "bill_payment"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a bill payment",
        "tags": [
          "Bill Payments"
        ]
      }
    },
    "/v1/customers": {
      "get": {
        "operationId": "listCustomer",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Filter by name (contains)",
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/CustomerRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "customer"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List customers",
        "tags": [
          "Customers"
        ]
      },
      "post": {
        "operationId": "createCustomer",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/CustomerRecord"
                        },
                        "object": {
                          "enum": [
                            "customer"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a customer",
        "tags": [
          "Customers"
        ]
      }
    },
    "/v1/vendors/{id}": {
      "delete": {
        "operationId": "deleteVendor",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedEnvelope"
                }
              }
            },
            "description": "Deleted"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete a vendor",
        "tags": [
          "Vendors"
        ]
      },
      "get": {
        "operationId": "getVendor",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/VendorRecord"
                        },
                        "object": {
                          "enum": [
                            "vendor"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a vendor",
        "tags": [
          "Vendors"
        ]
      },
      "put": {
        "operationId": "updateVendor",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorUpdateInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/VendorRecord"
                        },
                        "object": {
                          "enum": [
                            "vendor"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update a vendor",
        "tags": [
          "Vendors"
        ]
      }
    },
    "/v1/reports/balance_sheet": {
      "get": {
        "operationId": "getBalanceSheet",
        "parameters": [
          {
            "description": "Report as-of date (YYYY-MM-DD)",
            "in": "query",
            "name": "as_of_date",
            "schema": {
              "format": "date",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Balance sheet data"
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get balance sheet",
        "tags": [
          "Reports"
        ]
      }
    },
    "/v1/bank/transactions": {
      "get": {
        "operationId": "listBankTransaction",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Filter by bank account ID",
            "in": "query",
            "name": "bank_account_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by status",
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/BankTransactionRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "bank_transaction"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List banking",
        "tags": [
          "Banking"
        ]
      }
    },
    "/v1/items/{id}": {
      "delete": {
        "operationId": "deleteItem",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedEnvelope"
                }
              }
            },
            "description": "Deleted"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete a item",
        "tags": [
          "Items"
        ]
      },
      "get": {
        "operationId": "getItem",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/ItemRecord"
                        },
                        "object": {
                          "enum": [
                            "item"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a item",
        "tags": [
          "Items"
        ]
      },
      "put": {
        "operationId": "updateItem",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ItemUpdateInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/ItemRecord"
                        },
                        "object": {
                          "enum": [
                            "item"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update a item",
        "tags": [
          "Items"
        ]
      }
    },
    "/v1/sales_orders/{id}": {
      "get": {
        "operationId": "getSalesOrder",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/SalesOrderRecord"
                        },
                        "object": {
                          "enum": [
                            "sales_order"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a sales order",
        "tags": [
          "Sales Orders"
        ]
      }
    },
    "/v1/quotes/{id}": {
      "get": {
        "operationId": "getQuote",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/QuoteRecord"
                        },
                        "object": {
                          "enum": [
                            "quote"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a quote",
        "tags": [
          "Quotes"
        ]
      }
    },
    "/v1/expenses": {
      "get": {
        "operationId": "listExpense",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Filter by approval status",
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by expense_date >= (YYYY-MM-DD)",
            "in": "query",
            "name": "start_date",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by expense_date <= (YYYY-MM-DD)",
            "in": "query",
            "name": "end_date",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/ExpenseRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "expense"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List expenses",
        "tags": [
          "Expenses"
        ]
      },
      "post": {
        "operationId": "createExpense",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExpenseInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/ExpenseRecord"
                        },
                        "object": {
                          "enum": [
                            "expense"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a expense",
        "tags": [
          "Expenses"
        ]
      }
    },
    "/v1/bank/transactions/pending": {
      "get": {
        "operationId": "listPendingBankTransactions",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of pending transactions"
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List pending bank transactions",
        "tags": [
          "Banking"
        ]
      }
    },
    "/v1/journal_entries/{id}": {
      "delete": {
        "operationId": "deleteJournalEntry",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedEnvelope"
                }
              }
            },
            "description": "Deleted"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete a journal entry",
        "tags": [
          "Journal Entries"
        ]
      },
      "get": {
        "operationId": "getJournalEntry",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/JournalEntryRecord"
                        },
                        "object": {
                          "enum": [
                            "journal_entry"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a journal entry",
        "tags": [
          "Journal Entries"
        ]
      },
      "put": {
        "operationId": "updateJournalEntry",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JournalEntryUpdateInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/JournalEntryRecord"
                        },
                        "object": {
                          "enum": [
                            "journal_entry"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update a journal entry",
        "tags": [
          "Journal Entries"
        ]
      }
    },
    "/v1/vendor_bills": {
      "get": {
        "operationId": "listVendorBill",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/VendorBillRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "vendor_bill"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List vendor bills",
        "tags": [
          "Vendor Bills"
        ]
      },
      "post": {
        "operationId": "createVendorBill",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorBillInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/VendorBillRecord"
                        },
                        "object": {
                          "enum": [
                            "vendor_bill"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a vendor bill",
        "tags": [
          "Vendor Bills"
        ]
      }
    },
    "/v1/reports/trial_balance": {
      "get": {
        "operationId": "getTrialBalance",
        "parameters": [
          {
            "description": "Report as-of date (YYYY-MM-DD)",
            "in": "query",
            "name": "as_of_date",
            "schema": {
              "format": "date",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Trial balance data"
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get trial balance report",
        "tags": [
          "Reports"
        ]
      }
    },
    "/v1/credit_memos/{id}": {
      "delete": {
        "operationId": "deleteCreditMemo",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedEnvelope"
                }
              }
            },
            "description": "Deleted"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete a credit memo",
        "tags": [
          "Credit Memos"
        ]
      },
      "get": {
        "operationId": "getCreditMemo",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/CreditMemoRecord"
                        },
                        "object": {
                          "enum": [
                            "credit_memo"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a credit memo",
        "tags": [
          "Credit Memos"
        ]
      },
      "put": {
        "operationId": "updateCreditMemo",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreditMemoUpdateInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/CreditMemoRecord"
                        },
                        "object": {
                          "enum": [
                            "credit_memo"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update a credit memo",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/sales_orders": {
      "get": {
        "operationId": "listSalesOrder",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Filter by status",
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by customer UUID",
            "in": "query",
            "name": "customer_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by issued_at >= (YYYY-MM-DD)",
            "in": "query",
            "name": "start_date",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by issued_at <= (YYYY-MM-DD)",
            "in": "query",
            "name": "end_date",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/SalesOrderRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "sales_order"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List sales orders",
        "tags": [
          "Sales Orders"
        ]
      },
      "post": {
        "operationId": "createSalesOrder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/SalesOrderRecord"
                        },
                        "object": {
                          "enum": [
                            "sales_order"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a sales order",
        "tags": [
          "Sales Orders"
        ]
      }
    },
    "/v1/payments": {
      "get": {
        "operationId": "listPayment",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/PaymentRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "payment"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List payments",
        "tags": [
          "Payments"
        ]
      },
      "post": {
        "operationId": "createPayment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/PaymentRecord"
                        },
                        "object": {
                          "enum": [
                            "payment"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a payment",
        "tags": [
          "Payments"
        ]
      }
    },
    "/v1/accounts/{id}": {
      "get": {
        "operationId": "getAccount",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "properties": {
                        "account_type": {
                          "enum": [
                            "asset",
                            "liability",
                            "equity",
                            "revenue",
                            "expense"
                          ],
                          "type": "string"
                        },
                        "balance": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "is_active": {
                          "type": "boolean"
                        },
                        "name": {
                          "type": "string"
                        },
                        "normal_balance": {
                          "enum": [
                            "debit",
                            "credit"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "name",
                        "account_type",
                        "is_active",
                        "normal_balance"
                      ],
                      "type": "object"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "object": {
                      "enum": [
                        "account"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "object",
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a account",
        "tags": [
          "Accounts"
        ]
      }
    },
    "/v1/invoices": {
      "get": {
        "operationId": "listInvoice",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Filter by status",
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by customer ID",
            "in": "query",
            "name": "customer_id",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/InvoiceRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "invoice"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List invoices",
        "tags": [
          "Invoices"
        ]
      },
      "post": {
        "operationId": "createInvoice",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/InvoiceRecord"
                        },
                        "object": {
                          "enum": [
                            "invoice"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a invoice",
        "tags": [
          "Invoices"
        ]
      }
    },
    "/v1/sales_receipts": {
      "get": {
        "operationId": "listSalesReceipt",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/SalesReceiptRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "sales_receipt"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List sales receipts",
        "tags": [
          "Sales Receipts"
        ]
      },
      "post": {
        "operationId": "createSalesReceipt",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesReceiptInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/SalesReceiptRecord"
                        },
                        "object": {
                          "enum": [
                            "sales_receipt"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a sales receipt",
        "tags": [
          "Sales Receipts"
        ]
      }
    },
    "/v1/bank/accounts/{id}": {
      "get": {
        "operationId": "getBankAccount",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/BankAccountRecord"
                        },
                        "object": {
                          "enum": [
                            "bank_account"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a bank account",
        "tags": [
          "Banking"
        ]
      }
    },
    "/v1/refund_receipts": {
      "get": {
        "operationId": "listRefundReceipt",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Filter by status",
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by customer UUID",
            "in": "query",
            "name": "customer_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by payment reference",
            "in": "query",
            "name": "payment_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by refund_date >= (YYYY-MM-DD)",
            "in": "query",
            "name": "start_date",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by refund_date <= (YYYY-MM-DD)",
            "in": "query",
            "name": "end_date",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/RefundReceiptRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "refund_receipt"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List refund receipts",
        "tags": [
          "Refund Receipts"
        ]
      },
      "post": {
        "operationId": "createRefundReceipt",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefundReceiptInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/RefundReceiptRecord"
                        },
                        "object": {
                          "enum": [
                            "refund_receipt"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a refund receipt",
        "tags": [
          "Refund Receipts"
        ]
      }
    },
    "/v1/vendor_credits/{id}": {
      "get": {
        "operationId": "getVendorCredit",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/VendorCreditRecord"
                        },
                        "object": {
                          "enum": [
                            "vendor_credit"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a vendor credit",
        "tags": [
          "Vendor Credits"
        ]
      }
    },
    "/v1/purchase_orders/{id}": {
      "get": {
        "operationId": "getPurchaseOrder",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/PurchaseOrderRecord"
                        },
                        "object": {
                          "enum": [
                            "purchase_order"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a purchase order",
        "tags": [
          "Purchase Orders"
        ]
      }
    },
    "/v1/invoices/{id}": {
      "delete": {
        "operationId": "deleteInvoice",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedEnvelope"
                }
              }
            },
            "description": "Deleted"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete a invoice",
        "tags": [
          "Invoices"
        ]
      },
      "get": {
        "operationId": "getInvoice",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/InvoiceRecord"
                        },
                        "object": {
                          "enum": [
                            "invoice"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a invoice",
        "tags": [
          "Invoices"
        ]
      },
      "put": {
        "operationId": "updateInvoice",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceUpdateInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/InvoiceRecord"
                        },
                        "object": {
                          "enum": [
                            "invoice"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update a invoice",
        "tags": [
          "Invoices"
        ]
      }
    },
    "/v1/bank_transfers/{id}": {
      "get": {
        "operationId": "getBankTransfer",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/BankTransferRecord"
                        },
                        "object": {
                          "enum": [
                            "bank_transfer"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a bank transfer",
        "tags": [
          "Bank Transfers"
        ]
      }
    },
    "/v1/bank/transactions/{id}": {
      "get": {
        "operationId": "getBankTransaction",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/BankTransactionRecord"
                        },
                        "object": {
                          "enum": [
                            "bank_transaction"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a bank transaction",
        "tags": [
          "Banking"
        ]
      }
    },
    "/v1/items": {
      "get": {
        "operationId": "listItem",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Filter by name (contains)",
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by item type",
            "in": "query",
            "name": "type",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/ItemRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "item"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List items",
        "tags": [
          "Items"
        ]
      },
      "post": {
        "operationId": "createItem",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ItemInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/ItemRecord"
                        },
                        "object": {
                          "enum": [
                            "item"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a item",
        "tags": [
          "Items"
        ]
      }
    },
    "/v1/bill_payments": {
      "get": {
        "operationId": "listBillPayment",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Filter by status",
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/BillPaymentRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "bill_payment"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List bill payments",
        "tags": [
          "Bill Payments"
        ]
      },
      "post": {
        "operationId": "createBillPayment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillPaymentInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/BillPaymentRecord"
                        },
                        "object": {
                          "enum": [
                            "bill_payment"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a bill payment",
        "tags": [
          "Bill Payments"
        ]
      }
    },
    "/v1/journal_entries": {
      "get": {
        "operationId": "listJournalEntry",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/JournalEntryRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "journal_entry"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List journal entries",
        "tags": [
          "Journal Entries"
        ]
      },
      "post": {
        "operationId": "createJournalEntry",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JournalEntryInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/JournalEntryRecord"
                        },
                        "object": {
                          "enum": [
                            "journal_entry"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a journal entry",
        "tags": [
          "Journal Entries"
        ]
      }
    },
    "/v1/refund_receipts/{id}": {
      "get": {
        "operationId": "getRefundReceipt",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/RefundReceiptRecord"
                        },
                        "object": {
                          "enum": [
                            "refund_receipt"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a refund receipt",
        "tags": [
          "Refund Receipts"
        ]
      }
    },
    "/v1/expenses/{id}": {
      "delete": {
        "operationId": "deleteExpense",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedEnvelope"
                }
              }
            },
            "description": "Deleted"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete a expense",
        "tags": [
          "Expenses"
        ]
      },
      "get": {
        "operationId": "getExpense",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/ExpenseRecord"
                        },
                        "object": {
                          "enum": [
                            "expense"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a expense",
        "tags": [
          "Expenses"
        ]
      },
      "put": {
        "operationId": "updateExpense",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExpenseUpdateInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/ExpenseRecord"
                        },
                        "object": {
                          "enum": [
                            "expense"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update a expense",
        "tags": [
          "Expenses"
        ]
      }
    },
    "/v1/journal_entries/{id}/confirm": {
      "post": {
        "operationId": "confirmJournalEntry",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/JournalEntryRecord"
                        },
                        "object": {
                          "enum": [
                            "journal_entry"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Confirm a draft journal entry",
        "tags": [
          "Journal Entries"
        ]
      }
    },
    "/v1/bank_transfers": {
      "get": {
        "operationId": "listBankTransfer",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Filter by status",
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by transfer_date >= (YYYY-MM-DD)",
            "in": "query",
            "name": "start_date",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by transfer_date <= (YYYY-MM-DD)",
            "in": "query",
            "name": "end_date",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by source account ID",
            "in": "query",
            "name": "from_account_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by destination account ID",
            "in": "query",
            "name": "to_account_id",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/BankTransferRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "bank_transfer"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List bank transfers",
        "tags": [
          "Bank Transfers"
        ]
      },
      "post": {
        "operationId": "createBankTransfer",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankTransferInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/BankTransferRecord"
                        },
                        "object": {
                          "enum": [
                            "bank_transfer"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a bank transfer",
        "tags": [
          "Bank Transfers"
        ]
      }
    },
    "/v1/invoices/{id}/confirm": {
      "post": {
        "operationId": "confirmInvoice",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/InvoiceRecord"
                        },
                        "object": {
                          "enum": [
                            "invoice"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Confirm a draft invoice",
        "tags": [
          "Invoices"
        ]
      }
    },
    "/v1/payments/{id}": {
      "get": {
        "operationId": "getPayment",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/PaymentRecord"
                        },
                        "object": {
                          "enum": [
                            "payment"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a payment",
        "tags": [
          "Payments"
        ]
      }
    },
    "/v1/reports/income_statement": {
      "get": {
        "operationId": "getIncomeStatement",
        "parameters": [
          {
            "description": "Period start date",
            "in": "query",
            "name": "start_date",
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "Period end date",
            "in": "query",
            "name": "end_date",
            "schema": {
              "format": "date",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Income statement data"
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get income statement (profit & loss)",
        "tags": [
          "Reports"
        ]
      }
    },
    "/v1/quotes": {
      "get": {
        "operationId": "listQuote",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Filter by status",
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by approval status",
            "in": "query",
            "name": "approval_status",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by customer UUID",
            "in": "query",
            "name": "customer_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by issued_at >= (YYYY-MM-DD)",
            "in": "query",
            "name": "start_date",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by issued_at <= (YYYY-MM-DD)",
            "in": "query",
            "name": "end_date",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/QuoteRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "quote"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List quotes",
        "tags": [
          "Quotes"
        ]
      },
      "post": {
        "operationId": "createQuote",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuoteInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/QuoteRecord"
                        },
                        "object": {
                          "enum": [
                            "quote"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a quote",
        "tags": [
          "Quotes"
        ]
      }
    },
    "/v1/deposits/{id}": {
      "get": {
        "operationId": "getDeposit",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/DepositRecord"
                        },
                        "object": {
                          "enum": [
                            "deposit"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a deposit",
        "tags": [
          "Deposits"
        ]
      }
    },
    "/v1/purchase_orders": {
      "get": {
        "operationId": "listPurchaseOrder",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Filter by approval status",
            "in": "query",
            "name": "approval_status",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by vendor UUID",
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by issued_at >= (YYYY-MM-DD)",
            "in": "query",
            "name": "start_date",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by issued_at <= (YYYY-MM-DD)",
            "in": "query",
            "name": "end_date",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/PurchaseOrderRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "purchase_order"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List purchase orders",
        "tags": [
          "Purchase Orders"
        ]
      },
      "post": {
        "operationId": "createPurchaseOrder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOrderInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/PurchaseOrderRecord"
                        },
                        "object": {
                          "enum": [
                            "purchase_order"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a purchase order",
        "tags": [
          "Purchase Orders"
        ]
      }
    },
    "/v1/customers/{id}": {
      "delete": {
        "operationId": "deleteCustomer",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedEnvelope"
                }
              }
            },
            "description": "Deleted"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete a customer",
        "tags": [
          "Customers"
        ]
      },
      "get": {
        "operationId": "getCustomer",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/CustomerRecord"
                        },
                        "object": {
                          "enum": [
                            "customer"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a customer",
        "tags": [
          "Customers"
        ]
      },
      "put": {
        "operationId": "updateCustomer",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerUpdateInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/CustomerRecord"
                        },
                        "object": {
                          "enum": [
                            "customer"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update a customer",
        "tags": [
          "Customers"
        ]
      }
    },
    "/v1/accounts": {
      "get": {
        "operationId": "listAccount",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Balance as of date (YYYY-MM-DD)",
            "in": "query",
            "name": "as_of_date",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by account type",
            "in": "query",
            "name": "type",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by active status",
            "in": "query",
            "name": "active",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "as_of_date": {
                      "format": "date",
                      "type": "string"
                    },
                    "data": {
                      "items": {
                        "properties": {
                          "data": {
                            "properties": {
                              "account_type": {
                                "enum": [
                                  "asset",
                                  "liability",
                                  "equity",
                                  "revenue",
                                  "expense"
                                ],
                                "type": "string"
                              },
                              "balance": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "code": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "is_active": {
                                "type": "boolean"
                              },
                              "name": {
                                "type": "string"
                              },
                              "normal_balance": {
                                "enum": [
                                  "debit",
                                  "credit"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "account_type",
                              "is_active",
                              "normal_balance"
                            ],
                            "type": "object"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "object": {
                            "enum": [
                              "account"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "object",
                          "data"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "object": {
                      "enum": [
                        "list"
                      ],
                      "type": "string"
                    },
                    "pagination": {
                      "properties": {
                        "limit": {
                          "type": "integer"
                        },
                        "page": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "page",
                        "limit"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "object",
                    "data",
                    "pagination",
                    "as_of_date"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List accounts",
        "tags": [
          "Accounts"
        ]
      },
      "post": {
        "operationId": "createAccount",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/AccountRecord"
                        },
                        "object": {
                          "enum": [
                            "account"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a account",
        "tags": [
          "Accounts"
        ]
      }
    },
    "/v1/vendor_credits": {
      "get": {
        "operationId": "listVendorCredit",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Filter by display status",
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by approval status",
            "in": "query",
            "name": "approval_status",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by application status",
            "in": "query",
            "name": "application_status",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by vendor UUID",
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by credit_date >= (YYYY-MM-DD)",
            "in": "query",
            "name": "start_date",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by credit_date <= (YYYY-MM-DD)",
            "in": "query",
            "name": "end_date",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/VendorCreditRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "vendor_credit"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List vendor credits",
        "tags": [
          "Vendor Credits"
        ]
      },
      "post": {
        "operationId": "createVendorCredit",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorCreditInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/VendorCreditRecord"
                        },
                        "object": {
                          "enum": [
                            "vendor_credit"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a vendor credit",
        "tags": [
          "Vendor Credits"
        ]
      }
    },
    "/v1/credit_memos": {
      "get": {
        "operationId": "listCreditMemo",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Filter by application status",
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by approval status",
            "in": "query",
            "name": "approval_status",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/CreditMemoRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "credit_memo"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List credit memos",
        "tags": [
          "Credit Memos"
        ]
      },
      "post": {
        "operationId": "createCreditMemo",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreditMemoInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/CreditMemoRecord"
                        },
                        "object": {
                          "enum": [
                            "credit_memo"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a credit memo",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/bank/accounts/{id}/sync": {
      "post": {
        "operationId": "syncBankAccount",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/BankAccountRecord"
                        },
                        "object": {
                          "enum": [
                            "bank_account"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Trigger a sync for this bank account",
        "tags": [
          "Banking"
        ]
      }
    },
    "/v1/bank/accounts": {
      "get": {
        "operationId": "listBankAccount",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/BankAccountRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "bank_account"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List banking",
        "tags": [
          "Banking"
        ]
      }
    },
    "/v1/bank/transactions/{id}/categorize": {
      "post": {
        "operationId": "categorizeBankTransaction",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/BankTransactionRecord"
                        },
                        "object": {
                          "enum": [
                            "bank_transaction"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Categorize a bank transaction",
        "tags": [
          "Banking"
        ]
      }
    },
    "/v1/sales_receipts/{id}": {
      "delete": {
        "operationId": "deleteSalesReceipt",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedEnvelope"
                }
              }
            },
            "description": "Deleted"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete a sales receipt",
        "tags": [
          "Sales Receipts"
        ]
      },
      "get": {
        "operationId": "getSalesReceipt",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/SalesReceiptRecord"
                        },
                        "object": {
                          "enum": [
                            "sales_receipt"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get a sales receipt",
        "tags": [
          "Sales Receipts"
        ]
      },
      "put": {
        "operationId": "updateSalesReceipt",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesReceiptUpdateInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/SalesReceiptRecord"
                        },
                        "object": {
                          "enum": [
                            "sales_receipt"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update a sales receipt",
        "tags": [
          "Sales Receipts"
        ]
      }
    },
    "/v1/deposits": {
      "get": {
        "operationId": "listDeposit",
        "parameters": [
          {
            "description": "Maximum number of records to return",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 200,
              "type": "integer"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "description": "Filter by status",
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by deposit_date >= (YYYY-MM-DD)",
            "in": "query",
            "name": "start_date",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by deposit_date <= (YYYY-MM-DD)",
            "in": "query",
            "name": "end_date",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ListEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "items": {
                            "allOf": [
                              {
                                "$ref": "#/components/schemas/RecordEnvelope"
                              },
                              {
                                "properties": {
                                  "data": {
                                    "$ref": "#/components/schemas/DepositRecord"
                                  },
                                  "object": {
                                    "enum": [
                                      "deposit"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            ]
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List deposits",
        "tags": [
          "Deposits"
        ]
      },
      "post": {
        "operationId": "createDeposit",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DepositInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/DepositRecord"
                        },
                        "object": {
                          "enum": [
                            "deposit"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Validation error"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a deposit",
        "tags": [
          "Deposits"
        ]
      }
    },
    "/v1/payments/{id}/confirm": {
      "post": {
        "operationId": "confirmPayment",
        "parameters": [
          {
            "description": "Resource identifier",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/PaymentRecord"
                        },
                        "object": {
                          "enum": [
                            "payment"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Confirm a draft payment",
        "tags": [
          "Payments"
        ]
      }
    },
    "/v1/bank/transactions/batch": {
      "post": {
        "operationId": "batchCategorizeBankTransactions",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "transactions": {
                    "items": {
                      "properties": {
                        "action": {
                          "enum": [
                            "categorize",
                            "exclude"
                          ],
                          "type": "string"
                        },
                        "exclude_reason": {
                          "type": "string"
                        },
                        "expense_account_id": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "revenue_account_id": {
                          "format": "uuid",
                          "type": "string"
                        },
                        "transaction_type": {
                          "type": "string"
                        },
                        "transfer_account_id": {
                          "format": "uuid",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Batch result"
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Batch categorize bank transactions",
        "tags": [
          "Banking"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "servers": [
    {
      "description": "Production API",
      "url": "https://api.backfill.io"
    }
  ],
  "tags": [
    {
      "name": "Customers"
    },
    {
      "name": "Vendors"
    },
    {
      "name": "Items"
    },
    {
      "name": "Expenses"
    },
    {
      "name": "Sales Receipts"
    },
    {
      "name": "Vendor Bills"
    },
    {
      "name": "Credit Memos"
    },
    {
      "name": "Invoices"
    },
    {
      "name": "Journal Entries"
    },
    {
      "name": "Accounts"
    },
    {
      "name": "Quotes"
    },
    {
      "name": "Purchase Orders"
    },
    {
      "name": "Vendor Credits"
    },
    {
      "name": "Refund Receipts"
    },
    {
      "name": "Sales Orders"
    },
    {
      "name": "Bank Transfers"
    },
    {
      "name": "Bill Payments"
    },
    {
      "name": "Deposits"
    },
    {
      "name": "Payments"
    },
    {
      "name": "Banking"
    },
    {
      "name": "Reports"
    }
  ]
}
